// Copyright Intellexis plc 2000-2002. All rights reserved.
// Add next line so that MSE editor color codes in js file
// <%@ LANGUAGE=JSCRIPT%>
// <%

var openwindows = new Array();

function GettingStarted(url) {
	var w = window.open(url,"Help","toolbar=yes,width=680,height=480,directories=no,menubar=no,resizable=yes,scrollbars=yes");
	if (w) w.focus();
	openwindows[openwindows.length] = w;
}

function closeOpenWindows() {
	for (var i = 0; i<openwindows.length; i++) {
		w = openwindows[i];
		if (w != null && !w.closed) {
			w.close();
			openwindows[i] = null;
		}
	}
}

function OpenNoClutter(url, framename, theWidth, theHeight) {

  w = window.open(url,framename,"toolbar=no,width=" + theWidth + ",height=" + theHeight + ",directories=no,menubar=no,resizable=yes,scrollbars=yes");
  w.focus();
 
}

var isNav, isIE, isWin;
var coll = "";
var styleObj = "";

if (navigator.userAgent.indexOf('Win') != -1) {
	isWin = true;
	
	if (navigator.appName.indexOf("Netscape") >= 0) {
		if (parseInt(navigator.appVersion) >= 3) {
			isNav = true;
		}
	} else {
		if (parseInt(navigator.appVersion) >= 4) {
			isIE = true;
			coll = "all.";
			styleObj = ".style";
		}
	}
}

function getObject(obj) {
	var theObj;
	if (typeof obj == "string") {
		theObj = eval("document." + coll + obj + styleObj);
	} else {
		theObj = obj;
	}
	return theObj;
}
