function fn_onSubmitAccount()
{	var p
	p=true
   var msg="Following field cannot be blank!\n"
	if(fn_trim(document.getinfo.email.value)==""){ alert(msg +  " [] Email");document.getinfo.email.focus();p=false;return false}
	
	//if(fn_trim(document.getinfo.laddress.value)==""){ alert(msg + " [] Password" );document.getinfo.laddress.focus();p=false;return false}
	
	//	if(fn_trim(document.getinfo.lcity.value)==""){ alert(msg + " [] City" );document.getinfo.lcity.focus();p=false;return false}
	//	if(fn_trim(document.getinfo.lstate.value)==""){ alert(msg +" [] State" );document.getinfo.lstate.focus();p=false;return false}
		if(fn_trim(document.getinfo.lcountry.options[document.getinfo.lcountry.selectedIndex].value)=="UN"){ alert(msg + " [] Country" );document.getinfo.lcountry.focus();p=false;return false}
	//	if(fn_trim(document.getinfo.isd.value)==""){ alert(msg + "[] Phone" );document.getinfo.isd.focus();p=false;return false} 
	//	if(fn_trim(document.getinfo.std.value)==""){ alert(msg + "[] Phone" );document.getinfo.std.focus();p=false;return false} 
	//	if(fn_trim(document.getinfo.phone.value)==""){ alert(msg + "[] Phone" );document.getinfo.phone.focus();p=false;return false} 
		if(isValidEmail(document.getinfo.email.value)==false){alert("Please enter email address correctly"); document.getinfo.email.focus();p=false;return false}
		if(isNaN(document.getinfo.isd.value))
		{
			document.getinfo.isd.focus()
			alert("Please enter phone number correctly")
			p=false;
			return false
		}
		
		if(isNaN(document.getinfo.std.value))
		{
			document.getinfo.std.focus()
			alert("Please enter phone number correctly")
			p=false;
			return false
		}
		if(isNaN(document.getinfo.std.value))
		{
			document.getinfo.phone.focus()
			alert("Please enter phone number correctly")
			p=false;
			return false
		}

		/*if(isValidEntry(document.getinfo.lcity.value)==false)
		{
			alert("Special charcters are not allowed")
			document.getinfo.lcity.focus()
			p=false;
			return false
		}
		
		if(isValidEntry(document.getinfo.lstate.value)==false)
		{
			alert("Special charcters are not allowed")
			document.getinfo.lstate.focus()
			p=false;
			return false
		}*/
		
		if(p==true)
		{
			return true
		}
		
		


}


function fn_onSubmitBirth()
		{
			var p
			p=true
	
		/******************Checking for blank**********************/
			msg="Following field can not be blank \n"
		
			if(fn_trim(document.getinfo.m_name.value)==""){ alert(msg +" [] Name" );document.getinfo.m_name.focus();p=false;return false}
		
			if(document.getinfo.sex.options[document.getinfo.sex.selectedIndex].value==0){ alert("Please select your sex" );document.getinfo.sex.focus();p=false;return false}
			if(document.getinfo.m_day.options[document.getinfo.m_day.selectedIndex].value==-1){alert("Please select day of birth" );document.getinfo.m_day.focus();p=false;return false}
			if(document.getinfo.m_month.options[document.getinfo.m_month.selectedIndex].value==-1){ alert("Please select month of birth" );document.getinfo.m_month.focus();p=false;return false}
			if(document.getinfo.m_year.options[document.getinfo.m_year.selectedIndex].value==-1){ alert("Please select year of birth" );document.getinfo.m_year.focus();p=false;return false}
		
			if(document.getinfo.m_hour.options[document.getinfo.m_hour.selectedIndex].value==-1){ alert("Please select birth hour" ); document.getinfo.m_hour.focus();p=false;return false}
			if(document.getinfo.m_minute.options[document.getinfo.m_minute.selectedIndex].value==-1){ alert("Please select birth minute" ); document.getinfo.m_minute.focus();p=false;return false}
			if(document.getinfo.m_second.options[document.getinfo.m_second.selectedIndex].value==-1){alert("Please select birth seconds" ); document.getinfo.m_second.focus();p=false;return false}

			if(document.getinfo.h_m_zone_id.value=="" || document.getinfo.h_m_state_id.value==""){alert("Please use city locator");  document.anchors.item("locator").click();p=false; return false }
			
	/***************************************Checking for correctness*********************************************/
			
			
			if(isValidDate(document.getinfo.m_month.options[document.getinfo.m_month.selectedIndex].value ,document.getinfo.m_day.options[document.getinfo.m_day.selectedIndex].value ,document.getinfo.m_year.options[document.getinfo.m_year.selectedIndex].value)==false){alert("Invalid date of birth");p=false;return false;}
	
	/**************************************end for *************************************/

			if(p==true)
			{
				return true
			}
	
}
	