setTimeout("changePage()", 3000);

function changePage(){
    if (self.parent.frames.length != 0)
        self.parent.location=document.location;
}
                
function setCookie(region){
	var regionCookie;
	var gonext;
							
	switch(region){
		case 1,'AMR':
			regionCookie = 'AMR';
			break;
		case 2,'EUR':
			regionCookie = 'EUR';
			break;
		case 3,'ASI':
			regionCookie = 'ASI';
			break;
		case 4,'LAM':
			regionCookie = 'LAM';
			break;
		default:
			regionCookie = 'AMR';
			break;
	}
					
	document.cookie = 'reg=' + regionCookie + '; expires=Sat, 1-Jan-2999 00:00:00 GMT;path=/;';
}

function RMSselect(varRMS){	
	if (varRMS==0){
		document.frmShowcase.action = "/Surfynol/complete_offering.asp";
		document.frmShowcase.reg.value = varRMS;
		document.frmShowcase.intProductTypeCategoryId.value = 5;
    }
    else {
		document.frmShowcase.action = "/Surfynol/rms.asp";
		document.frmShowcase.reg.value = varRMS;
		//document.frmShowcase.action = "tests/LinkCreator.asp";
	}
		document.frmShowcase.intRegionalMarketSegment.value = varRMS;
		document.frmShowcase.reg.value = varRMS;
		//document.frmShowcase.intProductTypeCategoryId.value = varPTC;
		document.frmShowcase.submit();
}

function Complete(varRG,REG){
		document.frmShowcase.action = "/Surfynol/complete_offering.asp?reg="+REG;
		document.frmShowcase.intProductTypeCategoryId.value = 0;
		document.frmShowcase.intRegionalMarketSegment.value = varRG;
		document.frmShowcase.submit();
	}

function PRODselect(varRMS, varREG){
	  if (varRMS==0){
			document.frmShowcase.intProductTypeCategoryId.value = 0;
	  }
	  else {
		  document.frmShowcase.intProductTypeCategoryId.value = 0;
		}
		if(varRMS < 70)
			document.frmShowcase.action = "/Surfynol/rms.asp?reg="+varREG;
		else
			document.frmShowcase.action = "/Surfynol/rms.asp?reg="+varREG;
		document.frmShowcase.intRegionalMarketSegment.value = varRMS;
		document.frmShowcase.submit();
	}


function SetTab(varTab){
	document.frmShowcase.intTab.value = varTab;
	document.frmShowcase.intProductTypeCategoryId.value = varTab;
	document.frmShowcase.action = '/surfynol/complete_offering.asp';
	document.frmShowcase.submit();
}