<!--
	function OrderDetailsPrint(mID, oID, lID) {
		var url;	
		url = './ShopDesktopModules/PrintOrder.aspx?mID=' + mID + '&oID=' + oID + '&lID=' + lID;
		window.open(url, '', 'top=0,left=0,width=650,height=500,toolbar=yes,menubar=no,directories=no,scrollbars=yes');
	}
	function OpenWindow(width, height, URL) {
		var str
		str = "top=0,left=0,toolbar=no,width=" + width + ", height=" + height + ", menubar=no,directories=no,scrollbars=no";
		window.open(URL, null, str);
	}
	function ProductDetailsPrint(URL) {
		var str
		str = "top=50,left=50,width=670,height=500,toolbar=yes,menubar=no,directories=no,scrollbars=yes";
		window.open(URL, null, str);
	}
	function CustomerOrderPrint(URL) {
		var str
		str = "top=50,left=50,width=670,height=500,toolbar=yes,menubar=no,directories=no,scrollbars=yes";
		window.open(URL, null, str);
	}
	function noPostBack(sNewFormAction, sTarget)
	{
		if(document.layers) //The browser is Netscape 4
		{
			document.layers['Content'].document.forms[0].__VIEWSTATE.name =	'NOVIEWSTATE';
			document.layers['Content'].document.forms[0].__EVENTTARGET.name =	'NOEVENTTARGET';
			document.layers['Content'].document.forms[0].__EVENTARGUMENT.name =	'NOEVENTARGUMENT';
			document.layers['Content'].document.forms[0].action = sNewFormAction;
			document.layers['Content'].document.forms[0].target = sTarget;
		}
		else //It is some other browser that understands the DOM
		{
			document.forms[0].action = sNewFormAction;
			document.forms[0].target = sTarget;
			document.forms[0].__VIEWSTATE.name = 'NOVIEWSTATE';
			document.forms[0].__EVENTTARGET.name = 'NOEVENTTARGET';
			document.forms[0].__EVENTARGUMENT.name = 'NOEVENTARGUMENT';
		}
	}

	//function openModalWindow(URL, width, height, id)
	function openModalWindow(URL, width, height)
	{
		//var myId = document.getElementById('_ctl2_contentPane').value;
		//URL = URL + "?mId=" + myId;
		
		if ( navigator.product == "Gecko" && navigator.productSub >= 20030210 )
		{			
			OpenGeckoModalWindow(URL, width, height);
		}
		else
		{
			OpenIEModalWindow(URL,width,height);
		}
		
	}
	
	function OpenGeckoModalWindow(URL, width, height)
	{
		var iWidth	= width ;
		var iHeight	= height ;

		var iLeft = (screen.width  - iWidth) / 2 ;
		var iTop  = (screen.height - iHeight) / 2 ;

		var sOptions = "toolbar=no,status=no,resizable=no,dependent=yes" ;
		sOptions += ",width=" + iWidth ;
		sOptions += ",height=" + iHeight ;
		sOptions += ",left=" + iLeft ;
		sOptions += ",top=" + iTop ;

		var oWindow = window.open( URL, 'PortalManagerWindow', sOptions ) ;
	}
	
	function OpenIEModalWindow(URL, width, height)
	{
		var iWidth	= width ;
		var iHeight	= height ;

		var iLeft = (screen.width  - iWidth) / 2 ;
		var iTop  = (screen.height - iHeight) / 2 ;

		var sOptions = "toolbar=no,status=no,resizable=no,dependent=yes" ;
		sOptions += ",width=" + iWidth ;
		sOptions += ",height=" + iHeight ;
		sOptions += ",left=" + iLeft ;
		sOptions += ",top=" + iTop ;

		var oWindow = window.showModalDialog( URL,"" , sOptions ) ;
	}
	
	function getById(id)
	{
		return document.getElementById(id).value;
	}
	
	BROW_DOM = (document.getElementById) ? true : false;
    BROW_NS4 = (document.layers) ? true : false;
    BROW_IE = (document.all) ? true : false;
    BROW_IE4 = BROW_IE && !BROW_DOM;
	
    function GetImage(imgName)
    {        
        if (!BROW_NS4 && document.images)
            return document.images[imgName];

        return eval("document." + imgName);
    }

//-->













