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;    
}