function checkNewsletter(frm)

{

	 alert('here');	 

	  if(!validateBlank(frm.name,"news_sub","Please Enter Email Address"))

	return false;	

	 

	 if(!validateEmail(frm.name,"news_sub","Please Enter Valid Email"))

	return false;

			 

return true;

}



<!---------------------------------------------------------------------------------->

var countryid;

function ChangeCountry(country)  

{

	

	//countryarr = country.split("_");

	 CountryCode = country;

	stateObj = document.getElementById("st");

	cityObj = document.getElementById("ci");

	cityObj.innerHTML = "<select name='CityID'><option value=''>Select</option></select>";

	var doc = null; 

	
    
			if (typeof window.ActiveXObject != 'undefined' ) 

			{ 

				doc = new ActiveXObject("Microsoft.XMLHTTP"); 

			} 

			else 

			{ 

				doc = new XMLHttpRequest(); 

			}			

	

	doc.open("GET", "getstate.php?country=" + CountryCode,false);

	doc.send(null);		

	var Res = doc.responseText;

	stateObj.innerHTML = Res;

	

	

}

<!----------------------------------------------------------------------------------->

function ChangeState(stateid)  

{

		showStateObj = document.getElementById("vstate_other");

		showCityObj = document.getElementById("vcity_other");

		

	if(stateid == "other")

	{

		showStateObj.disabled = false;

		showCityObj.disabled = false;

		showStateObj.focus();

	}

	else

	{

		showStateObj.disabled = true;

		showCityObj.disabled = true;

	}

	 

	

	cityObj = document.getElementById("ci");

	var doc = null; 





			if (typeof window.ActiveXObject != 'undefined' ) 

			{ 

				doc = new ActiveXObject("Microsoft.XMLHTTP"); 

			} 

			else 

			{ 

				doc = new XMLHttpRequest(); 

			}			

	

	doc.open("GET", "getcity.php?country=" + countryid+"&state="+stateid,false);

	doc.send(null);		

	var Res = doc.responseText;

	cityObj.innerHTML = Res;

	

	

}



function ChangeCity(city)

{

	showCityObj = document.getElementById("vcity_other");

	if(city == "other")

			 showCityObj.disabled = false;

	else  

		showCityObj.disabled = true;

}



function echeck(str) {

	var at="@"

	var dot="."

	var lat=str.indexOf(at)

	var lstr=str.length

	var ldot=str.indexOf(dot)

	if (str.indexOf(at)==-1){

	   return false

	}



	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){

	  

	   return false

	}



	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){

		return false

	}



	 if (str.indexOf(at,(lat+1))!=-1){

		return false

	 }



	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){

		return false

	 }



	 if (str.indexOf(dot,(lat+2))==-1){

		return false

	 }

	

	 if (str.indexOf(" ")!=-1){

		return false

	 }



 		 return true					

}





function checkNewsletterForm(){

	var msg='';

	if ($F('vfirstname')=='' || $F('vlastname')=='' ||  $F('news_sub')==''  ){

		$('err_div').innerHTML='Fields marked with * are mandatory';

	}else if (echeck($F('news_sub'))==false ) {

		$('err_div').innerHTML='Please enter a valid email address';	

	}else{

		document.newsletter.submit();	

	}

}





function check(frm)

{

	 	if(!validateBlank(frm.name,"vfirstname","Please Enter FirstName"))

	return false;	

if(!validateBlank(frm.name,"vlastname","Please Enter LastName"))

	return false;	

	 

	 if(!validateBlank(frm.name,"vadd1","Please Enter Address 1"))

	return false;

	

	 if(!validateBlank(frm.name,"vcountry","Please Enter Country"))

	return false;

	

	// if(!validateBlank(frm.name,"vstate","Please Enter State"))

	//return false;

	

	// if(!validateBlank(frm.name,"vcity","Please Enter City"))

	//return false;

	

	 if(!validateBlank(frm.name,"vzip","Please Enter Zip Code"))

	return false;

	

	if(!validateNumber(frm.name,"vzip","Please Enter Numeric Value"))

	return false;

			 

return true;

}
