<!--
window.onerror=null; 

function isphone(val)
        {
        var reg = new RegExp("^[+ ]*[\(\)]*[0-9 ]+[\(\)]*[0-9\-]+$");
         return reg.test(val);
        }

function ismail(val)
        {
        //var reg = ^[0-9a-zA-Z_]+@[0-9a-zA-Z_^.]+.[a-zA-Z]+$;
        var reg = /[0-9a-z_]+@[0-9a-z_]+\.[a-z]{2,4}/i;
          return reg.test(val);
        }

        
function submitbutton()
{
		if(contact.name.value == "")
		{ alert( "Please write Your name." ); contact.name.focus(); contact.name.select();}
<!--		else if  (contact.company.value == "")
<!--		{ alert( "You must provide a company." ); contact.company.focus();	contact.company.select();}
		else if  (!ismail(contact.email.value))
		{ alert( "You must specify correct e-mail address." ); contact.email.focus(); contact.email.select();}
<!--		else if(!isphone(contact.phone.value))
<!--		{ alert( "You must specify correct phone number." ); contact.phone.focus(); contact.phone.select();}
		else if  (contact.comments.value == "")
		{ alert( "Please provide Your comments." ); contact.comments.focus(); contact.comments.select();}
		else {
		try {
				document.contact.onsubmit();
			}
			catch(e){}
			document.contact.submit();
		}
}
//-->