// JavaScript Document
function AddItem(p_strISBN, p_strPromoCode)
{
	window.location="/ecom/AddItem.php?g_strISBN=" + p_strISBN + "&g_strPromoCode=" + p_strPromoCode;
}

function DeleteItem(p_strISBN, p_strScreen)
{
	window.location="/ecom/DeleteItem.php?g_strISBN=" + p_strISBN + "&g_strScreen=" + p_strScreen;
}




function UpdateItem(p_strISBN, p_intQty)
{ 

	window.location="/ecom/UpdateItem.php?g_strISBN=" + p_strISBN + "&g_intQty=" + document.getElementById(p_intQty).value;
}

function UserLogin()
{
	window.location="php/UserLogin.php?g_strEmail=" + document.getElementById('email').value + "&g_strPassw=" + document.getElementById('password').value + "&g_strScreen=../Account.php";
}

function showHideText(boxName,divName) { 

	if (boxName.checked == true) 
	{ 
		ShowContent(divName); 
	} 
	else 
	{ 
		HideContent(divName); 
	} 
}

function ShowContent(divName) {
	if (document.getElementById) { // DOM3 = IE5, NS6
	document.getElementById(divName).style.visibility = "";
	document.getElementById(divName).style.display = "block";
	} 
	else {	
		if (document.layers) { // Netscape 4
			document.divName.visibility= "";
		} 
		else { // IE 4
			document.all.divName.style.visibility = "";
		}
	}
}

function HideContent(divName) {
	document.getElementById(divName).style.visibility = "hidden";
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(divName).style.visibility = "hidden";
		document.getElementById(divName).style.display = "none";
	}
	else {
		if (document.layers) { // Netscape 4
			document.divName.visibility= "hidden";
		} 
		else { // IE 4
			document.all.divName.style.visibility = "hidden";
		}
	}
}

