﻿// JScript File
function wShow(url, w, h, s, w_name) {

attr = 'width='+w+',height='+h+',location=0,menubar=0,resizable=0,scrollbars='+s+',status=0,titlebar=0,toolbar=0,hotkeys=0';
if ( parseInt(navigator.appVersion) >= 4 ) {
x = (screen.width - w) / 2;
y = (screen.height - h) / 2;
if( x<0 ) x=0;
if( y<0 ) y=0;
attr += ',xposition='+x+',left='+x+',yposition='+y+',top='+y;
}
msgS = window.open(url, 'w'+ w_name, attr );
if (msgS.opener == null) msgW.opener = self;
}


function wShowResize(url, w, h, s, w_name) {
attr = 'width='+w+',height='+h+',location=0,menubar=0,resizable=1,scrollbars='+s+',status=0,titlebar=0,toolbar=0,hotkeys=0';
if ( parseInt(navigator.appVersion) >= 4 ) {
x = (screen.width - w) / 2;
y = (screen.height - h) / 2;
if( x<0 ) x=0;
if( y<0 ) y=0;
attr += ',xposition='+x+',left='+x+',yposition='+y+',top='+y;
}
msgS = window.open(url, 'w'+ w_name, attr );
if (msgS.opener == null) msgW.opener = self;
}

function wShowResizePhotoService(url, w, h, s, w_name) {
attr = 'width='+w+',height='+h+',location=0,menubar=0,resizable=1,scrollbars='+s+',status=1,titlebar=1,toolbar=0,hotkeys=1';
if ( parseInt(navigator.appVersion) >= 4 ) {
x = (screen.width - w) / 2;
y = (screen.height - h) / 2;
if( x<0 ) x=0;
if( y<0 ) y=0;
attr += ',xposition='+x+',left='+x+',yposition='+y+',top='+y;
}
msgS = window.open(url, 'w'+ w_name, attr );
if (msgS.opener == null) msgW.opener = self;
}


