// JavaScript Document
function validate()
{
 var store="";
 var flag=0;
  
if(window.document.form4.name.value=='')
 {
   store+=" Name \n";
   flag=1;
 }  

//if(window.document.form1.rtcompnay.value=='')
// {
//   store+=" Company \n";
//   flag=1;
//   
// }    
if(window.document.form4.email.value=='')
 {
  
   store+=" Email \n";
   flag=1;
 }
 else
{
var i,o,w,s=window.document.form4.email.value;
i=s.indexOf("@");
o=s.indexOf(".");
if((i=s.indexOf("@"))==-1)
{

alert('Invalid "Email Id"');
window.document.form4.email.focus();
return false;
}
if((o=s.indexOf("."))<i)
{
alert('Invalid Email Id');
window.document.form4.email.focus();
return false;
}
var X
X=s.length;
if(X<=o+1)
{
alert('Invaild "Email Id"');
window.document.form4.email.focus();
}
}
if(window.document.form4.country.value=='')
 {
   store+=" Country \n";
   flag=1;
  
 }  
/* if(window.document.form1.rtTime.value=='')
 {
   store+=" Prefered Time \n";
   flag=1;
  
 } */ 
 if(window.document.form4.comments.value=='')
 {
   store+=" Comments  \n";
   flag=1;
  
 }  
// if(window.document.form1.capt.value=='')
// {
//   store+=" Result from Image\n";
//   flag=1;
//  
// } 
if(flag==1)
 {
  alert("Please Enter Compulsory Fields :\n"+store);
  return false;
 }        
else
{
 return true;
}  
}

