function  checkuserlogin(theForm) {
  if (theForm.uid.value=="")
  {
   alert("Please enter UserName.");
    theForm.uid.focus();
    return (false);
  }
   if (theForm.pwd.value=="")
  {
   alert("Please enter PASSWORD.");
    theForm.pwd.focus();
    return (false);
  }
 }
function  check_trackorderno(theForm) {
  if (theForm.oid.value=="")
  {
   alert("Please enter Order No.");
    theForm.oid.focus();
    return (false);
  }
   if (isNaN(theForm.oid.value))
  {
  alert("Please enter only Numerical Value.");
  theForm.oid.value="";
  theForm.oid.focus()
  return(false)
  }
  
   if (theForm.trackno.value=="")
  {
   alert("Please enter Tracking No.");
    theForm.trackno.focus();
    return (false);
  }
 }
<!--
function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}



function searchvalid(theForm){
 if (theForm.search.value=="")
  {
   alert("Please enter Search Criteria in the Search field.");
    theForm.search.focus();
    return (false);
  }
  else
  {
    document.frmsearch.action='search.asp';
    document.frmsearch.submit();
  }
}
function  checkstatus(theForm) {
  if (theForm.trackno.value=="")
  {
   alert("Please enter Tracking Number.");
    theForm.trackno.focus();
    return (false);
  }
  if (isNaN(theForm.trackno.value))
  {
  alert("Please enter only Numerical Value.");
  theForm.trackno.value="";
  theForm.trackno.focus()
  return(false)
  }
  
  if (theForm.imeino.value=="")
  {
   alert("Please enter IMEI/ESN Number.");
    theForm.imeino.focus();
    return (false);
  }return (true);
}

function  contact(theForm) {
 
  if (theForm.name.value=="")
  {
   alert("Please enter Your Name.");
    theForm.name.focus();
    return (false);
  }
     if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"email\" field.");
    theForm.email.focus();
    return (false);
  }
   if (!isEmailAddr(theForm.email.value))
  {
    alert("Please enter a valid email address in the form: yourname@yourdomain.com");
    theForm.email.focus();
    return (false);
  }

    if (theForm.mobile.value=="")
  {
   alert("Please enter Contact Number.");
    theForm.mobile.focus();
    return (false);
  }
  
  if (isNaN(theForm.mobile.value))
  {
  alert("Please enter only Numerical Value.");
  theForm.mobile.value="";
  theForm.mobile.focus()
  return(false)
  }

  if (theForm.mobile.value.length < 5){
  alert("Please enter your real number");
  theForm.mobile.focus();
  return(false);
  }

  if (theForm.subjects.selectedIndex == 0)
  {
    alert("The first \"Choose a Subject\" option is not a valid selection.  Please choose one of the other options.");
    theForm.subjects.focus();
    return (false);
  }
  
   if (theForm.product.selectedIndex == 0)
  {
    alert("The first \"Select Product Category\" option is not a valid selection.  Please choose one of the other options.");
    theForm.product.focus();
    return (false);
  }
    
  
  if (theForm.message.value=="")
  {
   alert("Please enter Message");
    theForm.message.focus();
    return (false);
  }
  
}


function secure(theForm) 
{
  if (theForm.cardNum.value=="")
  {
   alert("Please enter Card Number.");
    theForm.cardNum.focus();
    return (false);
  }
  if (isNaN(theForm.cardNum.value))
  {
  alert("Please enter only Numerical Value.");
  theForm.cardNum.value="";
  theForm.cardNum.focus();
  return(false);
  }  
  
    if (theForm.cardNum.value.length < 15)
  {
    alert("Please enter at least 15 digits in the Field");
    theForm.cardNum.focus();
    return (false);
  }
  
 if (theForm.cvv2.value=="")
  {
   alert("Please enter Verification Code");
    theForm.cvv2.focus();
    return (false);
  }
  if (isNaN(theForm.cvv2.value))
  {
  alert("Please enter only Numerical Value.");
  theForm.cvv2.value="";
  theForm.cvv2.focus()
  return(false)
  }  
  if (theForm.cvv2.value.length < 3)
  {
    alert("Please enter at least 4 digits in the Field");
    theForm.cardNum.focus();
    return (false);
  }

return(true);
}


function checkreopen(theForm){
 
 if (theForm.ticketno.value == "")
  {
    alert("Please enter Your Ticket Number");
    theForm.ticketno.focus();
    return (false);
  }
  
  if (theForm.email.value == "")
  {
    alert("Please enter a value in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }
   if (!isEmailAddr(theForm.email.value))
  {
    alert("Please enter a valid email address in the form: yourname@yourdomain.com");
    theForm.email.focus();
    return (false);
  }
}
function orderedcompalin(theForm){
if (theForm.trackno.value == "")
  {
    alert("Please enter Your Track Number");
    theForm.trackno.focus();
    return (false);
  }
  if (isNaN(theForm.trackno.value))
  {
  alert("Please enter only Numerical Value.");
  theForm.trackno.value="";
  theForm.trackno.focus()
  return(false)
  }  
  
  if (theForm.email.value == "")
  {
    alert("Please enter a value in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }
   if (!isEmailAddr(theForm.email.value))
  {
    alert("Please enter a valid email address in the form: yourname@yourdomain.com");
    theForm.email.focus();
    return (false);
  }
  
  if (theForm.message.value == "")
  {
    alert("Please enter Your Message");
    theForm.message.focus();
    return (false);
  }

}
function orderedEnquiry(theForm){
if (theForm.trackno.value == "")
  {
    alert("Please enter Your Track Number");
    theForm.trackno.focus();
    return (false);
  }
  if (isNaN(theForm.trackno.value))
  {
  alert("Please enter only Numerical Value.");
  theForm.trackno.value="";
  theForm.trackno.focus()
  return(false)
  }  
  
  if (theForm.email.value == "")
  {
    alert("Please enter a value in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }
   if (!isEmailAddr(theForm.email.value))
  {
    alert("Please enter a valid email address in the form: yourname@yourdomain.com");
    theForm.email.focus();
    return (false);
  }
  
  if (theForm.product.selectedIndex == 0)
  {
    alert("The first \"Choose a product\" option is not a valid selection.  Please choose one of the other options.");
    theForm.product.focus();
    return (false);
  }
  if (theForm.message.value == "")
  {
    alert("Please enter Your Message");
    theForm.message.focus();
    return (false);
  }

}
function unorderedcompalinenq(theForm){
if (theForm.email.value == "")
  {
    alert("Please enter a value in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }
   if (!isEmailAddr(theForm.email.value))
  {
    alert("Please enter a valid email address in the form: yourname@yourdomain.com");
    theForm.email.focus();
    return (false);
  }
  if (theForm.Name.value == "")
  {
    alert("Please enter a value in the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

   if (theForm.product.selectedIndex == 0)
  {
    alert("The first \"Choose a product\" option is not a valid selection.  Please choose one of the other options.");
    theForm.product.focus();
    return (false);
  }
  
 if (theForm.message.value == "")
  {
    alert("Please enter Your Message");
    theForm.message.focus();
    return (false);
  }
}


function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}

<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Function not allowed.");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
//  End -->

