
function homepageVal(){
	alertText='';alertneeded=0;alertText+='The following required information is missing\n\n';
	if(document.searchform.location.value==""){alertneeded=1;alertText+='- please provide a location\n'}
	if(document.searchform.location.value=="city, state or zip"){alertneeded=1;alertText+='- please provide a location\n'}
	if(document.searchform.keyword.value == 'e.g. banners'){document.searchform.keyword.value='';}
	//if(document.searchform.keyword.value==" ( t-shirts, hats, signs )"){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	//if(document.searchform.keyword.value==""){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	if(alertneeded!=0){alert(alertText);return false}else{
		document.getElementById('PageContent').style.visibility = "hidden";
		document.getElementById('PageContent').style.display = "none";		
		document.getElementById('searchingProgress').style.visibility = "visible";
		document.getElementById('searchingProgress').style.display = "block";		
		document.searchform.submit();
	}
}



function validate_searchbysigntype(velement){
	alertText='';alertneeded=0;alertText+='The following required information is missing\n\n';
	if(document.getElementById(velement).value==""){alertneeded=1;alertText+='- please provide a location\n'}
	if(document.getElementById(velement).value=="city, state or zip"){alertneeded=1;alertText+='- please provide a location\n'}
	//if(document.searchform.keyword.value == 'e.g. banners'){document.searchform.keyword.value='';}
	//if(document.searchform.keyword.value==" ( t-shirts, hats, signs )"){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	//if(document.searchform.keyword.value==""){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	if(alertneeded!=0){alert(alertText);return false}else{
		document.getElementById('PageContent').style.visibility = "hidden";
		document.getElementById('PageContent').style.display = "none";		
		document.getElementById('searchingProgress').style.visibility = "visible";
		document.getElementById('searchingProgress').style.display = "block";		
		//document.signtypesearchForm.submit();
	}
}



function homepageMapVal(){
	alertText='';alertneeded=0;alertText+='The following required information is missing\n\n';
	if(document.searchform.location.value==""){alertneeded=1;alertText+='- please provide a location\n'}
	if(document.searchform.location.value=="city, state or zip"){alertneeded=1;alertText+='- please provide a location\n'}
	if(document.searchform.keyword.value == 'e.g. banners'){document.searchform.keyword.value='';}
	//if(document.searchform.keyword.value==" ( t-shirts, hats, signs )"){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	//if(document.searchform.keyword.value==""){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	if(alertneeded!=0){alert(alertText);return false}else{	
		document.searchform.submit();
	}
}



function defaultpageVal(){
	alertText='';alertneeded=0;alertText+='The following required information is missing\n\n';
	if(document.searchform.location.value==""){alertneeded=1;alertText+='- please provide a location\n'}
	if(document.searchform.location.value=="city, state or zip"){alertneeded=1;alertText+='- please provide a location\n'}
	if(document.searchform.keyword.value == 'e.g. banners'){document.searchform.keyword.value='';}
	//if(document.searchform.keyword.value==" ( t-shirts, hats, signs )"){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	//if(document.searchform.keyword.value==""){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	if(alertneeded!=0){alert(alertText);return false}else{
			document.getElementById('PageContent').style.visibility = "hidden";
			document.getElementById('PageContent').style.display = "none";		
			document.getElementById('searchingProgress').style.visibility = "visible";
			document.getElementById('searchingProgress').style.display = "block";
		}
}

function homepageNatVal(){
	/*alertText='';alertneeded=0;alertText+='The following required information is missing\n\n';
	if(document.searchform.location.value==""){alertneeded=1;alertText+='- please provide a location\n'}
	if(document.searchform.location.value=="city, state or zip"){alertneeded=1;alertText+='- please provide a location\n'}
	if(document.searchform.keyword.value == 'e.g. banners'){document.searchform.keyword.value='';}
	//if(document.searchform.keyword.value==" ( t-shirts, hats, signs )"){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	//if(document.searchform.keyword.value==""){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	if(alertneeded!=0){alert(alertText);return false}else{
		document.searchform.submit();
	}*/
		document.getElementById('PageContent').style.visibility = "hidden";
		document.getElementById('PageContent').style.display = "none";		
		document.getElementById('searchingProgress').style.visibility = "visible";
		document.getElementById('searchingProgress').style.display = "block";
		document.searchform.submit();
}

function homepageMDVal(){
	alertText='';alertneeded=0;alertText+='The following required information is missing\n\n';
	if(document.searchformMD.searchproductcatID.value==""){alertneeded=1;alertText+='- please provide a category\n'}
	if(document.searchformMD.searchsubproductcatID.value==""){alertneeded=1;alertText+='- please provide a subscategory\n'}
	//if(document.searchformMD.searchsubproductcatID.value == 'e.g. banners'){document.searchformMD.searchsubproductcatID.value='';}
	//if(document.searchform.keyword.value==" ( t-shirts, hats, signs )"){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	//if(document.searchform.keyword.value==""){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	if(alertneeded!=0){alert(alertText);return false}else{
		document.getElementById('PageContent').style.visibility = "hidden";
		document.getElementById('PageContent').style.display = "none";		
		document.getElementById('searchingProgress').style.visibility = "visible";
		document.getElementById('searchingProgress').style.display = "block";
		document.searchformMD.action = "resultsproduct.cfm";
		document.searchformMD.submit();
	}
}




function homepageValModify(){
	alertText='';alertneeded=0;alertText+='The following required information is missing\n\n';
	if(document.searchformModify.location.value==""){alertneeded=1;alertText+='- please provide a location\n'}
	if(document.searchformModify.location.value=="city, state or zip"){alertneeded=1;alertText+='- please provide a location\n'}
	if(document.searchformModify.keyword.value == 'e.g. banners'){document.searchformModify.keyword.value='';}
	//if(document.searchform.keyword.value==" ( t-shirts, hats, signs )"){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	//if(document.searchform.keyword.value==""){alertneeded=1;alertText+='- please provide the type of screen printing\n'}
	if(alertneeded!=0){alert(alertText);return false}else{
		document.getElementById('PageContent').style.visibility = "hidden";
		document.getElementById('PageContent').style.display = "none";		
		document.getElementById('searchingProgress').style.visibility = "visible";
		document.getElementById('searchingProgress').style.display = "block";
		document.searchformModify.submit();
	}
}

function progressInfo(){
		document.getElementById('PageContent').style.visibility = "hidden";
		document.getElementById('PageContent').style.display = "none";		
		document.getElementById('searchingProgress').style.visibility = "visible";
		document.getElementById('searchingProgress').style.display = "block";		
	}
	
function loginTransScrpt(actionPage){
		document.getElementById('PageContent').style.visibility = "hidden";
		document.getElementById('PageContent').style.display = "none";		
		document.getElementById('loginTrans').style.visibility = "visible";
		document.getElementById('loginTrans').style.display = "block";	
		//alert(actionPage)
		setTimeout("window.location='"+actionPage+"'",10000);	
	}	
	
function loginTransScrptNew(actionPage){
		document.getElementById('PageContent').style.visibility = "hidden";
		document.getElementById('PageContent').style.display = "none";		
		document.getElementById('loginTransNew').style.visibility = "visible";
		document.getElementById('loginTransNew').style.display = "block";	
		//alert(actionPage)
		setTimeout("window.location='"+actionPage+"'",10000);	
	}		
	
	
	
function validate_prodsearch2_whl(){
	alertText='';alertneeded=0;alertText+='The following required information is missing\n\n';
	if(document.searchform2.keyword.value==""){alertneeded=1;alertText+='- please provide a keyword\n'}
	if(alertneeded!=0){alert(alertText);return false}
	struserkeyword=document.searchform2.keyword.value;
	document.searchform2.action='searchkeyword.cfm?powersearch='+struserkeyword+'&Action=Search&mdsearchtype=whl'
	progressInfo();}
	
	
	
