<!--
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;
}  
return 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;
}  
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;
}
//-->