/////////////////////////////////////////////////////////////////////////////////
//Version12                                                                    //
//This site was created by                                                     //
//Ollwin International Corp. Enable Your E-Business                            //
//The materials contained in this web site are licenced only to OllwinShop     //
//and Ollwin and may be used for informational purposes only.                  //
//By downloading any of the Materials contained in the site, you agree to the  //
//terms and provisions as outlined in legal notice.                            //
//If you don't agree to them, please do not use the site or download Materials.//
//                                                                             //
//====== DESCRIPTION OF FUNCTIONS ======                                       //
//                                                                             //
//Function roundit();                                                          //
//A utility that rounds any number to the specified decimal place. This is     //
//needed because JavaScript doesn't have any built-in methods for the task. The//
//function takes two parameters- a number (has to be a number datatype), and   //
//the number of places to round it to.  If the number doesn't have decimals,   //
//roundit adds a decimal point and two zeros and returns a string.             //
/////////////////////////////////////////////////////////////////////////////////
<!--
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){
	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
}
//-->