function getObject(sName) {
	return document.getElementById ? document.getElementById(sName) : document.all ? document.all[sName] : null;
}

var g_oWndDict = new clsDictionary();

function showWnd(sUrl,sTitle,nWidth,nHeight) {
	if (!sTitle) sTitle = 'helpwnd';
	if (!nWidth) nWidth = 300;
	if (!nHeight) nHeight = 150;
	//var oWnd = window.open(sUrl, sTitle, 'width=' + nWidth + ',height=' + nHeight);
	var oWnd = window.open(sUrl, sTitle, 'width=' + nWidth + ',height=' + nHeight + ',scrollbars=yes,resizable=yes');
	oWnd.focus();
	return false;
}

function changeTitle() {
	parent.document.title = document.title;
}

function GetCookie(name) {
	var startIndex = document.cookie.indexOf(name); 
	if (startIndex != -1) {
		var endIndex = document.cookie.indexOf(";", startIndex); 
		if (endIndex == -1)
			endIndex = document.cookie.length;
		startIndex += name.length + 1;
		if (startIndex < endIndex)
			return unescape(document.cookie.substring(startIndex, endIndex)); 
	}
	return '';
}

function SetCookie(name, value, days) {
	var expire = new Date();
	expire.setTime (expire.getTime() + (24 * 60 * 60 * 1000) * days); 
	document.cookie = name + "=" + escape(value) + ";expires=" + expire.toGMTString() + ";path=/";
}

function DeleteCookie(name) {
	var expire = new Date();
	expire.setTime (expire.getTime() - (24 * 60 * 60 * 1000)); 
	document.cookie = name + "=; expires=" + expire.toGMTString(); 
}

function clsDictionary() {
    this.Add = function() {
			for (var c=0; c < arguments.length; c+=2)
				this[arguments[c]] = arguments[c+1];
		};
    this.Lookup = function(strKeyName) {
			return(this[strKeyName]);
		};
    this.Delete = function() {
			for (var c=0; c < arguments.length; c++)
				this[arguments[c]] = null;
		};
}

window.focus();