//change photo

 function subcat()
 {
 xmlHttp=GetHttpRequest();

 xmlHttp.onreadystatechange=function()
     {
     if(xmlHttp.readyState==4)
       {
 // alert(xmlHttp.responseText);
       	
       document.getElementById("DivSubcat").innerHTML=xmlHttp.responseText;
       
       }
     }
   
   var url="editclientphoto.php";

xmlHttp.open("GET",url,true);
xmlHttp.send(null);
 }
 
 function myclasschng()
 {
 xmlHttp=GetHttpRequest();

 xmlHttp.onreadystatechange=function()
     {
     if(xmlHttp.readyState==4)
       {
    // alert(xmlHttp.responseText);
       	
       document.getElementById("Divrusmkr").innerHTML=xmlHttp.responseText;
       
       }
     }
      // xmlHttp.open("GET","searchuse.php?cat="+document.frmpass.category.value,true);
        // xmlHttp.open("GET","searchuse.php?brand="+document.frmpass.brand.value,true);
  

     var url="chksmoker.php";
 //url=url+"?mycla="+document.frmpass.mycla.value;
 //url=url+"&mem1="+document.frmpass.medium.value;
 for (var i=0; i < document.example.smoker.length; i++)
    {
  if (document.example.smoker[i].checked)
       {
       url=url+"?mem1="+document.example.smoker[i].value;
       }
    }

 xmlHttp.open("GET",url,true);

   //xmlHttp.open("GET","searchproduct.php?cat="+document.frmpass.category.value,true);
   xmlHttp.send(null);
 }
 
 function mydrinkchng()
 {
 xmlHttp=GetHttpRequest();

 xmlHttp.onreadystatechange=function()
     {
     if(xmlHttp.readyState==4)
       {
    // alert(xmlHttp.responseText);
       	
       document.getElementById("Divrudkr").innerHTML=xmlHttp.responseText;
       
       }
     }
      // xmlHttp.open("GET","searchuse.php?cat="+document.frmpass.category.value,true);
        // xmlHttp.open("GET","searchuse.php?brand="+document.frmpass.brand.value,true);
  

     var url="chkdkr.php";
 //url=url+"?mycla="+document.frmpass.mycla.value;
 //url=url+"&mem1="+document.frmpass.medium.value;
 for (var i=0; i < document.example.alcohol.length; i++)
    {
  if (document.example.alcohol[i].checked)
       {
       url=url+"?alch="+document.example.alcohol[i].value;
       }
    }

 xmlHttp.open("GET",url,true);

   //xmlHttp.open("GET","searchproduct.php?cat="+document.frmpass.category.value,true);
   xmlHttp.send(null);
 }
 
 
//Get contact


 function getContct()
 {
 xmlHttp=GetHttpRequest();
 var name=document.frmContact.name.value;
 var email=document.frmContact.email.value;
 var contactmsg=document.frmContact.contactmsg.value;

 if(name=="Name" || name==" "|| name==""){ alert("Sorry! Please Type Your  Name");document.frmContact.name.focus(); return false; }
 if(email=="E-Mail" || email.search("@")==-1 ){ alert("Sorry! Invalid emailId");document.frmContact.email.focus(); return false; }
 if(contactmsg=="Descriptions" || contactmsg==" " || contactmsg==""){ alert("Sorry! Please Type Your Content");document.frmContact.contactmsg.focus(); return false; }
 else{
 xmlHttp.onreadystatechange=function()
   {

 		
   if(xmlHttp.readyState==4)
     {
   //alert(xmlHttp.responseText);
	   alert("Thanks for your query. You will receive a reply from Dr.Veera Balaji shortly.");
	   window.location.href="index.php";
     document.getElementById("contf").innerHTML=xmlHttp.responseText;
     
     }
   }    
   }
 var url="custcont.php";
 url=url+"?name="+document.frmContact.name.value;
 url=url+"&email="+document.frmContact.email.value;
 url=url+"&contactmsg="+document.frmContact.contactmsg.value;
 xmlHttp.open("GET",url,true);
 xmlHttp.send(null);
 }

