function add()

if document.form1.u_Email.value="" then
alert("'E-mail' is required")
exit function
end if
m=document.form1.u_Email.value
if instr(m,"@")=0 or instr(m,".")=0 then
alert("Invalid 'E-mail'")
exit function
end if
if isnumeric(document.form1.u_telephone.value)=false and document.form1.u_telephone.value<>"" or len(document.form1.u_telephone.value)>=12 then
alert("Invalid 'Telephone'")
exit function
end if
if document.form1.u_Message.value="" then
alert("'Message' is required")
exit function
end if
set dd=document.form1

	dd.u_Message.value="ComPanyName:"&dd.u_cname.value+";-----"+"Fullname:"&dd.u_fname.value+";-----"+"Telephone:"&dd.u_telephone.value+";-----"+"Content:"&dd.u_Message.value+";-----"+"Email:"&dd.u_Email.value+";"
dd.submit()

end function