
// SRH Validations
function chkfltLoc(frm)
{
		if (frm.fltloc.value =='') 
		{
		alert('Please select any specific location of your search ..');
		frm.fltloc.focus();
		return false;
		}
}

function chkfltProd(frm)
{
		if (frm.fltpro.value =='') 
		{
		alert('Please Select the generic name of the product/services you want to Search ..');
		frm.fltpro.focus();
		return false;
		}
}

// SRH Validations Ends Here

// FreeText Validation

function chksrhTerm(frm){
if ((frm.Prod.value.replace(/^\s*|\s*$/g,"") == "")&&(frm.Comp.value.replace(/^\s*|\s*$/g,"") == "")&&(frm.City.value.replace(/^\s*|\s*$/g,"") == "")){
	alert('Please enter anyone of the search keyword!\nProduct/Service AND/OR Company Name AND/OR Location');
	frm.Prod.value=frm.Prod.value.replace(/^\s*|\s*$/g,""); frm.Prod.value=frm.Comp.value.replace(/^\s*|\s*$/g,""); frm.Prod.value=frm.City.value.replace(/^\s*|\s*$/g,"");
	frm.Prod.focus();
	return false;
	}
if ((frm.Prod.value.replace(/^\s*|\s*$/g,"").length > 0)&&(frm.Prod.value.replace(/^\s*|\s*$/g,"").length < 3))
	{
	alert('Please enter the Product/Service keyword more than 2 characters in length!');
	frm.Prod.focus();
	return false;
	}
if ((frm.Comp.value.replace(/^\s*|\s*$/g,"").length > 0)&&(frm.Comp.value.replace(/^\s*|\s*$/g,"").length < 3))
	{
	alert('Please enter the Company Name more than 2 characters in length!');
	frm.Comp.focus();
	return false;
	}
if ((frm.City.value.replace(/^\s*|\s*$/g,"").length > 0)&&(frm.City.value.replace(/^\s*|\s*$/g,"").length < 3))
	{
	alert('Please enter the Location more than 2 characters in length!');
	frm.City.focus();
	return false;
	}
	document.getElementById("goImg").disabled=true;
	return true;
}

// FreeText Validation Ends here
