if(document.location.toString().split('?').length>1)
{
 if(document.location.toString().split('?')[1].split('=')[1]=='true')
  {
  alert("mail successfully sent");
  }
}
 function validate()
 {
 //debugger;
 var name=document.getElementById("senderName");
 var telephone= document.getElementById("senderTelephone");
 if(name.value=="" && telephone.value=="")
 {
 alert("Please fill required fields");
 return false;
 }
 return true;
 }
