
function centerNotModal(url,mwidth,mheight,mresizeable)
{

try {

//assign defaults if first size param is 0
if (mwidth ==0)
{
mwidth=440;
mheight=500;
}
//end assign defaults

if (IsIE() == 1)

	eval('window.showModelessDialog(url,"","status:0;help:0;resizable:' + mresizeable + 
	';dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')

else
	eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=' + 
	mresizeable + ',scrollbars=0,status=0")')
}
catch(e) {
  //print("Error: " + e);
  //alert("Problem in centerNotModal: " + e);
}
finally {
  //print("Script done.");
 }

}


function IsIEorNetscape()
   {

try {

      var ua = window.navigator.userAgent
      var msie = ua.indexOf ( "MSIE " )
      var opera = ua.indexOf ("Opera")
      var netsc = ua.indexOf( "Netscape" )

//alert ( ua );

	//Target IE *but not Opera* (which crudely includes MSIE in its ua) OR Netscape
      if (( msie > 0 ) && (opera < 0 )  || ( netsc > 0))
		return 1	
      else   
	{
         return 0
	}

}
catch(e) {
  //print("Error: " + e);
  //alert("Problem in IsIEorNetscape: " + e);
}
finally {
  //print("Script done.");
}

}

function IsIE()
   {

try {

      var ua = window.navigator.userAgent
      var msie = ua.indexOf ( "MSIE " )
      var opera = ua.indexOf ("Opera")
      
	//Target IE *but not Opera* (which crudely includes MSIE in its ua) 
      if (( msie > 0 ) && (opera < 0 )) 
		{
		return 1	
		}
      else   
	{
	//alert("Not IE");
         return 0
	}

}
catch(e) {
  //print("Error: " + e);
  //alert("Problem in IsIE: " + e);
}
finally {
  //print("Script done.");
}

}

function openPlainWindow(url, mwidth, mheight)

{
eval('window.open(url,null, "width=' + mwidth + ', height=' + mheight +', status=no,toolbar=no,menubar=no,location=no")');

}