<!--
ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;
var sb;
sb=0;
if( ! document.layers && ! document.all ) {
  sb=1;
}

function OpenShoppingCart(index)
{
	var width = 600;
	var height = 297;
	myBar = 'directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=yes';
	myOptions = 'width='+width+',height='+height+',resizeable=no';
	myFeatures = myBar+','+myOptions;
	var newWinX1;
	if (index == null){
	    newWinX1 = window.show('shoppingCart_en.jsp','newWinX1',myFeatures);
	}
	else {
	    newWinX1 = window.show('shoppingCartLoader_en.jsp?id='+index,'newWinX1',myFeatures);
	}

	    //newWinX1.focus();
} //function OpenShoppingCart();

function show(url){
	document.location.href=url;
} //function show();

function go(UURL){
	location.replace(UURL);
} //function go();

function roundit(Num,Places){
	if (Num == null) return "0.00";
	var val = Num.toString();
	if (val.lastIndexOf(".") == -1){ //no decimal value
		return Num = val + ".00";
	} else if ((val.length - val.lastIndexOf(".")) == 2){ //one decimal value
		return Num = val + "0";
	} else if ((val.length - val.lastIndexOf(".")) > 3){ //more than two decimals
		return Num = val.substring(0,val.lastIndexOf(".")+3);
	} else if ((val.length - val.lastIndexOf(".")) == 3){ //two decimals
		return Num = val;
	} else {
		return Num
		} //if
}
//-->

function DoChangePost(form,target)
{
	document.forms[form].action = target;
	document.forms[form].submit();
}
