// Shopper Lookup Redesign
//PSD by Mike Roque
//Layout and Javascript by Clark Dever - 20090226


//code to add Guest Checkout if user is checking out
var isCheckOut = false;
var query = window.location.search.substring(1);
/* if going to shipping and there are items in the cart */
if(window.location.search.indexOf("target=shipping") != -1 && basket_items != '0')
{		
 isCheckOut = true; //Flag used to decide to hide or display elements
}


//Hides the QA Box and Displays the Password Box Instead
function displayPasswordDiv(){
		document.getElementById("qa_container").style.cssText = "display:none;";
		document.getElementById("passwd_container").style.cssText = "display:block;";
}
//Hides the Password Box and Displays the QA Box Instead
function hidePasswordDiv(){
		document.getElementById("passwd_container").style.cssText = "display:none;";
		document.getElementById("qa_container").style.cssText = "display:block;";
}
//Fills original shopper_email field value with that of Password box
function doEmailPassword(){
	//fill shopper_email with shopper_email2 value
	//document.getElementById("shopper_email").value = document.getElementById("shopper_email2").value;
	document.shopper_lookup.shopper_email.value = document.shopper_lookup.shopper_email2.value;
}
 