//////////////////////////////////////////////////////////////////////

function open_window(url) {
mywin = window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=yes,width=525,height=455,left=40,top=50');
	self.setTimeout("mywin.focus()",1000);
}

function launchPopUp(linkObject) {
	// This closes a pop-up window by the same name if it is already open.
	var winName = linkObject.href;
	if (linkObject.name) {
		winName = linkObject.name;
		if (eval("window." + winName) != null) {
			eval("window." + winName + ".close()");
		}
	}
	
	var h = 400;
	if (linkObject.getAttribute("h")) {h = linkObject.getAttribute("h")}
	
	var w = 400;
	if (linkObject.getAttribute("w")) {w = linkObject.getAttribute("w")}
	
	var r = "yes";
	if (linkObject.getAttribute("r")) {r = linkObject.getAttribute("r")}
	
	var s = "yes";
	if (linkObject.getAttribute("s")) {s = linkObject.getAttribute("s")}
	
	var newWin = window.open(linkObject.href,"","width=" + w + ",height=" + h + ",resizable=" + r + ",scrollbars=" + s);

	newWin.focus();
	
	return newWin;

}

function popitup(url) {
	newwindow=window.open(url,'name','height=700,width=550,');
	if (window.focus) {newwindow.focus()}
	return false;
}

//////////////////////////////////////////////////////////////////////
