<!--
function book_check(ck)
{
  if( document.myForm2.contact.value.length == 0 ) {
    alert("Please complete the \"Contact\" field.");
    document.myForm2.contact.focus();
    return false;
  }

  if (document.myForm2.contact.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Contact\" field.");
    document.myForm2.contact.focus();
    return false;
  }

  if( document.myForm2.company.value.length == 0 ) {
    alert("Please complete the \"Company\" field.");
    document.myForm2.company.focus();
    return false;
  }

  if (document.myForm2.company.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Company\" field.");
    document.myForm2.company.focus();
    return false;
  }

  if( document.myForm2.address.value.length == 0 ) {
    alert("Please complete the \"Address\" field.");
    document.myForm2.address.focus();
    return false;
  }

  if (document.myForm2.address.value.length > 150)
  {
    alert("Please enter at most 150 characters in the \"Address\" field.");
    document.myForm2.address.focus();
    return false;
  }

  if( document.myForm2.email.value.length == 0 ) {
    alert("Please complete the \"Email\" field.");
    document.myForm2.email.focus();
    return false;
  }

  if (document.myForm2.email.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Email\" field.");
    document.myForm2.email.focus();
    return false;
  }

  if( document.myForm2.email.value.length > 0 ) {
    i = document.myForm2.email.value.indexOf( "@" );
    j = document.myForm2.email.value.indexOf( ".", i );
    k = document.myForm2.email.value.indexOf( "," );
    kk = document.myForm2.email.value.indexOf( " " );
    jj = document.myForm2.email.value.lastIndexOf( "." ) + 1;
    len = document.myForm2.email.value.length;
    if( ( i <= 0 ) || ( j <= 2 ) || ( k != -1 ) || ( kk != -1 ) || ( len - jj < 2 ) || ( len - jj > 3 ) ) {
      alert( "The Email Address field must be filled." );
      document.myForm2.email.focus();
      return false;
    }
  }

  if( document.myForm2.tel.value.length == 0 ) {
    alert("Please complete the \"Phone Number\" field.");
    document.myForm2.tel.focus();
    return false;
  }

  if (document.myForm2.tel.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"Phone Number\" field.");
    document.myForm2.tel.focus();
    return false;
  }

  if (ck == "c"){
     if( document.myForm2.memo.value == "" )
     {
       alert("Please complete the \"Enquiry\" field.");
       document.myForm2.memo.focus();
       return false;
     }

     if (document.myForm2.memo.value.length > 5000)
     {
       alert("Please enter at most 5000 characters in the \"Enquiry\" field.");
       document.myForm2.memo.focus();
       return false;
     }
  }
	var wver = document.getElementById("wver");
	wver.value = "adds";
	return true;
}
//-->
