  /* Dropdown Menu */
  window.onload = dropDown;
  function dropDown(id){
   var d = document.getElementById(id);
    for (var i = 1; i < 10; i++) { 
     if (document.getElementById('subMenu'+i)) {document.getElementById('subMenu'+i).style.display='none'; document.getElementById('subMenu'+i).style.position='absolute';} 
    }  
   if (d) {d.style.display='block';}
  }
/* Onload text-input-name got focus */
 function textInputFnameFocus(){
  document.formLogin.fname.focus();
 }
 /* Form fields checker */
 function formLoginChecker(){
  var txtInputName = document.formLogin.fname.value;
  txtInputEmail = document.formLogin.email.value;
     
  if(txtInputName==""){
   alert("Please fill in your Name!");
   document.formLogin.fname.focus();
   return false;
  }
  
  else if(txtInputEmail.indexOf('@', 0) == -1){
             alert('Please fill in your valid Email address. Your email should be in the following format: email@address.com')
   document.formLogin.email.focus();
   return false;  
  }
  
  else{
   document.formLogin.submit();
  }
  
  } 
