<!--
function stripInitial(field){
	if(field.value=="*"){
	field.value=""}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var validateTotal=0;

function doValidate(){
	var fieldName, requiredFields, name,validateTotal,num,errorMsg;
	validateTotal=0;
	errorMsg="";
	requiredFields=new Array("First_Name", "Last_Name", "Email", "Address", "City_or_District","Postcode_or_Zip", "Country");
	num=requiredFields.length;
		for(var i=0;i<num;i++){
			fieldName=requiredFields[i];
			var value=document.conradOrder[fieldName].value;
				if(document.conradOrder[fieldName].value){
					validateTotal++;
				}
				else{
				name=fieldName.replace(/_/g, " ");
				errorMsg+=name + "\n";
				}
		} //end for
		if(validateTotal!=num){
		errorMsg="PLease complete the following fields:\n"+errorMsg;
		}
		//Email check
		theEmail=document.conradOrder.Email.value;
		if (theEmail!=""){	
			if(!doEmail(theEmail)){
				errorMsg+="Please check your email address\n"; 
			}
		}	 
	if (errorMsg) alert(errorMsg);
 	document.Value = (errorMsg == '');
	//}
}
function doEmail(theEmail){
	var theEmail=document.conradOrder.Email.value

	var regexp = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/;
	if(theEmail.match(regexp)){
		return true;
	} else{
		return false;
	}
}
function doPayment(){
	var thePayment,paymentMethod, errorMsg;
	thePayment=0;
	for (var i=0;i<document.conradOrder.Payment.length;i++){
		if(document.conradOrder.Payment[i].checked){
		thePayment="yes";
		paymentMethod=requiredFields;
		}
	}
	if (thePayment!="yes"){
	//alert("Please select your payment method");
	errorMsg="Please select your payment method";
	//errorMsg("Please select your payment method");	
	}
}

function doFreight(amount){
	var melb, capcityamount
	melb=8;
	capcityamount=10.5;
	
	var theFreight,freightValue, errorMsg;
	thePayment=0;
	for (var i=0;i<document.conradOrder.Freight.length;i++){
		if(document.conradOrder.Freight[i].checked){
		theFreight="yes";
		freightValue=document.conradOrder.Payment[i].value;
		validateTotal++;
		}
	}
	if (thePayment!="yes"){
	errorMsg="Please select the relevant freight option";
	}
}
function doCountry(){
	var selected,thecountry;
	selected=document.conradOrder.Country.selectedIndex;
	if(!selected){
		errorMsg="Please identify your country in the Delivery address section";
		alert(errorMsg);
		document.conradOrder.Country.focus();
	}else{
			validateTotal++;
			}
}

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}
//-->