<!--
		var objName  	= 	" ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz";
		var objAddress 	= 	"@&$#()=/!*ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz0123456789,'- :.+%/ ";
		var objLocation	= " .0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz'-";
		
		function pageLoad()
		{
			document.orderform.b_first_name.focus();
		}	
		function UpdateShippingDetails()
		{
			document.orderform.s_first_name.value 	= document.orderform.b_first_name.value;
			document.orderform.s_last_name.value 	= document.orderform.b_last_name.value;
			document.orderform.s_address_1.value 	= document.orderform.b_address_1.value;
			document.orderform.s_address_2.value 	= document.orderform.b_address_2.value;
			document.orderform.s_country.value 		= document.orderform.b_country.value;
			document.orderform.s_state.value 		= document.orderform.b_state.value;
			document.orderform.s_city.value 		= document.orderform.b_city.value;
			document.orderform.s_zip.value 			= document.orderform.b_zip.value;
			document.orderform.s_email.value 		= document.orderform.b_email.value;
			document.orderform.s_home_phone.value 	= document.orderform.b_home_phone.value;
			document.orderform.s_work_phone.value 	= document.orderform.b_work_phone.value;
		}
		function trimText(strComp)
		{
			ltrim = /^\s+/
			rtrim = /\s+$/
			strComp = strComp.replace(ltrim,'');
			strComp = strComp.replace(rtrim,'');
			return strComp;
		}

		function validateForm(formobj)
		{
			var strmsg 		= "Following are the errors:\n \n";
			var focusobj 	= null;
			if(trimText(formobj.b_first_name.value) == "")
			{
				strmsg += "- Billing First Name can not be blank\n";
				focusobj = formobj.b_first_name;
			}
			if(trimText(formobj.b_last_name.value) == "")
			{
				strmsg += "- Billing Last Name can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.b_last_name;
			}
			if(trimText(formobj.b_address_1.value) == "")
			{
				strmsg += "- Billing Address can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.b_address_1;
			}
			if(trimText(formobj.b_country.value) == "")
			{
				strmsg += "- Billing Country can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.b_country;
			}
			if(trimText(formobj.b_state.value) == "")
			{
				strmsg += "- Billing State/Province can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.b_state;
			}
			if(trimText(formobj.b_city.value) == "")
			{
				strmsg += "- Billing City can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.b_city;
			}
			if(trimText(formobj.b_zip.value) == "")
			{
				strmsg += "- Billing Zip/Postal Code can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.b_zip;
			}
			if(trimText(formobj.b_email.value) == "")
			{
				strmsg += "- Billing Email Address can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.b_email;
			}
			if(isEmail(formobj.b_email.value) == false)
			{
				strmsg += "- Billing Email Address is not valid\n";
				if(focusobj==null)
					focusobj = formobj.b_email;
			}
			if(trimText(formobj.b_home_phone.value) == "")
			{
				strmsg += "- Billing Home Phone can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.b_home_phone;
			}
			//shipping
			if(trimText(formobj.s_first_name.value) == "")
			{
				strmsg += "- Shipping  First Name can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.s_first_name;
			}
			if(trimText(formobj.s_last_name.value) == "")
			{
				strmsg += "- Shipping  Last Name can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.s_last_name;
			}
			if(trimText(formobj.s_address_1.value) == "")
			{
				strmsg += "- Shipping  Address can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.s_address_1;
			}
			if(trimText(formobj.s_country.value) == "")
			{
				strmsg += "- Shipping  Country can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.s_country;
			}
			if(trimText(formobj.s_state.value) == "")
			{
				strmsg += "- Shipping  State/Province can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.s_state;
			}
			if(trimText(formobj.s_city.value) == "")
			{
				strmsg += "- Shipping  City can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.s_city;
			}
			if(trimText(formobj.s_zip.value) == "")
			{
				strmsg += "- Shipping  Zip/Postal Code can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.s_zip;
			}
			if(trimText(formobj.s_email.value) == "")
			{
				strmsg += "- Shipping  Email Address can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.s_email;
			}
			if(isEmail(formobj.s_email.value) == false)
			{
				strmsg += "- Shipping  Email Address is not valid\n";
				if(focusobj==null)
					focusobj = formobj.s_email;
			}
			if(trimText(formobj.s_home_phone.value) == "")
			{
				strmsg += "- Shipping  Home Phone can not be blank\n";
				if(focusobj==null)
					focusobj = formobj.s_home_phone;
			}
			//shipping
			if((formobj.shipping_description.checked != true))
			{
				strmsg += "- Please select at least one shipping method\n";
				if(focusobj==null)
					focusobj = formobj.ShippingUPS;
			}

			if(focusobj != null)
			{
				alert (strmsg);
				focusobj.focus();
				return false;
			}
			else
				return true;
		}
	-->
-->
