//*********************************************************************************************
//
// Coded by Artis Co.,Ltd.
// http://www.artisj.com
// If you want to use this code, feel free to do so, however; please leave this message intact.
// Copyright(C) 2003 Artis Co.,Ltd. All rights reserved.
//
//*********************************************************************************************
var W_Chk=0;
function FormChk(){
var error_string="";
if(window.document.formmail.elements[0].value==""){
error_string+="You did not fill in NAME.\n";
}
if(window.document.formmail.elements[1].value==""){
error_string+="You did not fill in E-MAIL ADDRESS.\n";
}
if(window.document.formmail.elements[2].value==""){
error_string+="You did not fill in COMMENTS.\n";
}
if(error_string==""){
if(W_Chk=="1"){
alert("transmited a message");
return false;
}
if(W_Chk=="0"){
W_Chk=1;
return true;
}
}
else{
error_string="Please fill in all of the blanks below\n\n"+error_string;
alert(error_string);
W_Chk=0;
return false;
}
}