function validateUser(path){
var firstName=document.getElementById("firstName").value;
var lastName=document.getElementById("lastName").value;
var userEmail=document.getElementById("userEmail").value;
var userPhone=document.getElementById("userPhone").value;
if(firstName==""||firstName.length==0){
alert("Please Input First Name!!!!First Name can't be empty!!!");
}else if(lastName==""||lastName.length==0){
alert("Please Input Last Name!!!!Last Name can't be empty!!!");
}else if(userEmail==""||userEmail.length==0){
alert("Please Input Email Address!!!!E-mail Address can't be empty!!!");
}else if(!/\w{1,}[@][\w\-]{1,}([.]([\w\-]{1,})){1,3}$/.test(userEmail)){
alert("Email'Format is incorrect,Please Input email again!!!");
}else if(userPhone==""||userPhone.length==0){
alert("Please Input Contact Phone!!!!Contact Phone can't be empty!!!");
}else if(!/[0-9]$/.test(userPhone)){
alert("Phone'Format is incorrect,Please Input Phone  in digital again!!!");
}else{
document.forms[0].method="post";
document.forms[0].action=path+"/sellaccounts/sellaccountsok.jsp";
document.forms[0].submit();
}
}
