/*
*************************************************
	content.js

 	JavaScript functions for content
*************************************************

*** Note ***
Refresh or reopen browser if these scripts are updated; file is cached by browser!!

*/

function dyn_OnBuy(strForm){
	var strURL;

	strURL = 'cart_display.asp';
	strURL = strURL + '?ProductID=' + eval('document.' + strForm + '.ProductID.value');
	strURL = strURL + '&Qty=' + eval('document.' + strForm + '.Qty.value');

	parent.ShopCart.location.replace(strURL);
}

function dyn_OnBuyLocation(strBuyLoc,strForm){
	var strURL;
	strURL = 'cart_display.asp';
	strURL = strURL + '?ProductID=' + eval('document.' + strForm + '.ProductID.value');
	strURL = strURL + '&Qty=' + eval('document.' + strForm + '.Qty.value');
	strURL = strURL + '&from=' + strBuyLoc

	parent.ShopCart.location.replace(strURL);
}

function dyn_OnBuyAll(strArray){
	var strURL;

	strURL = 'cart_display.asp?ProductArray=' + strArray;

	parent.ShopCart.location.replace(strURL);
}

function dyn_OnBuyDeal(strProdArray, strPromoArray){
	var strURL;

	strURL = 'cart_display.asp?ProductArray=' + strProdArray + '&PromoProdArray=' + strPromoArray;

	parent.ShopCart.location.replace(strURL);
}

function SDCPopUp(strPop) 
{
	var strURL;
	
	strURL = 'content/' + strPop;
	
	window.open(strURL,'TourWindow','width=550,Height=400,scrollbars=no,resizable=no','screenX=0,screenY=0')
}
function SDCShowHelp(strURL)
{
	if (strURL == "") strURL = "checkout_help.html";
	helpwin = window.open(strURL, "helpwindow", "height=350,width=600,resizable,scrollbars");
	helpwin.focus();
}

