// JavaScript Document

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function openIt(sURL){ 
newwindow=open(sURL,"newwin","scrollbars=yes, toolbar=no, directories=no, menu bar=no, resizable=yes, status=yes, width=471, height=178"); 
}

function checkorder(){
missinginfo = "";
	if (document.order_pp.Name.value == "") {
	missinginfo += "\n     -  Name";
	}
	
	if (document.order_pp.Email.value == "") {
	missinginfo += "\n     -  Email Address";
	}

	if (document.order_pp.Address.value == "") {
	missinginfo += "\n     -  Address";
	}

	if (document.order_pp.City.value == "") {
	missinginfo += "\n     -  City";
	}

	if (document.order_pp.State.value == "") {
	missinginfo += "\n     -  State";
	}

	if (document.order_pp.Postcode.value == "") {
	missinginfo += "\n     -  Postcode";
	}

	if (document.order_pp.Phone.value == "") {
	missinginfo += "\n     -  Phone";
	}
	
	if (document.order_pp.Payment_Type.value == "") {
	missinginfo += "\n     -  Payment Type";
	}

	if (missinginfo != "") {
	missinginfo ="_____________________________\n" +
	"You failed to correctly fill in your:\n" +
	missinginfo + "\n_____________________________" +
	"\nPlease re-enter and submit again!";
	alert(missinginfo);
	return false;
	}
	else {
	return true;
	}
}