var uppop

//START: launch new window
function launchWin(url,width,height) {
	uppop = window.open(""+ url +"", "_blank", "width="+ width +",height="+ height +",scrollbars=0,resizable=0,titlebar=0,toolbar=0,status=0");
}
//END: launch new window

//START: launch new window (with scrollbars)
function launchWinScroll(url,width,height) {
uppop = window.open(""+ url +"", "_blank", "width="+ width +",height="+ height +",scrollbars=1,resizable=0,titlebar=0,toolbar=0,location=0,status=0");
}
//END: launch new window (with scrollbars)

function formgo(form) {
	var index = form.select.selectedIndex
	
	if (form.select.options[index].value !="0") {
		//alert(form.select.options[index].value);
		location.href = form.select.options[index].value;
	}
}

function getRandomProduct() {
	
	var imgPath = "/assets/img/welcome/products_"
	
	if (document.images) {
		//preload images.
		var products = new Array()
			products[0] = new Image(230,60);
			products[0].src = eval("imgPath + 'spam_check.gif'");
			products[1] = new Image(230,60);
			products[1].src = eval("imgPath + 'summary_reports.gif'");
	}

	var ran_number=Math.round(Math.random()*1); // multiple = number of banners -1
	document.productsBanner.src = products[ran_number].src;
}

function copyrightYear() {
	var today = new Date(); // today
	var year = today.getFullYear(); // year
	return (year); //outputs year
}