// JavaScript Document
function openWin(wUrl,wWidth,wHeight,wname){
scWidthCenter=screen.availWidth/2;
scHeightCenter=screen.availHeight/2;
wOption = 
"scrollbars=no,resizable=no";
newwindow = window.open(wUrl,wname,wOption);
newwindow.focus();
}



function openWPWin(wUrl,wname){
var i = new Image();
i.src = wUrl;

/*scWidthCenter=screen.availWidth/2;
scHeightCenter=screen.availHeight/2;
wOption = 
"scrollbars=no,resizable=no,width="+t_width+",height="+t_height+",left="+(scWidthCenter-(t_width/2))+",top="+(scHeightCenter-(i.height/2));
newwindow = window.open("",wname,wOption);*/

newwindow = window.open(
"",
"_blank",
"width="+i.width+",height="+i.height+",scrollbars=no,resizable=yes"
);

newwindow.window.document.open();
newwindow.window.document.write(
'<html>'
+'<head><title>'+i.alt+'</title></head>'
+'<body style="margin:0;padding:0;border:0;">'
+'<img src="'+i.src+'" width="'+i.width+'" alt="" />'
+'</body>'
+'</html>'
);
newwindow.window.document.close();
newwindow.focus();
}
function closeWin(){
newwindow = window.close();
}
