// JavaScript Document
function validateCC()
		{
			if(document.AuthorizeNetForm.cardNumber.value=='')
			{ alert("Please enter your Card Number"); document.AuthorizeNetForm.cardNumber.focus(); return false; }
			if(document.AuthorizeNetForm.CardExpMonth.value=='')
			{ alert("Please enter your Card Expiration Month"); document.AuthorizeNetForm.CardExpMonth.focus(); return false; }
			if(document.AuthorizeNetForm.CardExpYear.value=='')
			{ alert("Please enter your Card Expiration Year"); document.AuthorizeNetForm.CardExpYear.focus(); return false; }
			if(document.AuthorizeNetForm.cardVerify.value=='')
			{ alert("Please enter your Card Verification #"); document.AuthorizeNetForm.cardVerify.focus(); return false; }
			
			document.AuthorizeNetForm.submit();
		}

function validateValueBook(myobject) 
{
// set var radio_choice to false
var radio_choice = false;

// Loop from zero to the one minus the number of radio button selections
for (counter = 0; counter < myobject.quantity.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (myobject.quantity[counter].checked)
radio_choice = true; 
}

if (!radio_choice)
{
// If there were no selections made display an alert box 
alert("Please select a ValueBook order.")
return (false);
}
return (true);
}


function check(myobject) {
    if (validateValueBook(myobject))
        myobject.submit();
}