//alert("We Love Colors is conducting a system test.  Please try again in 15 minutes.");
document.write("<style type=text/css>\n")
document.write(".steps{display: none;}\n")
document.write(".break{display: none;}\n")	
document.write("</style>\n")


function validateLogin(){var AllGood=true;var ErrorMessage="";var LTextBox=$("LTextBox");var LTextBoxLabel=$("LTextBoxLabel");var PTextBox=$("PTextBox");var PTextBoxLabel=$("PTextBoxLabel");if(Trim(LTextBox.value)==""&&Trim(PTextBox.value)==""){LTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";LTextBoxLabel.style.cssText="font-weight:bold;color:#BF0101;";PTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";PTextBoxLabel.style.cssText="font-weight:bold;color:#BF0101;";ErrorMessage="<div id=error><p>Please enter a User Name and Password.</p></div>";AllGood=false;}else{if(Trim(LTextBox.value)==""){LTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";LTextBoxLabel.style.cssText="font-weight:bold;color:#BF0101;";ErrorMessage="<div id=error><p>Please enter a User Name.</p></div>";AllGood=false;}else{LTextBox.style.cssText="";LTextBoxLabel.style.cssText="";};if(Trim(PTextBox.value)==""){PTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";PTextBoxLabel.style.cssText="font-weight:bold;color:#BF0101;";ErrorMessage="<div id=error><p>Please enter a Password.</p></div>";AllGood=false;}else{PTextBox.style.cssText="";PTextBoxLabel.style.cssText="";}};if(AllGood==false){$("ErrorMessage").innerHTML=ErrorMessage;return false;}else{$("ErrorMessage").innerHTML="";var LButton=$("LButton");LButton.click();};return true;};function validateNewLogin(){var AllGood=true;var ErrorMessage="";var NewLTextBox=$("NewLTextBox");var NewLTextBoxLabel=$("NewLTextBoxLabel");var NewPTextBox=$("NewPTextBox");var NewPTextBoxLabel=$("NewPTextBoxLabel");var ConfirmNewPTextBox=$("ConfirmNewPTextBox");var ConfirmNewPTextBoxLabel=$("ConfirmNewPLabel");if(Trim(NewLTextBox.value)==""&&Trim(NewPTextBox.value)==""&&Trim(ConfirmNewPTextBox.value)==""){NewLTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";NewLTextBoxLabel.style.cssText="font-weight:bold;color:#BF0101;";NewPTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";NewPTextBoxLabel.style.cssText="font-weight:bold;color:#BF0101;";ConfirmNewPTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";ConfirmNewPTextBoxLabel.style.cssText="font-weight:bold;color:#BF0101;";ErrorMessage="<div id=error><p>Please enter a User Name and Password.</p></div>";AllGood=false;}else{if(Trim(NewLTextBox.value)==""){NewLTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";NewLTextBoxLabel.style.cssText="font-weight:bold;color:#BF0101;";ErrorMessage+="<div id=error><p>Please enter a User Name.</p></div>";AllGood=false;}else{NewLTextBox.style.cssText="";NewLTextBoxLabel.style.cssText="";};var HasPassNConfirm=true;if(Trim(NewPTextBox.value)==""){NewPTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";NewPTextBoxLabel.style.cssText="font-weight:bold;color:#BF0101;";ErrorMessage+="<div id=error><p>Please enter a Password.</p></div>";AllGood=false;HasPassNConfirm=false;}else{NewPTextBox.style.cssText="";NewPTextBoxLabel.style.cssText="";};if(Trim(ConfirmNewPTextBox.value)==""){ConfirmNewPTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";ConfirmNewPTextBoxLabel.style.cssText="font-weight:bold;color:#BF0101;";ErrorMessage+="<div id=error><p>Please confirm you Password by entering again.</p></div>";AllGood=false;HasPassNConfirm=false;}else{ConfirmNewPTextBox.style.cssText="";ConfirmNewPTextBoxLabel.style.cssText="";};if(HasPassNConfirm==true){if(Trim(NewPTextBox.value)!=Trim(ConfirmNewPTextBox.value)){NewPTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";NewPTextBoxLabel.style.cssText="font-weight:bold;color:#BF0101";ConfirmNewPTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";ConfirmNewPTextBoxLabel.style.cssText="font-weight:bold;color:#BF0101;";ErrorMessage+="<div id=error><p>Passwords do not match, please re-enter.</p></div>";AllGood=false;}else{NewPTextBox.style.cssText="";NewPTextBoxLabel.style.cssText="";ConfirmNewPTextBox.style.cssText="";ConfirmNewPTextBoxLabel.style.cssText="";}}};if(AllGood==false){$("ErrorMessage").innerHTML=ErrorMessage;return false;}else{return true;}};if(document.getElementById){document.write('<style type="text/css">\n');document.write(".steps{display: none;};\n");document.write(".break{display: none;};\n");document.write("</style>\n");};

function toReviewBilling(){$("ReviewName").innerHTML=$("FirstNameTextBox").value+" "+$("LastNameTextBox").value;$("ReviewAddress1").innerHTML=$("Address1TextBox").value;$("ReviewAddress2").innerHTML=$("Address2TextBox").value;$("ReviewCityStateZip").innerHTML=$("CityTextBox").value+",  "+$("StateDropDownList").value+"  "+$("ZipCodeTextBox").value;$("ReviewCountry").innerHTML=$("CountryDropDownList").value;$("ReviewEmail").innerHTML=$("EmailTextBox").value;$("ReviewPhone").innerHTML=$("PhoneTextBox").value;$("ReviewCC").innerHTML="Card Number: "+$("CCTextBox").value;$("ReviewExp").innerHTML="Card Expiration: "+$("MonthDropDownList").value+"/"+$("YearDropDownList").value;return;};function toReviewShipping(){$("ReviewShipToName").innerHTML=$("ShipToFirstNameTextBox").value+" "+$("ShipToLastNameTextBox").value;$("ReviewShipTo1").innerHTML=$("ShipToAddress1TextBox").value;$("ReviewShipTo2").innerHTML=$("ShipToAddress2TextBox").value;$("ReviewShipToCityStatZip").innerHTML=$("ShipToCityTextBox").value+",  "+$("ShipToStateDropDownList").value+"  "+$("ShipToZipCodeTextBox").value;$("ReviewShipToCountry").innerHTML=$("ShipToCountryDropDownList").value;return;};

//function validateBilling(){var AllGood=true;var BillingInfoErrors="";var FirstNameTextBox=$("FirstNameTextBox");var FirstNameLabel=$("FirstNameLabel");var LastNameTextBox=$("LastNameTextBox");var LastNameLabel=$("LastNameLabel")var Address1TextBox=$("Address1TextBox");var Address1Label=$("Address1Label");var CityTextBox=$("CityTextBox");var CityLabel=$("CityLabel");var StateDropDownList=$("StateDropDownList");var StateLabel=$("StateLabel");var ZipCodeTextBox=$("ZipCodeTextBox");var ZipCodeLabel=$("ZipCodeLabel");var CountryDropDownList=$("CountryDropDownList");var CountryLabel=$("CountryLabel");var AreaCodeTextBox=$("AreaCodeTextBox");var PhoneTextBox=$("PhoneTextBox");var PhoneLabel=$("PhoneLabel");var EmailTextBox=$("EmailTextBox");var EmailLabel=$("EmailLabel");if(Trim(FirstNameTextBox.value)==""){FirstNameTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";FirstNameLabel.style.cssText="font-weight:bold;color:#BF0101;";BillingInfoErrors+="<div id=error><p>Please enter a First Name.</p></div>";AllGood=false;}else{FirstNameTextBox.style.cssText="";FirstNameLabel.style.cssText="";};if(Trim(LastNameTextBox.value)==""){LastNameTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";LastNameLabel.style.cssText="font-weight:bold;color:#BF0101;";BillingInfoErrors+="<div id=error><p>Please enter a Last Name.</p></div>";AllGood=false;}else{LastNameTextBox.style.cssText="";LastNameLabel.style.cssText="";};if(Trim(Address1TextBox.value)==""){Address1TextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";Address1Label.style.cssText="font-weight:bold;color:#BF0101;";BillingInfoErrors+="<div id=error><p>Please enter Billing Address Line 1 is a required field.</p></div>";AllGood=false;}else{Address1TextBox.style.cssText="";Address1Label.style.cssText="";};if(Trim(CityTextBox.value)==""){CityTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";CityLabel.style.cssText="font-weight:bold;color:#BF0101;";BillingInfoErrors+="<div id=error><p>Please enter a valid City.</p></div>";AllGood=false;}else{CityTextBox.style.cssText="";CityLabel.style.cssText="";};if(Trim(ZipCodeTextBox.value)==""){ZipCodeTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";ZipCodeLabel.style.cssText="font-weight:bold;color:#BF0101;";BillingInfoErrors+="<div id=error><p>Please enter a valid Zip / Postal Code.</p></div>";AllGood=false;}else{ZipCodeTextBox.style.cssText="";ZipCodeLabel.style.cssText="";};if(CountryDropDownList.value=="USA"){if(StateDropDownList.value=="Select State..."){StateDropDownList.style.cssText="border:1px solid #B81215!important;background:#FFDDDD!important;";StateLabel.style.cssText="font-weight:bold;color:#BF0101;";BillingInfoErrors+="<div id=error><p>Please select a State.</p></div>";AllGood=false;}else{StateDropDownList.style.cssText="";StateLabel.style.cssText="";}};if(CountryDropDownList.value=="Select Country..."){CountryDropDownList.style.cssText="border:1px solid #B81215!important;background:#FFDDDD!important;";CountryLabel.style.cssText="font-weight:bold;color:#BF0101;";BillingInfoErrors+="<div id=error><p>Please select a Country.</p></div>";AllGood=false;}else{CountryDropDownList.style.cssText="";CountryLabel.style.cssText="";};if(Trim(AreaCodeTextBox.value)==""){AreaCodeTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";PhoneLabel.style.cssText="font-weight:bold;color:#BF0101;";BillingInfoErrors+="<div id=error><p>Please check to make sure you entered an Area Code.</p></div>";AllGood=false;}else{AreaCodeTextBox.style.cssText="";PhoneLabel.style.cssText="";};if(Trim(PhoneTextBox.value)==""){PhoneTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";PhoneLabel.style.cssText="font-weight:bold;color:#BF0101;";BillingInfoErrors+="<div id=error><p>Please check to make sure you entered an Phone Number.</p></div>";AllGood=false;}else{PhoneTextBox.style.cssText="";PhoneLabel.style.cssText="";};if(Trim(EmailTextBox.value)==""){EmailTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";EmailLabel.style.cssText="font-weight:bold;color:#BF0101;";BillingInfoErrors+="<div id=error><p>Please enter an Email Address.</p></div>";AllGood=false;}else{if(isValidEmail(EmailTextBox.value)){EmailTextBox.style.cssText="";EmailLabel.style.cssText="";}else{EmailTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";EmailLabel.style.cssText="font-weight:bold;color:#BF0101;";BillingInfoErrors+="<div id=error><p>Please check to make sure you entered a valid Email Address.</p></div>";AllGood=false;}};}var CCInfoErrors="";var CTypeM=$("CardTypeRadioButtonList_0").checked;var CTypeV=$("CardTypeRadioButtonList_1").checked;var CTypeD=$("CardTypeRadioButtonList_2").checked;var CTypeA=$("CardTypeRadioButtonList_3").checked;var CTypeLabel=$("CTypeLabel");var CC=$("CCTextBox");var CCLabel=$("CCLabel");var MonthDropDownList=$("MonthDropDownList");var YearDropDownList=$("YearDropDownList");var ExpirationLabel=$("ExpirationLabel");if((CTypeM==false)&&(CTypeV==false)&&(CTypeD==false)&&(CTypeA==false)){CTypeLabel.style.cssText="font-weight:bold;color:#BF0101;";CCInfoErrors+="<div id=error><p>Please select a credit card type.</p></div>";AllGood=false;}else{CTypeLabel.style.cssText="";};if(Trim(CC.value)==""){CC.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";CCLabel.style.cssText="font-weight:bold;color:#BF0101;";CCInfoErrors+="<div id=error><p>Please enter a Credit Card Number</p></div>";AllGood=false;}else{var RegExp=/\D*/g;var strCC=CC.value.replace(RegExp,"");if(CTypeM==true){if(strCC.charAt(0)!=5||strCC.length!=16){CCLabel.style.cssText="font-weight:bold;color:#BF0101;";CTypeLabel.style.cssText="font-weight:bold;color:#BF0101;";CCInfoErrors+="<div id=error><p>Please check Credit Card Type and/or Credit Card Number.</p></div>";AllGood=false;}else{CCLabel.style.cssText="";CTypeLabel.style.cssText="";CC.style.cssText="";CCLabel.style.cssText="";}};if(CTypeV==true){if(strCC.charAt(0)!=4||strCC.length!=16){CTypeLabel.style.cssText="font-weight:bold;color:#BF0101;";CCInfoErrors+="<div id=error><p>Please check Credit Card Type and/or Credit Card Number.</p></div>";AllGood=false;}else{CTypeLabel.style.cssText="";CC.style.cssText="";CCLabel.style.cssText="";}};if(CTypeD==true){if(strCC.charAt(0)!=6||strCC.length!=16){CTypeLabel.style.cssText="font-weight:bold;color:#BF0101";CCInfoErrors+="<div id=error><p>Please check Credit Card Type and/or Credit Card Number.</p></div>";AllGood=false;}else{CTypeLabel.style.cssText="";CC.style.cssText="";CCLabel.style.cssText="";}};if(CTypeA==true){if(strCC.charAt(0)!=3||strCC.length<15){CTypeLabel.style.cssText="font-weight:bold;color:#BF0101;";CCInfoErrors+="<div id=error><p>Please check Credit Card Type and/or Credit Card Number.</p></div>";AllGood=false;}else{CTypeLabel.style.cssText="";CC.style.cssText="";CCLabel.style.cssText="";}}};if(MonthDropDownList.value=="Select Month..."){MonthDropDownList.style.cssText="border:1px solid #B81215!important;background:#FFDDDD!important;";ExpirationLabel.style.cssText="font-weight:bold;color:#BF0101;";CCInfoErrors+="<div id=error><p>Please select a Month for credit card expiration.</p></div>";AllGood=false;}else{MonthDropDownList.style.cssText="";ExpirationLabel.style.cssText="";};if(YearDropDownList.value=="Select Year..."){YearDropDownList.style.cssText="border:1px solid #B81215!important;background:#FFDDDD!important;";ExpirationLabel.style.cssText="font-weight:bold;color:#BF0101;";CCInfoErrors+="<div id=error><p>Please select a Year for credit card expiration.</p></div>";AllGood=false;}else{YearDropDownList.style.cssText="";ExpirationLabel.style.cssText="";};if(AllGood==true){showStep(2);$("BillingInfoErrors").innerHTML="";$("CCInfoErrors").innerHTML="";toReviewBilling();return true;}else{$("BillingInfoErrors").innerHTML=BillingInfoErrors;$("CCInfoErrors").innerHTML=CCInfoErrors;return false;}};
function validateBilling(){

			
			var AllGood = true;
			//  Validate Billing Address
			var BillingInfoErrors = "";
			var FirstNameTextBox = $("FirstNameTextBox");
			var FirstNameLabel = $("FirstNameLabel");
			var LastNameTextBox = $("LastNameTextBox");
			var LastNameLabel = $("LastNameLabel")
			var Address1TextBox = $("Address1TextBox");
			var Address1Label = $("Address1Label");
			var CityTextBox = $("CityTextBox");
			var CityLabel = $("CityLabel");
			var StateDropDownList = $("StateDropDownList");
			var StateLabel = $("StateLabel");
			var ZipCodeTextBox = $("ZipCodeTextBox");
			var ZipCodeLabel = $("ZipCodeLabel");
			var CountryDropDownList = $("CountryDropDownList");
			var CountryLabel = $("CountryLabel");
			var AreaCodeTextBox = $("AreaCodeTextBox");
			var PhoneTextBox = $("PhoneTextBox");
			var PhoneLabel = $("PhoneLabel");
			var EmailTextBox = $("EmailTextBox");
			var EmailLabel = $("EmailLabel");
			var GiftCodeTextBox = $("GiftCodeTextBox");

//alert("System Test Please Ignore : Gift Code Field = "+ GiftCodeTextBox.value);		
if(GiftCodeTextBox.value == "runway" || GiftCodeTextBox.value == "RUNWAY" || GiftCodeTextBox.value == "dance" || GiftCodeTextBox.value == "DANCE"){$("CartShipping").innerHTML="$0.00";} 	
			//alert("CardTypeRadioButtonList_0.checked="+document.getElementById("CardTypeRadioButtonList_0").checked);
			
			if(Trim(FirstNameTextBox.value) == ""){
				FirstNameTextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				FirstNameLabel.style.cssText = "font-weight:bold;color:#BF0101";
				BillingInfoErrors += "<div id=error><p>Please enter a First Name.</p></div>";
				AllGood = false;
			}
			else {
				FirstNameTextBox.style.cssText = "";
				FirstNameLabel.style.cssText = "";
			}
			if(Trim(LastNameTextBox.value) == ""){
				LastNameTextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				LastNameLabel.style.cssText = "font-weight:bold;color:#BF0101";
				BillingInfoErrors += "<div id=error><p>Please enter a Last Name.</p></div>";
				AllGood = false;
			}
			else {
				LastNameTextBox.style.cssText = "";
				LastNameLabel.style.cssText = "";
			}
			if(Trim(Address1TextBox.value) == ""){
				Address1TextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				Address1Label.style.cssText = "font-weight:bold;color:#BF0101";
				BillingInfoErrors += "<div id=error><p>Please enter Billing Address Line 1 is a required field.</p></div>";
				AllGood = false;
			}
			else {
				Address1TextBox.style.cssText = "";
				Address1Label.style.cssText = "";
			}
			if(Trim(CityTextBox.value) == ""){
				CityTextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				CityLabel.style.cssText = "font-weight:bold;color:#BF0101";
				BillingInfoErrors += "<div id=error><p>Please enter a valid City.</p></div>";
				AllGood = false;
			}
			else {
				CityTextBox.style.cssText = "";
				CityLabel.style.cssText = "";
			}	
			if(Trim(ZipCodeTextBox.value) == ""){
				ZipCodeTextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				ZipCodeLabel.style.cssText = "font-weight:bold;color:#BF0101";
				BillingInfoErrors += "<div id=error><p>Please enter a valid Zip / Postal Code.</p></div>";
				AllGood = false;
			}
			else {
				ZipCodeTextBox.style.cssText = "";
				ZipCodeLabel.style.cssText = "";
			}	
			if(CountryDropDownList.value == "USA"){
				if(StateDropDownList.value == "Select State..."){
					StateDropDownList.style.cssText = "border:1px solid #B81215!important;background:#FFDDDD!important;";
					StateLabel.style.cssText = "font-weight:bold;color:#BF0101";
					BillingInfoErrors += "<div id=error><p>Please select a State.</p></div>";
					AllGood = false;
				}
				else{
					StateDropDownList.style.cssText = "";
					StateLabel.style.cssText = "";
				}
			}
			if(CountryDropDownList.value == "Select Country..."){
				CountryDropDownList.style.cssText = "border:1px solid #B81215!important;background:#FFDDDD!important;";
				CountryLabel.style.cssText = "font-weight:bold;color:#BF0101";
				BillingInfoErrors += "<div id=error><p>Please select a Country.</p></div>";
				AllGood = false;				
			}
			else{
				CountryDropDownList.style.cssText = "";
				CountryLabel.style.cssText = "";			
			}
			if(Trim(AreaCodeTextBox.value) == ""){
				AreaCodeTextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				PhoneLabel.style.cssText = "font-weight:bold;color:#BF0101";
				BillingInfoErrors += "<div id=error><p>Please check to make sure you entered an Area Code.</p></div>";
				AllGood = false;
			}
			else {
				AreaCodeTextBox.style.cssText = "";
				PhoneLabel.style.cssText = "";
			}
			if(Trim(PhoneTextBox.value) == ""){
				PhoneTextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				PhoneLabel.style.cssText = "font-weight:bold;color:#BF0101";
				BillingInfoErrors += "<div id=error><p>Please check to make sure you entered an Phone Number.</p></div>";
				AllGood = false;
			}
			else {
				PhoneTextBox.style.cssText = "";
				PhoneLabel.style.cssText = "";
			}
			if(Trim(EmailTextBox.value) == ""){
				EmailTextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				EmailLabel.style.cssText = "font-weight:bold;color:#BF0101";
				BillingInfoErrors += "<div id=error><p>Please enter an Email Address.</p></div>";
				AllGood = false;
			}
			else {
				if(isValidEmail(EmailTextBox.value)){
					EmailTextBox.style.cssText = "";
					EmailLabel.style.cssText = "";
				}
				else{
					EmailTextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
					EmailLabel.style.cssText = "font-weight:bold;color:#BF0101";
					BillingInfoErrors += "<div id=error><p>Please check to make sure you entered a valid Email Address.</p></div>";
					AllGood = false;					
				}

			}	
			//  Validate CC Info	
			var CCInfoErrors = "";
			var CTypeM = $("CardTypeRadioButtonList_0").checked;
			var CTypeV = $("CardTypeRadioButtonList_1").checked;
			var CTypeD = $("CardTypeRadioButtonList_2").checked;
			var CTypeA =  $("CardTypeRadioButtonList_3").checked;
			var CTypeLabel = $("CTypeLabel");
			var CC = $("CCTextBox");
			var CCLabel = $("CCLabel");
			var MonthDropDownList = $("MonthDropDownList");
			var YearDropDownList = $("YearDropDownList");
			var ExpirationLabel = $("ExpirationLabel");
			if((CTypeM == false) && (CTypeV == false) && (CTypeD == false) && (CTypeA == false)){
				CTypeLabel.style.cssText = "font-weight:bold;color:#BF0101";
				CCInfoErrors += "<div id=error><p>Please select a credit card type.</p></div>";
				AllGood = false;	
			}
			else{
				CTypeLabel.style.cssText = "";
			}
			if(Trim(CC.value) == ""){
				CC.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				CCLabel.style.cssText = "font-weight:bold;color:#BF0101";
				CCInfoErrors += "<div id=error><p>Please enter a Credit Card Number</p></div>";
				AllGood = false;
			}
			else {
				var RegExp = /\D*/g;
				var strCC = CC.value.replace(RegExp,"");
				if(CTypeM == true){
					if(strCC.charAt(0)!= 5 || strCC.length != 16){
						CCLabel.style.cssText = "font-weight:bold;color:#BF0101";	
						CTypeLabel.style.cssText = "font-weight:bold;color:#BF0101";
						CCInfoErrors += "<div id=error><p>Please check Credit Card Type and/or Credit Card Number.</p></div>";
						AllGood = false;												
					}
					else{
						CCLabel.style.cssText = "";
						CTypeLabel.style.cssText = "";	
						CC.style.cssText = "";
						CCLabel.style.cssText = "";
					}
				}
				if(CTypeV == true){
					if(strCC.charAt(0)!= 4 || strCC.length != 16){
						//wrong card type selected	
						CTypeLabel.style.cssText = "font-weight:bold;color:#BF0101";
						CCInfoErrors += "<div id=error><p>Please check Credit Card Type and/or Credit Card Number.</p></div>";
						AllGood = false;												
					}
					else{
						CTypeLabel.style.cssText = "";	
						CC.style.cssText = "";
						CCLabel.style.cssText = "";
					}
				}	
				if(CTypeD == true){
					if(strCC.charAt(0)!= 6 || strCC.length != 16){
						//wrong card type selected	
						CTypeLabel.style.cssText = "font-weight:bold;color:#BF0101";
						CCInfoErrors += "<div id=error><p>Please check Credit Card Type and/or Credit Card Number.</p></div>";
						AllGood = false;												
					}
					else{
						CTypeLabel.style.cssText = "";	
						CC.style.cssText = "";
						CCLabel.style.cssText = "";
					}
				}	
				if(CTypeA == true){
					if(strCC.charAt(0)!= 3 || strCC.length < 15){
						//wrong card type selected	
						CTypeLabel.style.cssText = "font-weight:bold;color:#BF0101";
						CCInfoErrors += "<div id=error><p>Please check Credit Card Type and/or Credit Card Number.</p></div>";
						AllGood = false;												
					}
					else{
						CTypeLabel.style.cssText = "";	
						CC.style.cssText = "";
						CCLabel.style.cssText = "";
					}
				}						

			}			
		
	
			if(MonthDropDownList.value == "Select Month..."){
				MonthDropDownList.style.cssText = "border:1px solid #B81215!important;background:#FFDDDD!important;";
				ExpirationLabel.style.cssText = "font-weight:bold;color:#BF0101";
				CCInfoErrors += "<div id=error><p>Please select a Month for credit card expiration.</p></div>";
				AllGood = false;				
			}
			else{
				MonthDropDownList.style.cssText = "";
				ExpirationLabel.style.cssText = "";			
			}
			if(YearDropDownList.value == "Select Year..."){
				YearDropDownList.style.cssText = "border:1px solid #B81215!important;background:#FFDDDD!important;";
				ExpirationLabel.style.cssText = "font-weight:bold;color:#BF0101";
				CCInfoErrors += "<div id=error><p>Please select a Year for credit card expiration.</p></div>";
				AllGood = false;				
			}
			else{
				YearDropDownList.style.cssText = "";
				ExpirationLabel.style.cssText = "";			
			}							
			//				
			if(AllGood == true){
				showStep(2);
				$("BillingInfoErrors").innerHTML = "";
				$("CCInfoErrors").innerHTML = "";
				toReviewBilling();
				return true;
			}
			else{
				$("BillingInfoErrors").innerHTML = BillingInfoErrors;
				$("CCInfoErrors").innerHTML = CCInfoErrors;
				return false;	
			}

		}

//Validate Step 2
//function validateShipping(){var SAllGood=true;var ShippingInfoErrors="";var SFirstNameTextBox=$("ShipToFirstNameTextBox");var SFirstNameLabel=$("ShipToFirstNameLabel");var SLastNameTextBox=$("ShipToLastNameTextBox");var SLastNameLabel=$("ShipToLastNameLabel")var SAddress1TextBox=$("ShipToAddress1TextBox");var SAddress1Label=$("ShipToAddress1Label");var SCityTextBox=$("ShipToCityTextBox");var SCityLabel=$("ShipToCityLabel");var SStateDropDownList=$("ShipToStateDropDownList");var SStateLabel=$("ShipToStateLabel");var SZipCodeTextBox=$("ShipToZipCodeTextBox");var SZipCodeLabel=$("ShipToZipCodeLabel");var SCountryDropDownList=$("ShipToCountryDropDownList");var SCountryLabel=$("ShipToCountryLabel");if(Trim(SFirstNameTextBox.value)==""){SFirstNameTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";SFirstNameLabel.style.cssText="font-weight:bold;color:#BF0101";ShippingInfoErrors+="<div id=error><p>Please enter a First Name for shipping.</p></div>";SAllGood=false;}else{SFirstNameTextBox.style.cssText="";SFirstNameLabel.style.cssText="";};if(Trim(SLastNameTextBox.value)==""){SLastNameTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";SLastNameLabel.style.cssText="font-weight:bold;color:#BF0101;";ShippingInfoErrors+="<div id=error><p>Please enter a Last Name for shipping.</p></div>";SAllGood=false;}else{SLastNameTextBox.style.cssText="";SLastNameLabel.style.cssText="";};if(Trim(SAddress1TextBox.value)==""){SAddress1TextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";SAddress1Label.style.cssText="font-weight:bold;color:#BF0101;";ShippingInfoErrors+="<div id=error><p>Please enter an Address for shipping.</p></div>";SAllGood=false;}else{SAddress1TextBox.style.cssText="";SAddress1Label.style.cssText="";};if(Trim(SCityTextBox.value)==""){SCityTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";SCityLabel.style.cssText="font-weight:bold;color:#BF0101";ShippingInfoErrors+="<div id=error><p>Please enter a valid City for shipping.</p></div>";SAllGood=false;}else{SCityTextBox.style.cssText="";SCityLabel.style.cssText="";};if(Trim(SZipCodeTextBox.value)==""){SZipCodeTextBox.style.cssText="border:1px solid #B81215;background:#FFDDDD!important;";SZipCodeLabel.style.cssText="font-weight:bold;color:#BF0101;";ShippingInfoErrors+="<div id=error><p>Please enter a valid Ship To Zip / Postal Code.</p></div>";SAllGood=false;}else{SZipCodeTextBox.style.cssText="";SZipCodeLabel.style.cssText="";};if(SCountryDropDownList.value=="USA"){if(SStateDropDownList.value=="Select State..."){SStateDropDownList.style.cssText="border:1px solid #B81215!important;background:#FFDDDD!important;";SStateLabel.style.cssText="font-weight:bold;color:#BF0101;";ShippingInfoErrors+="<div id=error><p>Please select a Ship To State.</p></div>";SAllGood=false;}else{SStateDropDownList.style.cssText="";SStateLabel.style.cssText="";}};if(SCountryDropDownList.value=="Select Country..."){SCountryDropDownList.style.cssText="border:1px solid #B81215!important;background:#FFDDDD!important;";SCountryLabel.style.cssText="font-weight:bold;color:#BF0101;";ShippingInfoErrors+="<div id=error><p>Please select a Ship To Country.</p></div>";SAllGood=false;}else{SCountryDropDownList.style.cssText="";SCountryLabel.style.cssText="";};if(SAllGood==true){showStep(3);$("ShippingInfoErrors").innerHTML="";adjustTax();toReviewShipping();return true;}else{$("ShippingInfoErrors").innerHTML=ShippingInfoErrors;return false;}};
		function validateShipping(){
			var SAllGood = true;
			//  Validate Billing Address
			var ShippingInfoErrors = "";
			var SFirstNameTextBox = $("ShipToFirstNameTextBox");
			var SFirstNameLabel = $("ShipToFirstNameLabel");
			var SLastNameTextBox = $("ShipToLastNameTextBox");
			var SLastNameLabel = $("ShipToLastNameLabel")
			var SAddress1TextBox = $("ShipToAddress1TextBox");
			var SAddress1Label = $("ShipToAddress1Label");
			var SCityTextBox = $("ShipToCityTextBox");
			var SCityLabel = $("ShipToCityLabel");
			var SStateDropDownList = $("ShipToStateDropDownList");
			var SStateLabel = $("ShipToStateLabel");
			var SZipCodeTextBox = $("ShipToZipCodeTextBox");
			var SZipCodeLabel = $("ShipToZipCodeLabel");
			var SCountryDropDownList = $("ShipToCountryDropDownList");
			var SCountryLabel = $("ShipToCountryLabel");		
			if(Trim(SFirstNameTextBox.value) == ""){
				SFirstNameTextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				SFirstNameLabel.style.cssText = "font-weight:bold;color:#BF0101";
				ShippingInfoErrors += "<div id=error><p>Please enter a First Name for shipping.</p></div>";
				SAllGood = false;
			}
			else {
				SFirstNameTextBox.style.cssText = "";
				SFirstNameLabel.style.cssText = "";
			}
			if(Trim(SLastNameTextBox.value) == ""){
				SLastNameTextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				SLastNameLabel.style.cssText = "font-weight:bold;color:#BF0101";
				ShippingInfoErrors += "<div id=error><p>Please enter a Last Name for shipping.</p></div>";
				SAllGood = false;
			}
			else {
				SLastNameTextBox.style.cssText = "";
				SLastNameLabel.style.cssText = "";
			}
			if(Trim(SAddress1TextBox.value) == ""){
				SAddress1TextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				SAddress1Label.style.cssText = "font-weight:bold;color:#BF0101";
				ShippingInfoErrors += "<div id=error><p>Please enter an Address for shipping.</p></div>";
				SAllGood = false;
			}
			else {
				SAddress1TextBox.style.cssText = "";
				SAddress1Label.style.cssText = "";
			}
			if(Trim(SCityTextBox.value) == ""){
				SCityTextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				SCityLabel.style.cssText = "font-weight:bold;color:#BF0101";
				ShippingInfoErrors += "<div id=error><p>Please enter a valid City for shipping.</p></div>";
				SAllGood = false;
			}
			else {
				SCityTextBox.style.cssText = "";
				SCityLabel.style.cssText = "";
			}	
			if(Trim(SZipCodeTextBox.value) == ""){
				SZipCodeTextBox.style.cssText = "border:1px solid #B81215;background:#FFDDDD!important;";
				SZipCodeLabel.style.cssText = "font-weight:bold;color:#BF0101";
				ShippingInfoErrors += "<div id=error><p>Please enter a valid Ship To Zip / Postal Code.</p></div>";
				SAllGood = false;
			}
			else {
				SZipCodeTextBox.style.cssText = "";
				SZipCodeLabel.style.cssText = "";
			}	
			if(SCountryDropDownList.value == "USA"){
				if(SStateDropDownList.value == "Select State..."){
					SStateDropDownList.style.cssText = "border:1px solid #B81215!important;background:#FFDDDD!important;";
					SStateLabel.style.cssText = "font-weight:bold;color:#BF0101";
					ShippingInfoErrors += "<div id=error><p>Please select a Ship To State.</p></div>";
					SAllGood = false;
				}
				else{
					SStateDropDownList.style.cssText = "";
					SStateLabel.style.cssText = "";
				}
			}
			if(SCountryDropDownList.value == "Select Country..."){
				SCountryDropDownList.style.cssText = "border:1px solid #B81215!important;background:#FFDDDD!important;";
				SCountryLabel.style.cssText = "font-weight:bold;color:#BF0101";
				ShippingInfoErrors += "<div id=error><p>Please select a Ship To Country.</p></div>";
				SAllGood = false;				
			}
			else{
				SCountryDropDownList.style.cssText = "";
				SCountryLabel.style.cssText = "";			
			}			
			//				
			if(SAllGood == true){
				showStep(3);
				$("ShippingInfoErrors").innerHTML = "";
				adjustTax();
				toReviewShipping();
				return true;
			}
			else{
				$("ShippingInfoErrors").innerHTML = ShippingInfoErrors;				
				return false;	
			}			
		}

function copyAddress(){if($("UseBillingCheckBox").checked==true){$("ShipToFirstNameTextBox").value=$("FirstNameTextBox").value;$("ShipToLastNameTextBox").value=$("LastNameTextBox").value;$("ShipToAddress1TextBox").value=$("Address1TextBox").value;$("ShipToAddress2TextBox").value=$("Address2TextBox").value;$("ShipToCityTextBox").value=$("CityTextBox").value;$("ShipToStateDropDownList").selectedIndex=$("StateDropDownList").selectedIndex;$("ShipToZipCodeTextBox").value=$("ZipCodeTextBox").value;$("ShipToCountryDropDownList").selectedIndex=$("CountryDropDownList").selectedIndex;adjustShipping();};return;};function updateTotals(){var CartSubTotal=parseFloat(removeCurrency($("CartSubTotal").innerHTML));var CartShipping;if($("CartShipping").innerHTML!="$--"){CartShipping=parseFloat(removeCurrency($("CartShipping").innerHTML));}else CartShipping=0;var CartTax=parseFloat(removeCurrency($("Tax").innerHTML));var CartTotal=CartSubTotal+CartShipping+CartTax;$("secure").style.display="block";$("CartTotal").innerHTML=addCurrency(CartTotal);return;};function adjustTax(){var CartSubTotal=parseFloat(removeCurrency($("CartSubTotal").innerHTML));var CartShipping=parseFloat(removeCurrency($("CartShipping").innerHTML));if($("ShipToStateDropDownList").value=="FL"){var CartTax=CartSubTotal*.07;var CartTotal=CartSubTotal+CartTax+CartShipping;$("Tax").innerHTML=addCurrency(CartTax);$("CartTotal").innerHTML=addCurrency(CartTotal);}else{$("Tax").innerHTML="$0.00";updateTotals();};return;};
function adjustShipping(){var ShipToCountry=new String($("ShipToCountryDropDownList").value);ShipToCountry=ShipToCountry.toUpperCase();switch(ShipToCountry){case "USA":$("CartShipping").innerHTML="$4.95";break;case "UNITED STATES":$("CartShipping").innerHTML="$4.95";break;case "UNITED KINGDOM":$("CartShipping").innerHTML="$9.00";break;case "AUSTRALIA":$("CartShipping").innerHTML="$10.00";break;case "CANADA":$("CartShipping").innerHTML="$7.00";break;case "ANTIGUA":$("CartShipping").innerHTML="$10.00";break;case "ARGENTINA":$("CartShipping").innerHTML="$10.00";break;case "ANTIGUA":$("CartShipping").innerHTML="$10.00";break;case "AUSTRIA":$("CartShipping").innerHTML="$9.00";break;case "BARBADOS":$("CartShipping").innerHTML="$10.00";break;case "BELGIUM":$("CartShipping").innerHTML="$9.00";break;case "BERMUDA":$("CartShipping").innerHTML="$10.00";break;case "BRAZIL":$("CartShipping").innerHTML="$10.00";break;case "CHILE":$("CartShipping").innerHTML="$10.00";break;case "CHINA":$("CartShipping").innerHTML="$10.00";break;case "COLOMBIA":$("CartShipping").innerHTML="$10.00";break;case "CROATIA":$("CartShipping").innerHTML="$10.00";break;case "CYPRUS":$("CartShipping").innerHTML="$10.00";break;case "CZECH REPUBLIC":$("CartShipping").innerHTML="$10.00";break;case "DENMARK":$("CartShipping").innerHTML="$10.00";break;case "DOMINCAN REPUBLIC":$("CartShipping").innerHTML="$10.00";break;case "FINLAND":$("CartShipping").innerHTML="$9.00";break;case "FRANCE":$("CartShipping").innerHTML="$9.00";break;case "GERMANY":$("CartShipping").innerHTML="$9.00";break;case "GREECE":$("CartShipping").innerHTML="$9.00";break;case "HONG KONG":$("CartShipping").innerHTML="$10.00";break;case "HUNGARY":$("CartShipping").innerHTML="$9.00";break;case "ICELAND":$("CartShipping").innerHTML="$9.00";break;case "INDIA":$("CartShipping").innerHTML="$10.00";break;case "INDONESIA":$("CartShipping").innerHTML="$10.00";break;case "IRELAND":$("CartShipping").innerHTML="$9.00";break;case "ISRAEL":$("CartShipping").innerHTML="$10.00";break;case "ITALY":$("CartShipping").innerHTML="$9.00";break;case "JAPAN":$("CartShipping").innerHTML="$10.00";break;case "LUXEMBOURG":$("CartShipping").innerHTML="$9.00";break;case "MALAYSIA":$("CartShipping").innerHTML="$10.00";break;case "MALTA":$("CartShipping").innerHTML="$10.00";break;case "MEXICO":$("CartShipping").innerHTML="$7.00";break;case "NETHERLANDS":$("CartShipping").innerHTML="$9.00";break;case "NEW ZEALAND":$("CartShipping").innerHTML="$10.00";break;case "NORWAY":$("CartShipping").innerHTML="$9.00";break;case "PAKISTAN":$("CartShipping").innerHTML="$10.00";break;case "PERU":$("CartShipping").innerHTML="$10.00";break;case "PHILLIPINES":$("CartShipping").innerHTML="$10.00";break;case "POLAND":$("CartShipping").innerHTML="$9.00";break;case "PORTUGAL":$("CartShipping").innerHTML="$10.00";break;case "RUSSIA":$("CartShipping").innerHTML="$10.00";break;case "SAUDI ARABIA":$("CartShipping").innerHTML="$10.00";break;case "SINGAPORE":$("CartShipping").innerHTML="$10.00";break;case "SLOVENIA":$("CartShipping").innerHTML="$9.00";break;case "SOUTH AFRICA":$("CartShipping").innerHTML="$10.00";break;case "SOUTH KOREA":$("CartShipping").innerHTML="$10.00";break;case "SPAIN":$("CartShipping").innerHTML="$9.00";break;case "SWEDEN":$("CartShipping").innerHTML="$9.00";break;case "SWITZERLAND":$("CartShipping").innerHTML="$9.00";break;case "TAIWAN":$("CartShipping").innerHTML="$10.00";break;case "THAILAND":$("CartShipping").innerHTML="$10.00";break;case "TURKEY":$("CartShipping").innerHTML="$10.00";break;case "UNITED ARAB EMIRATES":$("CartShipping").innerHTML="$10.00";break;case "VENEZUELA":$("CartShipping").innerHTML="$10.00";break;case "OTHER":$("CartShipping").innerHTML="$10.00";break;default:$("CartShipping").innerHTML="$10.00";};if($("GiftCodeTextBox").value == "runway" || $("GiftCodeTextBox").value == "RUNWAY"){$("CartShipping").innerHTML="$0.00";}; updateTotals();return;};function showStep(step){var divBilling=$("CheckoutBilling");var divShipping=$("CheckoutShipping");var divReview=$("CheckoutReview");switch(step){case 1:{divBilling.style.display="block";divShipping.style.display="none";divReview.style.display="none";changeProgressStep(1);};break;case 2:{divBilling.style.display="none";divShipping.style.display="block";divReview.style.display="none";changeProgressStep(2);};break;case 3:{divBilling.style.display="none";divShipping.style.display="none";divReview.style.display="block";$("ReviewYourInfo").style.display="block";changeProgressStep(3);};break;case 4:alert("your in showStep4");break;};return true;};function changeProgressStep(step){var progBilling=$("ProgressBilling");var progShipping=$("ProgressShipping");var progReview=$("ProgressReview");switch(step){case 1:{progBilling.style.background="#787878";progBilling.style.fontWeight="bold";progBilling.style.color="#FFF";progShipping.style.background="white";progShipping.style.fontWeight="normal";progShipping.style.color="#787878";progReview.style.background="white";progReview.style.fontWeight="normal";progReview.style.color="#787878";};break;case 2:{progShipping.style.background="#787878";progShipping.style.fontWeight="bold";progShipping.style.color="#FFF";progBilling.style.background="white";progBilling.style.fontWeight="normal";progBilling.style.color="#787878";progReview.style.background="white";progReview.style.fontWeight="normal";progReview.style.color="#787878";};break;case 3:{progReview.style.background="#787878";progReview.style.fontWeight="bold";progReview.style.color="#FFF";progBilling.style.background="white";progBilling.style.fontWeight="normal";progBilling.style.color="#787878";progShipping.style.background="white";progShipping.style.fontWeight="normal";progShipping.style.color="#787878";};break;case 4:alert("your in showStep4");break;};return true;}

//alert("Thank you for your patience!  We Love Colors Tech Team");