<!--
function checkForm() {
error = "";
if ((document.mailmyform_form.name.value == "") ||
(document.mailmyform_form.name.value.indexOf('Your first and last name') == 0) ||
(document.mailmyform_form.name.value.indexOf(' ') == -1) ||
(document.mailmyform_form.name.value == " ")) {
error += "\n - Your first and last name";
}
if ((document.mailmyform_form.email.value == "") ||
(document.mailmyform_form.email.value.indexOf('@') == -1) ||
(document.mailmyform_form.email.value.indexOf('Your e-mail address') == 0) ||
(document.mailmyform_form.email.value.indexOf('.') == -1)) {
error += "\n - Your e-mail address";
}
if ((document.mailmyform_form.phone.value == "") ||
(document.mailmyform_form.phone.value.indexOf('Your phone number') == 0) ||
(document.mailmyform_form.phone.value == " ")) {
error += "\n - Your phone number";
}
if ((document.mailmyform_form.address.value == "") ||
(document.mailmyform_form.address.value.indexOf('Your address') == 0) ||
(document.mailmyform_form.address.value == " ")) {
error += "\n - Your address";
}
if ((document.mailmyform_form.msg.value == "") ||
(document.mailmyform_form.msg.value.indexOf('Specify what you are ordering in this message field') == 0) ||
(document.mailmyform_form.msg.value.indexOf('http') > 0) ||
(document.mailmyform_form.msg.value.indexOf('www') > 0) ||
(document.mailmyform_form.msg.value.indexOf('.com') > 0) ||
(document.mailmyform_form.msg.value.indexOf('.net') > 0) ||
(document.mailmyform_form.msg.value.indexOf('.org') > 0) ||
(document.mailmyform_form.msg.value.indexOf('.biz') > 0) ||
(document.mailmyform_form.msg.value.indexOf('://') > 0) ||
(document.mailmyform_form.msg.value == " ")) {
error += "\n - Your order";
}
if (error != "") {
error ="\n" +
"You need to fill out correctly:\n" +
error + "\n" +
"\n";
alert(error);
return false;
}
else return true;
}
//-->