function openWin(strURL, intWidth, intHeight, scroll, resizable) {
var nav4 = window.Event ? true : false;
//alert(':' + !objWindow + objWindow)

intHeight += 30

intWidth += 5

//alert(scroll)

if (scroll==''){scroll=1}

if (resizable==''){resizable=0}

var bolWindowClosed

var _ieErrorCheckingCode = 'try{objWindow.blur();bolWindowClosed = false;}catch(oErr){bolWindowClosed = true;}';

var _navNonErrorCheckingCode = 'objWindow = null;bolWindowClosed = true;';


if (!nav4){

eval(_ieErrorCheckingCode);

}else{

eval(_navNonErrorCheckingCode);

}


//alert(scroll)


if (bolWindowClosed) {

objWindow = window.open(

strURL,

"myWindow",

"leftmargin=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=" + scroll + ",resizable=" + resizable + ",width=" + intWidth + ",height=" + intHeight

);

}

else {

objWindow.location.href = strURL

objWindow.blur()

objWindow.focus()

}


if (objWindow.resizeTo) {objWindow.resizeTo(intWidth, intHeight);}


//if (document.all)

// { w = document.body.clientWidth; h = document.body.clientHeight; }

//else if (document.layers) { w = window.innerWidth; h = window.innerHeight; }

w = screen.availWidth; h = screen.availHeight


if (objWindow.moveTo) {objWindow.moveTo(w/2-(intWidth/2),h/2-(intHeight/2));}

}

