/* Email validation 
------------------------------------------------------------------ */
function checkform(){
    var phone=false;
      var reMail = /^[A-Za-z0-9_.-]+@[A-Za-z0-9_.-]+\.[A-Za-z]{2,3}$/;
      if (document.formata.name.value == '') {
        document.formata.name.focus();
        alert("Please Type Your First and Last Name !");
        return(false);
      }
      if (document.formata.tel.value == '') {
        alert("Please Type Your telephon number !");
        document.formata.tel.focus();
        return(false);
      }
      if ((document.formata.email.value == '') || !reMail.exec(document.formata.email.value)) 	{
        alert("Please Type Valid E-mail Address!");
        document.formata.email.focus();
        return(false);
      }
      
      if (document.formata.otnosno.value == '') {
        alert("Please Type Your telephon number !");
        document.formata.otnosno.focus();
        return(false);
      }
        if (document.formata.tel.value == '') {
        alert("Please Type Your telephon number !");
        document.formata.lastN.focus();
        return(false);
      }
    
      return(document.formata.submit());
    }

/* Show/Hide 
------------------------------------------------------------------ */
function showHide(ele, ele1, ele2){
var x, y, z;
if ( document.getElementById
&& (x = document.getElementById(ele))
&& x.style )
{
x.style.display = ('none' == x.style.display)? '' : 'none' ;
}
if ( document.getElementById
&& (y = document.getElementById(ele1))
&& y.style )
{
y.style.display = ('none' == y.style.display)? '' : 'none' ;
}
if ( document.getElementById
&& (z = document.getElementById(ele2))
&& z.style )
{
z.style.display = ('none' == z.style.display)? '' : 'none' ;
}
}
