
	function WindowOpener(name, thisURL, w, h, thescrollbars, theresizable, thetop, theleft)
	{
			var mytitle = 'Popup';
			var myleft = (screen.width) ? (screen.width-w)/2 : 0;
			var mytop  = (screen.height) ? (screen.height-h)/2 : 0;
			var myscrollbars = 'no';
			var myresizable  = 'no';
			if(theresizable != null) myresizable = theresizable;
			if(thescrollbars != null) myscrollbars = thescrollbars;
			if(name != null)    mytitle = name;
			if(thetop != null)  mytop = thetop;
			if(theleft != null) myleft = thetop;
			thiswindow = window.open(thisURL, mytitle,'toolbar=no,width=' +w+',height=' +h+ ',top='+mytop+',left='+myleft+', location=no,directories=no, status=no, menubar=no,scrollbars='+myscrollbars+',resizable='+myresizable);
			thiswindow.focus();
	}
	
	function Window_Opener(name, thisURL, w, h, thescrollbars, theresizable, thetop, theleft)
	{
			var mytitle = 'Popup';
			var myleft = (screen.width) ? (screen.width-w)/2 : 0;
			var mytop  = (screen.height) ? (screen.height-h)/2 : 0;
			var myscrollbars = 'no';
			var myresizable  = 'no';
			if(theresizable != null) myresizable = theresizable;
			if(thescrollbars != null) myscrollbars = thescrollbars;
			if(name != null)    mytitle = name;
			if(thetop != null)  mytop = thetop;
			if(theleft != null) myleft = thetop;
			return window.open(thisURL, mytitle,'toolbar=no,width=' +w+',height=' +h+ ',top='+mytop+',left='+myleft+', location=no,directories=no, status=no, menubar=no,scrollbars='+myscrollbars+',resizable='+myresizable);
	}
	
	function Window_Dialog(path,WinWidth,WinHeight,thescrollbars) {
		//var winObject = new Object();
		var myscrollbars = 'no';
		if(thescrollbars != null) myscrollbars = thescrollbars;	
		//alert("status:false;dialogWidth:"+WinWidth+"px;dialogHeight:"+WinHeight+"px;status:no;scroll:"+thescrollbars+";help:no;center:Yes;");
		window.showModelessDialog(path,window,"status:false;dialogWidth:"+WinWidth+"px;dialogHeight:"+WinHeight+"px;status:no;scroll:"+thescrollbars+";help:no;center:Yes;");
		return true;		
	}
	
	function toolbarOpener(name, thisURL, w, h, thescrollbars, theresizable, thetop, theleft)
	{
			var mytitle = 'Popup';
			var myleft = (screen.width) ? (screen.width-w)/2 : 0;
			var mytop  = (screen.height) ? (screen.height-h)/2 : 0;
			var myscrollbars = 'no';
			var myresizable  = 'no';
			if(theresizable != null) myresizable = theresizable;
			if(thescrollbars != null) myscrollbars = thescrollbars;
			if(name != null)    mytitle = name;
			if(thetop != null)  mytop = thetop;
			if(theleft != null) myleft = thetop;
			thiswindow = window.open(thisURL, mytitle,'toolbar=yes,width=' +w+',height=' +h+ ',top='+mytop+',left='+myleft+', location=no,directories=no, status=no, menubar=yes,scrollbars='+myscrollbars+',resizable='+myresizable);
			thiswindow.focus();
	}

	function byMouseDialog(name, thisURL, w, h, offsetX, offsetY, thescrollbars, theresizable) {
			var mytitle = 'mousedialog';
			var myleft = offsetY;
			var mytop  = offsetX;
			var myscrollbars = 'no';
			var myresizable  = 'no';
			if(theresizable != null) myresizable = theresizable;
			if(thescrollbars != null) myscrollbars = thescrollbars;
			window.showModalDialog(thisURL + '&h='+h+'&w='+ w,window,"status:false;dialogTop:"+mytop+";dialogLeft:"+myleft+";dialogWidth:"+w+"px;dialogHeight:"+h+"px;status:no;scroll:"+thescrollbars+";help:no;center:Yes;");
	}


