/* ============================== ŠÖ”FopenWindow ============================== */ function openWindow( targetRef, popWidth, popHeight ){ var PROJECT_NAME = "icard"; var popLeft = (screen.width - popWidth) / 2; var popTop = (screen.height - popHeight) / 2; var refPopWin; if( (arguments.length == 4) && (arguments[3] == 'scroll') ) { refPopWin = window.open( targetRef, PROJECT_NAME + "_Pop" + popWidth + "x" + popHeight + "SB", "toolbar=0,location=0,directories=0,scrollbars=1,status=1,resizable=0,width=" + popWidth + ",height=" + popHeight + ",top=" + popTop + ",left=" + popLeft); } else { refPopWin = window.open( targetRef, PROJECT_NAME + "_Pop" + popWidth + "x" + popHeight + "", "toolbar=0,location=0,directories=0,scrollbars=0,status=1,resizable=0,width=" + popWidth + ",height=" + popHeight + ",top=" + popTop + ",left=" + popLeft); } refPopWin.focus(); return refPopWin; } function openWindowLeft( targetRef, popWidth, popHeight ){ var PROJECT_NAME = "icard2"; var refPopWin; if( (arguments.length == 4) && (arguments[3] == 'scroll') ) { refPopWin = window.open( targetRef, PROJECT_NAME + "_Pop" + popWidth + "x" + popHeight + "SB", "toolbar=0,location=0,directories=0,scrollbars=1,status=1,resizable=1,width=" + popWidth + ",height=" + popHeight + ",top=0,left=0"); } else { refPopWin = window.open( targetRef, PROJECT_NAME + "_Pop" + popWidth + "x" + popHeight + "", "toolbar=1,location=1,directories=0,scrollbars=1,status=1,resizable=1,width=" + popWidth + ",height=" + popHeight + ",top=0,left=0"); } refPopWin.focus(); return refPopWin; }