	/*************************
	* function added by Yogesh
	* component : StockTicker
	**************************/

	function Currency(anynum,precision) {
		decimalpt = (anynum.indexOf(".")+1);
		integer = anynum.substring(0,decimalpt-1);
		decimal = anynum.substring((decimalpt),(decimalpt+precision));
		// If length of decimal is less than two, It will appends "0" to make two points of decimal.
		if(decimal.length < 2)		
			decimal = decimal+"0";
		finalvalue = integer+'.'+decimal;
		return finalvalue;
	}


	/******************************
	* functions added by Karan
	* component : Printer Friendly
	*******************************/

	/* function used to display a new window */
	function NewWindow(mypage, myname, w, h, scroll) 
		{
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
		win = window.open(mypage, myname, winprops);
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}

	/* function used to print a page */
	function printWindow()
		{
	
	   bV = parseInt(navigator.appVersion);
	   if (bV >= 4) window.print();
	}
