function wopen(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable) {
    toolbar_str = toolbar ? 'yes' : 'no';
    menubar_str = menubar ? 'yes' : 'no';
    statusbar_str = statusbar ? 'yes' : 'no';
    scrollbar_str = scrollbar ? 'yes' : 'no';
    resizable_str = resizable ? 'yes' : 'no';
    window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
function wopen_close(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable) {
    toolbar_str = toolbar ? 'yes' : 'no';
    menubar_str = menubar ? 'yes' : 'no';
    statusbar_str = statusbar ? 'yes' : 'no';
    scrollbar_str = scrollbar ? 'yes' : 'no';
    resizable_str = resizable ? 'yes' : 'no';
    window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
	close();
}
function wopen_image(imgname, url, left, top, width, height, toolbar, menubar, statusbar, scroolbar, resizable, title){
    toolbar_str = toolbar ? 'yes' : 'no';
    menubar_str = menubar ? 'yes' : 'no';
    statusbar_str = statusbar ? 'yes' : 'no';
    scrollbar_str = scrollbar ? 'yes' : 'no';
    resizable_str = resizable ? 'yes' : 'no';
	
	myPix=0;
    if (window.opera || document.layers) myPix=16;

    myWinSize = "width=" + width+myPix + ",height=" + height;
    myWin = window.open("" , imgname , myWinSize);
    myWin.document.open();
    myWin.document.write('<html>');
    myWin.document.write('<head>');
    myWin.document.write('<title>' , title , '<','/title>');
    myWin.document.write('<','/head>');
    myWin.document.write('<body topmargin=0 leftmargin=0>');
    myWin.document.write('<img src=\"' , url , '\">' );
    myWin.document.write('<' , '/body>');
    myWin.document.write('<' , '/html>');
    myWin.document.close();

    window.open(url, imgname, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}



