function checkform()
{
 if (document.getElementById("sender").value=='')
  {
   alert("Please Supply your Email");
   return false;
  }
 else if (document.getElementById("sender").value!='')
  {
   if (document.getElementById("sender").value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1 )
    {
     alert("Please Supply your Email");
     return false;
    }
   else
    return true;
  }
 else
  {
   //window.open('contact.php','ContactForm','resizable=no,scrollbars=yes,width=300,height=40,toolbar=no');
   return true;
  }
}


function popup(form)
{
 if (document.getElementById("sender").value=='')
  {
   alert("Please Supply your Email");
   return false;
  }
 else if (document.getElementById("sender").value!='')
  {
   if (document.getElementById("sender").value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1 )
    {
     alert("Please Supply your Email");
     return false;
    }
   else
    {
     win=window.open('','contact','resizable=no,scrollbars=yes,width=200,height=60,toolbar=no');
     form.target='contact';
     form.action='contact.php';
     return true;
    }
  }
}