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!!")
return false;
}
if (register.Companyname.value==""){
alert("请填写你的客户名称!");
register.Companyname.focus();
return false;
}
if (register.ContactPerson.value==""){
alert("请填写联系人!");
register.ContactPerson.focus();
return false;
}
if (register.Phone.value==""){
alert("请填写电话号码!");
register.Phone.focus();
return false;
}
if (register.Fax.value==""){
alert("请填写传真号码!");
register.Fax.focus();
return false;
}
if (register.Email.value==""){
alert("请填写电子邮箱!");
register.Email.focus();
return false;
}
if (register.EstimatedSourceWordCount.value==""){
alert("请填写项目总量!");
register.EstimatedSourceWordCount.focus();
return false;
}
if (register.Deadline.value==""){
alert("请填写项目递交日期!");
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
}