function OpenPictureWindow(imageUrl,imageWidth,imageHeight,alt,posLeft,posTop, isScrollVisible) {
    var scrollbars = (!isScrollVisible)? "yes" : "no";
    
    newWindow = window.open("","pictureWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=" + scrollbars + ",left="+posLeft+",top="+posTop);
    newWindow.document.open();
    newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">');
    newWindow.document.write('<img src=\"'+imageUrl+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">');
    newWindow.document.write('</body></html>');
    newWindow.document.close();
    newWindow.focus();
}

function OpenWindow(pageUrl, windowName, features) {
    window = window.open(pageUrl,windowName,features);
    window.focus();
}