function CheckForm( faxpage )
{
	var bMissingFields = false;
	var strFields = "";

	if( faxpage.first_name.value == '' ){
		bMissingFields = true;
		strFields += "Firstname - ";
	}
	if( faxpage.last_name.value == '' ){
		bMissingFields = true;
		strFields += "Lastname - ";
	}
	if( faxpage.address1.value == '' ){
		bMissingFields = true;
		strFields += "Address - ";
	}
	if( faxpage.city.value == '' ){
		bMissingFields = true;
		strFields += "City/Suburb - ";
	}
	if( faxpage.zip.value == '' ){
		bMissingFields = true;
		strFields += "ZIP - ";
	}
	if( faxpage.state.value == '' ){
		bMissingFields = true;
		strFields += "State - ";
	}
	if( faxpage.country.value == '' ){
		bMissingFields = true;
		strFields += "Country - ";
	}
	if( faxpage.PHONE.value == '' ){
		bMissingFields = true;
		strFields += "Phone - ";
	}
	if( faxpage.email.value == '' ){
		bMissingFields = true;
		strFields += "Email - ";
	}
/*	if( faxpage.PAYOPTION.value == 'Select Payment Method' ){
		bMissingFields = true;
		strFields += "Select Payment Method - ";
	}*/
	if( faxpage.quantity.value == '' ){
		bMissingFields = true;
		strFields += "Quantity - ";
	}
	if( bMissingFields ) {
		alert( "Please complete these field(s) before printing:\n" + strFields );
		return false;
	}
	return true;
}
function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_changeProp(objName,x,theProp,theValue) { 
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
}
function reSponseO() { 
var resCARD=MM_changeProp('PAYOPTION','','selectedIndex','1','SELECT');

if (document.faxpage.RESPONSETYPE[0].checked) resCARD,alert("You're making an ORDER. Complete all Form Fields and select a Payment Method."),

document.faxpage.DELIVERY.disabled=false;
document.faxpage.PAYOPTION.disabled=false;

}
function reSponseE() { 
var resCARD=MM_changeProp('PAYOPTION','','selectedIndex','0','SELECT');

if (document.faxpage.RESPONSETYPE[1].checked) resCARD,alert("You're making an ENQUIRY. Complete all Personal Details and Motorcycle Options."),

document.faxpage.DELIVERY.disabled=true;
document.faxpage.PAYOPTION.disabled=true;

}
function CCALERT() {
alert("You pay by CREDIT CARD. Submit the order electronically and follow up with a phone call, or print the form and fax it with your Credit Card Details.");
}
/*function disAble() { 
var IC="";
var OC="";
var IB="";
var E="";
var CN="";
var D="";
var CH="";
var resCARD=MM_changeProp('CARDTYPE','','selectedIndex','0','SELECT');
var resRESPO=MM_changeProp('0','','checked','unchecked','INPUT/RADIO');//unchecks Enquiry checks Order

if (document.faxpage.PAYOPTION[0].selected) resCARD,resRESPO,alert("You're paying by MONEY ORDER. Print the Completed Form and send via Postal Mail with your Money Order."),MM_changeProp('CARDTYPE','','selectedIndex','8','SELECT');

if (document.faxpage.PAYOPTION[1].selected) IC+="",OC+="CHQ",IB+="",E+="CHQ",CN+="CHQ",D+="CHQ",CH+="CHQ",resCARD,resRESPO,alert("You're paying by CHEQUE. Print the Completed Form and send via Postal Mail with your Cheque."),MM_changeProp('CARDTYPE','','selectedIndex','9','SELECT');

if (document.faxpage.PAYOPTION[2].selected) IC+="",OC+="DEP",IB+="",E+="DEP",CN+="DEP",D+="DEP",CH+="DEP",resCARD,resRESPO,alert("You're paying by BANK DEPOSIT. Print the Completed Form and send via FAX."),MM_changeProp('CARDTYPE','','selectedIndex','10','SELECT');

if (document.faxpage.PAYOPTION[3].selected) IC+="",OC+="",IB+="",E+="",CN+="",D+="",CH+="",CCALERT(),MM_changeProp('CARDTYPE','','selectedIndex','1','SELECT');

document.faxpage.DELIVERY.disabled=false;

document.faxpage.ISSUECOUNTRY.value=IC;
document.faxpage.OTHERCARD.value=OC;
document.faxpage.ISSUEBANK.value=IB;
document.faxpage.CARDEXPIRY.value=E;
document.faxpage.CARDNUMBER.value=CN;
document.faxpage.CARDDIGITS.value=D;
document.faxpage.CARDNAME.value=CH;
}*/
