String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
      function setBilling() {
	if(document.order.copy.checked == true){
		document.order.billingAddress.value = document.order.address.value;
		document.order.billingCity.value = document.order.city.value;
		document.order.billingState.value = document.order.state.value;
		document.order.billingZip.value = document.order.zip.value;
		document.order.phone2.value = document.order.phone.value;
		document.order.b_countries.value = document.order.s_countries.value;
		document.order.b_prov.value = document.order.prov.value;
	}else{
		document.order.billingAddress.value = '';
		document.order.billingCity.value = '';
		document.order.billingState.value = '';
		document.order.billingZip.value = '';
		document.order.phone2.value = '';
		document.order.b_countries.value = '';
		document.order.b_prov.value = '';
	}
}