function validate_publications_form(){
  
  valid = true;

    if ( document.form1.shipping1.checked == false && document.form1.shipping2.checked == false && document.form1.shipping3.checked == false)
    {
        alert ( "You must select a Shipping Method" );
        valid = false;
    }

    if ( document.form1.shipping1.checked == true && document.form1.shipping2.checked == true)
    {
        alert ( "You must ONLY select ONE Shipping Method" );
        valid = false;
    }
    if ( document.form1.shipping2.checked == true && document.form1.shipping3.checked == true)
    {
        alert ( "You must ONLY select ONE Shipping Method" );
        valid = false;
    }
 
    if ( document.form1.shipping1.checked == true && document.form1.shipping3.checked == true)
    {
        alert ( "You must ONLY select ONE Shipping Method" );
        valid = false;
    }


    if ( document.form1.name.value == "" )
    {
        alert ( "Please fill in the 'Name' box." );
        valid = false;
    }

    if ( document.form1.address.value == "" )
    {
        alert ( "Please fill in the 'Address' box." );
        valid = false;
    }

    if ( document.form1.email.value == "" )
    {
        alert ( "Please fill in the 'E-Mail' box." );
        valid = false;
    }

    return valid;
}






function checkWholeForm(theForm) {

    var why = "";
    why += checkEmail(theForm.email.value);
    why += isDifferent(theForm.email.value,theForm.emailx.value);
    why += checkName(theForm.name.value);
    why += checkAddress(theForm.address.value);
    why += checkOrder(theForm.order.value);
    for (i=0, n=theForm.delivery.length; i<n; i++) {
        if (theForm.delivery[i].checked) {
          var checkvalue = theForm.delivery[i].value;
          break;
        } 
    }
    why += checkRadio(checkvalue);
    if (why != "") {
       alert(why);
       return false;
    }
return true;
}

function checkEmail (strng) {
 var error = "";
 if (strng == "") {
    error = "You didn't enter your Email Address.\n";
 }
return error; 
}
function checkName (strng) {
 var error = "";
 if (strng == "") {
    error = "You didn't enter your name.\n";
 }
return error; 
}
function checkAddress(strng) {
 var error = "";
 if (strng == "") {
    error = "You didn't enter your address.\n";
 }
return error; 
}
function checkOrder (strng) {
 var error = "";
 if (strng == "") {
    error = "You didn't enter any order details.\n";
 }
return error; 
}
function isDifferent(strng, strng2) {
  var error = "";
  if (strng != strng2) {
     error = "Your EMails did not match.\n";
  }
return error; 
}
function checkRadio(checkvalue) {
var error = "";
   if (!(checkvalue)) {
       error = "Please check a delivery method.\n";
    }
return error;    
}
