﻿function ismail(mail)
      {
        return(new RegExp(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/).test(mail));
      }
function checkdata(){
    var f=document.forms[0];

	if(f.name.value=='')
	{
	alert("please input your name!");
	f.name.focus();
	return false;
	}
	
	if(f.phone.value=='')
	{
	alert("please input your mobile number!");
	f.phone.focus();
	return false;
	}
	
	if(!ismail(f.email.value))
	{
	alert("please input right email!");
	f.email.focus();
	return false;
	}
	
	if(f.other.value=='')
	{
	alert("please input your other!");
	f.other.focus();
	return false;
	}
	
	
	
	document.getElementById("ctl00_ContentPlaceHolder1_txtHTML").value=document.getElementById("ctl00_ContentPlaceHolder1_PanelContent").innerHTML;
	__doPostBack('ctl00$ContentPlaceHolder1$btnSubmit','');	
}

