function onsave() {
if (((uf_instr_java(1,register.Email.value,"@")==0) || (uf_instr_java(1,register.Email.value,".")==0)) && (register.Email.value.length > 0)){
alert("\Email address is invalid!!")
return false;
}
if (register.Companyname.value==""){
alert("Please enter the client name!");
register.Companyname.focus();
return false;
}
if (register.ContactPerson.value==""){
alert("Please enter the contact!");
register.ContactPerson.focus();
return false;
}
if (register.Phone.value==""){
alert("Please enter the TEL No.!");
register.Phone.focus();
return false;
}
if (register.Fax.value==""){
alert("Please enter the FAX No.!");
register.Fax.focus();
return false;
}
if (register.Email.value==""){
alert("Please enter the email addess!");
register.Email.focus();
return false;
}
if (register.EstimatedSourceWordCount.value==""){
alert("Please enter the quantity!");
register.EstimatedSourceWordCount.focus();
return false;
}
if (register.Deadline.value==""){
alert("Please enter the expected Deadline!");
register.Deadline.focus();
return false;
}
}
function uf_instr_java(llStart, asString, asSubString){
var i, lsSubStr
for (i = llStart; i <= asString.length; i++){
lsSubStr = asString.substr(i-1,(asSubString.length))
if (lsSubStr==asSubString){
return i
}
}
return 0
}