<!-- Begin main search

function field_validation(thisform) {
        
	
       	if (thisform.Search_Input.value == "") {
		alert ("Search box must be filled and can not be left blank ...");
		thisform.Search_Input.focus();
		return false;
	}

	
		s1 = thisform.Search_Input.value;
       	temp_string = s1.indexOf(" ");
		
		
		if (temp_string == 0 && s1.length > 0)
	{
		alert ("Pls Not Use 'spaces' as a first character In search box...");
		thisform.Search_Input.focus();
		return false;
	}
		
		
		temp_string1 = s1.indexOf("and ");
        temp_string2 = s1.indexOf("or ");
		temp_string3 = s1.indexOf("the ");
		temp_string4 = s1.indexOf("in ");
		temp_string5 = s1.indexOf("on ");
		temp_string6 = s1.indexOf("& ");
		
		 
        if (temp_string1 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'And' as a first word In search box...");
		thisform.Search_Input.focus();
		return false;
	}
	
	
		if (temp_string2 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'Or' as a first word In search box...");
		thisform.Search_Input.focus();
		return false;
	}
	
		
		if (temp_string3 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'The' as a first word In search box...");
		thisform.Search_Input.focus();
		return false;
	}
	
	
		if (temp_string4 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'In' as a first word In search box...");
		thisform.Search_Input.focus();
		return false;
	}
	
	
		if (temp_string5 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'On' as a first word In search box...");
		thisform.Search_Input.focus();
		return false;
	}
	
		
		if (temp_string6 == 0 && s1.length > 1)
	{
		alert ("Pls Not Use '&' as a first word In search box...");
		thisform.Search_Input.focus();
		return false;
	}
	
/*	num = thisform.Company_Name.value;
	temp = Number(num);

	if (isNaN(temp))
       	{
		alert ("Pls Must Be Fill Only Numeric Value, Not Used Character Or special Character");
		thisform.Company_Name.focus();
		return(false);
	}
*/
			
	
return true;
}




<!-- Begin search using by region

function field_validation_region(thisform) {
        
	/*
       	if (thisform.Business_Name.value == "") {
		alert ("Business Name must be filled and can not be left blank ...");
		thisform.Business_Name.focus();
		return false;
	}*/

	
		s1 = thisform.Business_Name.value;
       	temp_string = s1.indexOf(" ");
		
		
		if (temp_string == 0 && s1.length > 0)
	{
		alert ("Pls Not Use 'spaces' as a first character In business name...");
		thisform.Business_Name.focus();
		return false;
	}
		
		
		temp_string1 = s1.indexOf("and ");
        temp_string2 = s1.indexOf("or ");
		temp_string3 = s1.indexOf("the ");
		temp_string4 = s1.indexOf("in ");
		temp_string5 = s1.indexOf("on ");
		temp_string6 = s1.indexOf("& ");
		
		 
        if (temp_string1 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'And' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (temp_string2 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'Or' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
		
		if (temp_string3 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'The' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (temp_string4 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'In' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (temp_string5 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'On' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
		
		if (temp_string6 == 0 && s1.length > 1)
	{
		alert ("Pls Not Use '&' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (thisform.Category_id.value == "") {
		alert ("Plz must be select any 'Business Category'...");
		thisform.Category_id.focus();
		return false;
	}

	if (thisform.Region_id.value == "") {
		alert ("Plz must be select any 'Region'...");
		thisform.Region_id.focus();
		return false;
	}
		
/*	num = thisform.Company_Name.value;
	temp = Number(num);

	if (isNaN(temp))
       	{
		alert ("Pls Must Be Fill Only Numeric Value, Not Used Character Or special Character");
		thisform.Company_Name.focus();
		return(false);
	}
*/
			
	
return true;
}




<!-- Begin search using by region

function field_validation_busi_des(thisform) {
        
	
       	if (thisform.Business_Name.value == "") {
		alert ("Business Name must be filled and can not be left blank ...");
		thisform.Business_Name.focus();
		return false;
	}

	
		s1 = thisform.Business_Name.value;
       	temp_string = s1.indexOf(" ");
		
		
		if (temp_string == 0 && s1.length > 0)
	{
		alert ("Pls Not Use 'spaces' as a first character In search box...");
		thisform.Business_Name.focus();
		return false;
	}
		
		
		temp_string1 = s1.indexOf("and ");
        temp_string2 = s1.indexOf("or ");
		temp_string3 = s1.indexOf("the ");
		temp_string4 = s1.indexOf("in ");
		temp_string5 = s1.indexOf("on ");
		temp_string6 = s1.indexOf("& ");
		
		 
        if (temp_string1 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'And' as a first word In search box...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (temp_string2 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'Or' as a first word In search box...");
		thisform.Business_Name.focus();
		return false;
	}
	
		
		if (temp_string3 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'The' as a first word In search box...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (temp_string4 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'In' as a first word In search box...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (temp_string5 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'On' as a first word In search box...");
		thisform.Business_Name.focus();
		return false;
	}
	
		
		if (temp_string6 == 0 && s1.length > 1)
	{
		alert ("Pls Not Use '&' as a first word In search box...");
		thisform.Business_Name.focus();
		return false;
	}		
	
return true;
}





<!-- Begin search using by city

function field_validation_city(thisform) {
        
	/*
       	if (thisform.Business_Name.value == "") {
		alert ("Business Name must be filled and can not be left blank ...");
		thisform.Business_Name.focus();
		return false;
	}*/

	
		s1 = thisform.Business_Name.value;
       	temp_string = s1.indexOf(" ");
		
		
		if (temp_string == 0 && s1.length > 0)
	{
		alert ("Pls Not Use 'spaces' as a first character In business name...");
		thisform.Business_Name.focus();
		return false;
	}
		
		
		temp_string1 = s1.indexOf("and ");
        temp_string2 = s1.indexOf("or ");
		temp_string3 = s1.indexOf("the ");
		temp_string4 = s1.indexOf("in ");
		temp_string5 = s1.indexOf("on ");
		temp_string6 = s1.indexOf("& ");
		
		 
        if (temp_string1 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'And' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (temp_string2 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'Or' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
		
		if (temp_string3 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'The' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (temp_string4 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'In' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (temp_string5 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'On' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
		
		if (temp_string6 == 0 && s1.length > 1)
	{
		alert ("Pls Not Use '&' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
	if (thisform.City_Area_Code_Value.value == "") {
		alert ("Please type full city name or area code...");
		thisform.City_Area_Code_Value.focus();
		return false;
	}
	
	if (thisform.Category_id.value == "") {
		alert ("Plz must be select any 'Business Category'...");
		thisform.Category_id.focus();
		return false;
	}
	
/*	num = thisform.Company_Name.value;
	temp = Number(num);

	if (isNaN(temp))
       	{
		alert ("Pls Must Be Fill Only Numeric Value, Not Used Character Or special Character");
		thisform.Company_Name.focus();
		return(false);
	}
*/
			
	
return true;
}






<!-- Begin search using by Description

function field_validation_des(thisform) {
        
	
       	if (thisform.description.value == "") {
		alert ("Description must be filled and can not be left blank ...");
		thisform.description.focus();
		return false;
	}

	
		s1 = thisform.description.value;
       	temp_string = s1.indexOf(" ");
		
		
		if (temp_string == 0 && s1.length > 0)
	{
		alert ("Pls Not Use 'spaces' as a first character In description...");
		thisform.description.focus();
		return false;
	}
		
		
		temp_string1 = s1.indexOf("and ");
        temp_string2 = s1.indexOf("or ");
		temp_string3 = s1.indexOf("the ");
		temp_string4 = s1.indexOf("in ");
		temp_string5 = s1.indexOf("on ");
		temp_string6 = s1.indexOf("& ");
		
		 
        if (temp_string1 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'And' as a first word In description...");
		thisform.description.focus();
		return false;
	}
	
	
		if (temp_string2 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'Or' as a first word In description...");
		thisform.description.focus();
		return false;
	}
	
		
		if (temp_string3 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'The' as a first word In description...");
		thisform.description.focus();
		return false;
	}
	
	
		if (temp_string4 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'In' as a first word In description...");
		thisform.description.focus();
		return false;
	}
	
	
		if (temp_string5 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'On' as a first word In description...");
		thisform.description.focus();
		return false;
	}
	
		
		if (temp_string6 == 0 && s1.length > 1)
	{
		alert ("Pls Not Use '&' as a first word In description...");
		thisform.description.focus();
		return false;
	}
	
		
/*	num = thisform.Company_Name.value;
	temp = Number(num);

	if (isNaN(temp))
       	{
		alert ("Pls Must Be Fill Only Numeric Value, Not Used Character Or special Character");
		thisform.Company_Name.focus();
		return(false);
	}
*/
			
	
return true;
}





<!-- Begin search using by City Name

function field_validation_cit(thisform) {
        
	
	
       	if (thisform.Business_Name.value == "") {
		alert ("Business Name must be filled and can not be left blank ...");
		thisform.Business_Name.focus();
		return false;
	}

	
		s1 = thisform.Business_Name.value;
       	temp_string = s1.indexOf(" ");
		
		
		if (temp_string == 0 && s1.length > 0)
	{
		alert ("Pls Not Use 'spaces' as a first character In business name...");
		thisform.Business_Name.focus();
		return false;
	}
		
		
		temp_string1 = s1.indexOf("and ");
        temp_string2 = s1.indexOf("or ");
		temp_string3 = s1.indexOf("the ");
		temp_string4 = s1.indexOf("in ");
		temp_string5 = s1.indexOf("on ");
		temp_string6 = s1.indexOf("& ");
		
		 
        if (temp_string1 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'And' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (temp_string2 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'Or' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
		
		if (temp_string3 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'The' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (temp_string4 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'In' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
	
		if (temp_string5 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'On' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}
	
		
		if (temp_string6 == 0 && s1.length > 1)
	{
		alert ("Pls Not Use '&' as a first word In business name...");
		thisform.Business_Name.focus();
		return false;
	}

	
	
	
       	if (thisform.city.value == "") {
		alert ("City must be filled and can not be left blank ...");
		thisform.city.focus();
		return false;
	}

	
		s1 = thisform.city.value;
       	temp_string = s1.indexOf(" ");
		
		
		if (temp_string == 0 && s1.length > 0)
	{
		alert ("Pls Not Use 'spaces' as a first character In description...");
		thisform.city.focus();
		return false;
	}
		
		
		temp_string1 = s1.indexOf("and ");
        temp_string2 = s1.indexOf("or ");
		temp_string3 = s1.indexOf("the ");
		temp_string4 = s1.indexOf("in ");
		temp_string5 = s1.indexOf("on ");
		temp_string6 = s1.indexOf("& ");
		
		 
        if (temp_string1 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'And' as a first word In City...");
		thisform.city.focus();
		return false;
	}
	
	
		if (temp_string2 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'Or' as a first word In city...");
		thisform.city.focus();
		return false;
	}
	
		
		if (temp_string3 == 0 && s1.length > 3)
	{
		alert ("Pls Not Use 'The' as a first word In city...");
		thisform.city.focus();
		return false;
	}
	
	
		if (temp_string4 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'In' as a first word In city...");
		thisform.city.focus();
		return false;
	}
	
	
		if (temp_string5 == 0 && s1.length > 2)
	{
		alert ("Pls Not Use 'On' as a first word In city...");
		thisform.city.focus();
		return false;
	}
	
		
		if (temp_string6 == 0 && s1.length > 1)
	{
		alert ("Pls Not Use '&' as a first word In city...");
		thisform.city.focus();
		return false;
	}
	
		
/*	num = thisform.Company_Name.value;
	temp = Number(num);

	if (isNaN(temp))
       	{
		alert ("Pls Must Be Fill Only Numeric Value, Not Used Character Or special Character");
		thisform.Company_Name.focus();
		return(false);
	}
*/
			
	
return true;
}








<!-- Begin detail search

function field_validation_detail(thisform) {
        
	/*
       	if (thisform.Business_Name.value == "") {
		alert ("Business Name must be filled and can not be left blank ...");
		thisform.Business_Name.focus();
		return false;
	}*/

	
	if (thisform.City_Area_Code_Value.value == "") {
		alert ("Please type full city name, area code or zip code...");
		thisform.City_Area_Code_Value.focus();
		return false;
	}
	
/*	if (thisform.zip.value == "") {
		alert ("Please type full zip code...");
		thisform.zip.focus();
		return false;
	}

	
	num = thisform.City_Area_Code_Value.value;
	zval1 = thisform.City_Area_Code[1].value;
	zval2 = thisform.City_Area_Code[2].value;	
	temp = Number(num);
		
	if (isNaN(temp) && zval2 == "zip")
       	{
		alert ("Pls Must Be Fill Only Numeric Value, Not Used Character Or special Character");
		thisform.City_Area_Code_Value.focus();
		return(false);
	}
*/
	
return true;
}
