    //isRootRelatedURL: when a URL is a relative one to the application root
    function openWindow(sURL, name, width, height, resizable, isRootRelatedURL, scrollbars)
    {
        if(name == undefined || name == null ) name="";
        if(width == undefined || width == null || isNaN(width)) width = 800;
        if(height == undefined || height == null || isNaN(height)) height = 600;
        if(isRootRelatedURL == undefined || isRootRelatedURL == null || isRootRelatedURL != true) isRootRelatedURL = false;
        var sResize = "yes";
        if((resizable == undefined || resizable == null) && resizable != true) 
            sResize = "no";
        else
            sResize = "yes";
        
        if(isRootRelatedURL == true)
        {
            if(gAppPath != undefined) 
                sURL = gAppPath + sURL;
            else
                sURL = "";
        }

		if (scrollbars == undefined || scrollbars == null || scrollbars == true) 
        	scrollbars="yes";
		else	
			scrollbars="no";
        
        if(sURL!="")
        {
            var w = window.open(sURL, name,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + scrollbars + ',resizable=' + sResize + ',copyhistory=no,height=' + height + ', width=' + width);
            w.focus();
        }
    }

    function changeImages(imgName, newSrc)
    {
        document.images[imgName].src = newSrc;
    }