var newWin = null;
function closeWin(){
if (newWin != null){
if(!newWin.closed)
newWin.close();
}
}
function popUp(strURL,strType,strHeight,strWidth,strTop,strLeft) {
closeWin();
var strOptions="";
if (strType=="console") strOptions="resizable,scrollbars,height="+strHeight+",width="+strWidth+",top="+strTop+",left="+strLeft+"";
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth+",top="+strTop+",left="+strLeft+"";
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth+",top="+strTop+",left="+strLeft+"";
newWin = window.open(strURL, 'newWin', strOptions);
newWin.focus();
}
