////////////////////////////////////////////////////////////////////////////////
//
// w_open : Open new browser window
// 
//	function w_open
//		strUrl,		// I will display this url.
//		strName,	// My name is ...
//		intX,			// X coodinate of my top-left point on screen is ...
//		intY,			// Y coordinate of my top-left point on screen is ...
//		intW,			// My width is ...
//		intH,			// My height is ...
//		blnTbr,		// true  : I have a tool-bar.
//							// false : I don't.
//		blnLoc,		// true  : I have a location-bar.
//							// false : I don't.
//		blnDir,		// true  : I have a dirctories-bar.
//							// false : I don't.
//		blnSts,		// true  : I have a status-bar.
//							// false : I don't.
//		blnMnu,		// true  : I have a menu-bar.
//							// false : I don't.
//		blnSbr,		// true  : I have a scroll-bar.
//							// false : I don't.
//		blnRsz		// true  : You can resize me.
//							// false : You can't.
//
// Return Value : Window Object
//
// HISTORY :
//  CREATE : 01/10/2001 : tak@bbtus.com :
//   P0001 : 01/18/2001 : tak@bbtus.com : Delete a space in strOptions for Netscape(win) to resize
//   P0002 : 05/17/2001 : tak@bbtus.com : Type miss "scrollbar" -> "scrollbars"
//
////////////////////////////////////////////////////////////////////////////////
function w_open(strUrl, strName, intX, intY, intW, intH,
	blnTbr, blnLoc, blnDir, blnSts, blnMnu, blnSbr, blnRsz) {

	var objWindow ;
	var strOptions ;

	strOptions = "" ;
	if(intW) strOptions += "width=" + intW + "," ;	//P0001
	if(intH) strOptions += "height=" + intH + "," ;	//P0001
	strOptions += "toolbar=" ;	//P0001
	blnTbr ? strOptions += "yes," : strOptions += "no," ;
	strOptions += "location=" ;	//P0001
	blnLoc ? strOptions += "yes," : strOptions += "no," ;
	strOptions += "directories=" ;	//P0001
	blnDir ? strOptions += "yes," : strOptions += "no," ;
	strOptions += "status=" ;	//P0001
	blnSts ? strOptions += "yes," : strOptions += "no," ;
	strOptions += "menubar=" ;	//P0001
	blnMnu ? strOptions += "yes," : strOptions += "no," ;
	strOptions += "scrollbars=" ;	//P0001, P0002
	blnSbr ? strOptions += "yes," : strOptions += "no," ;
	strOptions += "resizable=" ;	//P0001
	blnRsz ? strOptions += "yes," : strOptions += "no," ;

	objWindow = window.open(strUrl, strName, strOptions) ;
	objWindow.location.href = strUrl ;
	objWindow.moveTo(intX, intY) ;
//	objWindow.resizeTo(intW, intH) ;
	objWindow.focus() ;

  return objWindow ;
}

////////////////////////////////////////////////////////////////////////////////
//
// w_close : Close the browser window
// 
//	function w_close
//		objWin		// Window Object
//
// Return Value : N/A
//
// HISTORY :
//  CREATE : 01/12/2001 : tak@bbtus.com :
//
////////////////////////////////////////////////////////////////////////////////
function w_close(objWin) {
	if(!objWin.closed) objWin.close() ;
}

