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 'USC':
			regionCookie = 'USC';
			break;
		case 'EUR':
			regionCookie = 'EUR';
			break;
		case 'ASI':
			regionCookie = 'ASI';
			break;
		case 'LAT':
			regionCookie = 'LAT';
			break;
		default:
		  alert("default");
			regionCookie = 'USC';
			break;
	}
					
	document.cookie = 'reg=' + regionCookie + '; expires=Sat, 1-Jan-2030 00:00:00 GMT;path=/;';
}

function Complete(varRG){
		document.frmShowcase.action = '/Equipment/product_offering.asp';
		document.frmShowcase.intProductTypeCategoryId.value = 1;
		document.frmShowcase.intRegionalMarketSegment.value = varRG;
		//alert(document.frmShowcase.intProductTypeCategoryId.value);
		//alert(document.frmShowcase.intRegionalMarketSegment.value);
		document.frmShowcase.submit();
	}


//function called from clicking on a link of the REGIONAL MARKET SEGMENT
function PRODselect(varRMS){
	if (varRMS==0){
		document.frmShowcase.intProductTypeCategoryId.value = 1;
	}
	else 
	{
		document.frmShowcase.intProductTypeCategoryId.value = 1;
	}
	document.frmShowcase.action = "/Equipment/rms.asp";
	document.frmShowcase.intRegionalMarketSegment.value = varRMS;
	document.frmShowcase.submit();
}

function RMSselect(varRMS){	
	if (varRMS==0){
		document.frmShowcase.action = "/Equipment/product_offering.asp";
		document.frmShowcase.intProductTypeCategoryId.value = 34;
    }
    else {
		document.frmShowcase.action = "/Equipment/rms.asp";
	}
		document.frmShowcase.intRegionalMarketSegment.value = varRMS;
		//document.frmShowcase.intProductTypeCategoryId.value = varPTC;
		document.frmShowcase.submit();
}

function Appselect(varRMS, varPTC){
	document.frmShowcase.action = "/Equipment/controlled/app_study.asp"
    document.frmShowcase.intRegionalMarketSegment.value = varRMS;
    document.frmShowcase.intProductTypeCategoryId.value = varPTC;
   // alert(document.frmShowcase.action);
    document.frmShowcase.submit();
}

function Specselect(varRMS){
	document.frmShowcase.action = "/Equipment/controlled/product_specifier.asp";
	document.frmShowcase.intApplicationGroup.value = 0;
    document.frmShowcase.intRegionalMarketSegment.value = varRMS;
    //document.frmShowcase.intProductTypeCategoryId.value = varPTC;
    document.frmShowcase.submit();
}

function Specifier(varAG, varSubTab, varRecommend) {
    document.frmShowcase.intApplicationGroup.value = varAG;
    document.frmShowcase.intSubTab.value = varSubTab;
    document.frmShowcase.intApplicationId.value = varSubTab;
    if (varRecommend==0) {
        document.frmShowcase.intRecommend.value = 1
        }
    else {
		document.frmShowcase.intRecommend.value = varRecommend
    }
    document.frmShowcase.submit()
}

function SelectProd(varPC, varReg){
	document.frmShowcase.action = '/Equipment/controlled/product_description.asp';
	document.frmShowcase.pc.value = varPC;
	document.frmShowcase.intRegionalMarketSegment.value = varReg;
	document.frmShowcase.submit();
}



function LinkToSite (varPC, varReg)
{
	var strSectId;

	strSectId = document.frmShowcase.strSectId.value;

	if (strSectId == "hyco")
		strURL = '/cpi/controlled/product_description.asp';
	else
		strURL  = '/electronics/controlled/product_description.asp';
	
	strURL = strURL + '?'+ 'intRegionalMarketSegment=0&pc=' + varPC;
	
	window.open(strURL);

}

function LinkToSite2 (varPC, varReg)
{
	//document.frmShowcase.pc.value = varPC;
	//document.frmShowcase.intRegionalMarketSegment.value = varReg;
	
	var strSectId;

	strSectId = document.frmShowcase.strSectId.value;

	if (strSectId == "hyco")
		strURL = '/cpi/controlled/product_description.asp';
	else
		strURL  = '/electronics/controlled/product_description.asp';
	
	strURL = strURL + '?'+ 'intRegionalMarketSegment=0&pc=' + varPC;
	//strURL = strURL + varPC + varReg;
	window.open(strURL);

}


function GoMenu(){
	document.frmShowcase.action = '/Equipment/rms.asp';
	document.frmShowcase.submit();
}

function GoMenu2(varRMS){
	document.frmShowcase.action = '/Equipment/product_offering.asp';
	document.frmShowcase.submit();
}
function GoMenu3(varRMS){
	document.frmShowcase.action = '/Equipment/controlled/product_specifier.asp';
	document.frmShowcase.submit();
}

function SetTab(varTab){
	document.frmShowcase.intTab.value = varTab;
	document.frmShowcase.intProductTypeCategoryId.value = varTab;
	document.frmShowcase.action = '/Equipment/product_offering.asp';
	document.frmShowcase.submit();
}

function AppStudy_SetTab(varTab){
	document.frmShowcase.intTab.value = varTab;
	document.frmShowcase.intProductTypeCategoryId.value = varTab;
	document.frmShowcase.action = '/Equipment/controlled/app_study.asp';
	document.frmShowcase.submit();
}
function MSDSList(varSearch, msdslink){
	document.frmShowcase.msdslang.value = '1033';
	document.frmShowcase.type.value = 'Gas';
	document.frmShowcase.search.value = varSearch;
	document.frmShowcase.action = msdslink;
	document.frmShowcase.submit();
}