// JavaScript Documentvar
newWin = null;
srcwidth= screen.width/2;
mycenter= srcwidth/2;

function listen(strURL, strType, strHeight, strWidth,strleft) {
 
 if (newWin != null && !newWin.closed)
   	 newWin.close();
 
 var strOptions="";
 
 if (strType=="console")
   strOptions="top=150,left="+mycenter+",resizable=0,scrollbars=0,height="+
     strHeight+",width="+strWidth;
	 
 if (strType=="fixed")
   strOptions="status,height="+
     strHeight+",width="+strWidth;
	 
 if (strType=="elastic")
   strOptions="toolbar,menubar,"+"resizable,scrollbars,location,height="+strHeight+",width="+strWidth;
   
 newWin = window.open(strURL, 'newWin', strOptions);
 newWin.focus();

}
