<!--
function check_add(theform) {
if(theform.username.value == ""){
alert("Username is NULL !!");
theform.username.focus();
return false;
}
if(theform.password.value == ""){      
alert("Password is NULL !!");      
theform.password.focus();
return false;
}
if(theform.password1.value==""){      
alert("Password is NULL !!");      
theform.password1.focus();
return false;
}
if(theform.password.value!=theform.password1.value){      
alert("Password ERROR !!");      
theform.password.value="";
theform.password1.value="";
theform.password.focus();
return false;
}
if(theform.uahint.value == ""){      
alert("Check hint is NULL !!");      
theform.uahint.focus();
return false;
} 
if(theform.fname.value == ""){
alert("First Name is NULL !!");
theform.fname.focus();
return false;
}
if(theform.lname.value == ""){
alert("Last Name is NULL !!!");
theform.lname.focus();
return false;
}
if(theform.uacompany.value == ""){      
alert("Company name is NULL !!");      
theform.uacompany.focus();
return false;
} 
if(theform.mycode.value == ""){      
alert("Code is NULL !!");      
theform.mycode.focus();
return false;
} 

if(theform.mycode.value.length!=4){
alert("Code Error! Please contact office for your code!");
theform.mycode.focus();
return false;
} 
var mycodeval=parseInt(theform.mycode.value);
var mycodestr=mycodeval+"";
if (isNaN(mycodeval) || (mycodestr.length!=4)) {
alert("Code Error! Please contact office for your code!");
theform.mycode.focus();
return false;
} 
if(theform.uaemail.value == ""){      
alert("Email is NULL !!");      
theform.uaemail.focus();
return false;
}
if(theform.tel1.value == "" || theform.tel2.value =="" || theform.tel3.value ==""){
alert("Telephone Number is NULL !!!");
theform.tel1.focus();
return false;
}
if(theform.lockval.value=="1"){
return false;}
theform.lockval.value="1";
return true;
theform.submit.disabled=true;
}

function check(theform) {
if(theform.username.value == ""){
alert("Username is NULL !!");
theform.username.focus();
return false;
}
if(theform.password.value == ""){      
alert("Password is NULL !!");      
theform.password.focus();
return false;
}
if(theform.password1.value==""){      
alert("Password is NULL !!");      
theform.password1.focus();
return false;
}
if(theform.password.value!=theform.password1.value){      
alert("Password ERROR !!");      
theform.password.value="";
theform.password1.value="";
theform.password.focus();
return false;
}
if(theform.uahint.value == ""){      
alert("Check hint is NULL !!");      
theform.uahint.focus();
return false;
} 
if(theform.fname.value == ""){
alert("First Name is NULL !!");
theform.fname.focus();
return false;
}
if(theform.lname.value == ""){
alert("Last Name is NULL !!!");
theform.lname.focus();
return false;
}
if(theform.uacompany.value == ""){      
alert("Company name is NULL !!");      
theform.uacompany.focus();
return false;
} 
if(theform.uaemail.value == ""){      
alert("Email is NULL !!");      
theform.uaemail.focus();
return false;
}  
if(theform.lockval.value=="1"){
return false;}
theform.lockval.value="1";
return true;
}

function confirm_reset(){
if (confirm("Do you Reset ?")){
return true;
}
return false;
}

function confirm_del(theform){
if (confirm("Do you Delete ?")){
theform.action.value="del"
return true;
}
return false;
}
function confirm_clear(){
if (confirm("Do you Clear ?")){
return true;
}
return false;
}
//-->