<!--
function Validate1(){

//-----------------------Description-------------------------------------||
if(document.form.pad_description.value == ""){
	alert ('you must give a description')
	return false;
}

//---------------------------Size-----------------------------------------||
myOption = -1;
for (i=0; i<document.form.pad_size.length; i++) {
if (document.form.pad_size[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert("You must select a size option");
return false;
}

//-------------------------Pad Sheets------------------------------------||
myOption = -1;
for (i=0; i<document.form.pad_sheets.length; i++) {
if (document.form.pad_sheets[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert("You must select sheets per pad option");
return false;
}

//-------------------------Pad At------------------------------------||
myOption = -1;
for (i=0; i<document.form.pad_at.length; i++) {
if (document.form.pad_at[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert("You must select a location for padding");
return false;
}

//----------------------------Colors--------------------------------------||
myOption = -1;
for (i=0; i<document.form.pad_colors.length; i++) {
if (document.form.pad_colors[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert("You must select a color option");
return false;
}

//-->
}
//-----------------------------END-------------------------------------||

<!--
function Validate2(){

//--------------------------Quantity------------------------------------||
if(document.form.pad_quantity.value == "none"){
	alert ('you must select a quantity')
	return false;
}

//------------------------Stock Color-----------------------------------||
myOption = -1;
for (i=0; i<document.form.stock_color.length; i++) {
if (document.form.stock_color[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert("You must select a Stock Color option");
return false;
}

//------------------------Ink Color-----------------------------------||
myOption = -1;
colorAmt = "<?php echo $pad_colors ?>";
if (colorAmt == 1){
for (i=0; i<document.form.ink1.length; i++) {
if (document.form.ink1[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert("You must select a Ink Color option");
return false;
}
}
//------------------------2nd Ink Color-----------------------------------||
myOption = -1;
colorAmt = "<?php echo $pad_colors ?>";
if (colorAmt == 2){
for (i=0; i<document.form.ink2.length; i++) {
if (document.form.ink2[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert("You must select a 2nd Ink Color option");
return false;
}
}
//-----------------------Destination Zip---------------------------------||
if(document.form.dest_zip.value == ""){
	alert ('you must enter the shipping zipcode')
	return false;
}
//------------------------Art Type-----------------------------------||
myOption = -1;
for (i=0; i<document.form.art_type.length; i++) {
if (document.form.art_type[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert("You must select an Art Type option");
return false;
}
//-->
}
//-----------------------------END-------------------------------------||

<!--
function Validate4(){

//------------------------Payment Type-----------------------------------||
myOption = -1;
for (i=0; i<document.form.payment.length; i++) {
if (document.form.payment[i].checked) {
myOption = i;
}
}
if (myOption == -1) {
alert("You must a payment option");
return false;
}
//---------------------Billing Contact Name------------------------------||
if(document.form.Billing_ContactName.value == ""){
	alert ('Please specify a Billing Contact Name')
	return false;
}
//---------------------Billing Business Name------------------------------||
if(document.form.Billing_BusinessName.value == ""){
	alert ('Please specify a Billing Business Name')
	return false;
}
//------------------------Billing Address1--------------------------------||
if(document.form.Billing_Address1.value == ""){
	alert ('Please specify a Billing Address')
	return false;
}
//--------------------------Billing City----------------------------------||
if(document.form.Billing_City.value == ""){
	alert ('Please specify a Billing City')
	return false;
}
//-----------------------Shipping State---------------------------------||
if(document.form.Billing_State.value == ""){
	alert ('Please specify a Billing State')
	return false;
}
//--------------------------Billing Zip----------------------------------||
if(document.form.Billing_Zip.value == ""){
	alert ('Please specify a Billing_Zipcode')
	return false;
}
//------------------------Billing Phone----------------------------------||
if(document.form.Billing_Phone.value == ""){
	alert ('Please specify a Billing Phone')
	return false;
}
//------------------------Billing Email----------------------------------||
if(document.form.Billing_Email.value == ""){
	alert ('Please specify a Email Address')
	return false;
}
//---------------------Billing Tax Exempt-------------------------------||
if(document.form.Billing_TaxExempt.value == ""){
	alert ('Please specify a Tax Exempt #')
	return false;
}
//---------------------Shipping Address 1------------------------------||
if(document.form.Shipping_Address1.value == ""){
	alert ('Please specify a Shipping Address')
	return false;
}
//----------------------Shipping State---------------------------------||
if(document.form.Shipping_State.value == ""){
	alert ('Please specify a Shipping State')
	return false;
}
//-->
}
//-----------------------------END-------------------------------------||

		function cardtypechanged(selectwidget)
		{
	
	    	var chosenShip = selectwidget.options[selectwidget.selectedIndex].value;
	    	document.all['zip_row'].style.display
				= (chosenShip == 'GND')
				? 'inline' : 'none';
		
		}

