// JavaScript Document
function contact_validate()
{
try
         { 
           with( document.contact_form )
           {
           if( name.value == "")
           {
              throw "Please fill in your name";
           }
           if( email.value == "" )
           {
              throw "Please fill in your email";
           }
			var str = email.value;
			var re = /^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/;
    	   if (!str.match(re)) {
               throw "Please check your email address format.";
  		   }

		   if( subject.value == ""  )
           {
              throw "Please fill in your subject";
           }
		   if( comment.value == ""  )
           {
              throw "Please fill in your inquiry";
           }

		}
      }
      catch( error )
      {
        alert( error );
        return( false );
      }
      return( true ); 
}


