

function CheckForm()
{
	if(document.form.name.value=="")
	{
		document.all("nameAlert").innerHTML = "Mandatory Field!";
		document.form.name.focus();
		return false;
	}
	else if(document.form.company.value=="")
	{
		document.all("companyAlert").innerHTML = "Mandatory Field!";
		document.form.company.focus();
		return false;
	}
	else if(document.form.phone.value=="")
	{
		document.all("phoneAlert").innerHTML = "Mandatory Field!";
		document.form.phone.focus();
		return false;
	}
	else if(document.form.email.value.indexOf('@') == -1 || document.form.email.value.indexOf('.') == -1 || document.form.email.value.indexOf('/') != -1 || document.form.email.value.indexOf(',') != -1 || document.form.email.value.indexOf(' ') != -1)
	{
		document.all("emailAlert").innerHTML = "Invalid Email Address!";
		document.form.email.focus();
		return false;
	}
	
	
} 

function SelectAction(itemValue,action)
{
	if(itemValue != "select")
	{
		document.all("selector").src="/searchSelector.asp?itemValue="+itemValue+"&action="+action;
	}
}

function GoSearch1(itemValue)
{
	if(itemValue != "select")
	{
		itemValueArr = itemValue.split("~");
		//alert(itemValueArr);
		goUrl =  "/SiteFiles/1/"+itemValueArr[1]+"/"+itemValueArr[0]+".asp";
		location.href=goUrl;
		//document.all("selector").src="/searchSelector.asp?info_id="+itemValueArr[0]+"&info_type="+itemValueArr[1]+"&action=GoSearch";
		
	}
}