function validate(){
var name=document.getElementById('name').value;
var email=document.getElementById('email').value;
var city=document.getElementById('city').value;
var mobile=document.getElementById('mobile').value;
if(name==""){
document.getElementById('errname').innerHTML="**Name Should Not Be Empty";
return false;
}else{
document.getElementById('errname').innerHTML="";
}
if(email==""){
document.getElementById('erremail').innerHTML="**Email Not Be Empty";
return false;
}else{
document.getElementById('erremail').innerHTML="";
}
if(city=="mu"){
document.getElementById('city').style.background="deeppink";
document.getElementById('city').style.color="#fff";
return false;
}else{
document.getElementById('errcity').innerHTML="";
}
if(mobile==""){
document.getElementById('errmob').innerHTML="**mobile should not be empty";
document.getElementById('ver').disabled=true;
return false;
}else{
document.getElementById('errmob').innerHTML="";
document.getElementById('ver').disabled=false;
}
if((mobile.length>10) || (mobile.length<10)){
document.getElementById('errmob').innerHTML="**mobile should 10digits";
document.getElementById('ver').disabled=true;
return false;
}else{
document.getElementById('errmob').innerHTML="";
document.getElementById('ver').disabled=false;
}
}