function checkForm(theForm) {
    var why = "";
	why += checkOrderNo(theForm.oid.value);
	why += checkZipCode(theForm.bzip.value);
	
    if (why != "") {
       alert(why);
       return false;
    }
return true;
}



function checkZipCode(strng) {
	var error = "";
	var filter1 = /\d{5}/;
	var filter2 = /\d{5}\-\d{4}/;
	if (strng == "") {
		error = "Please enter your Billing Zip Code.";
	}
	else if ((strng != "") && (!filter1.test(strng)) && !(filter2.test(strng))) {
		error = "Your Zip Code format is not valid.  Please enter the Billing Zip Code you used when you placed your order.\n";
	}
	return error;
}



function checkOrderNo(strng) {
	var error = "";
	var filter = /\d{6}/;
	if (strng == "") {
		error = "Please enter your 6-digit order number.";
	}
	else if ((strng != "") && (!filter.test(strng))) {
		error = "Your Order Number format is not valid.  It must contain only 6 digits.\n";
	}
	return error;
}
