String.Empty = "";
String.Space = " ";
String.Comma = ",";

function GetURL(Str) {
	return Str.replace(/\s/g, "_");
}

function SendForm(Obj, Str) {
	Obj.action = "Articles/" + GetURL(Str);
}

function SendLink(Src) {
	Src.href = GetURL(unescape(Src.href));
}

function GetRef(Id) {
	if (document.all) return document.all(Id);
	return document.getElementById(Id);
}

function IsEnterKey(Evt) {
	var KeyCode = (KeyCode = Evt.which) ? KeyCode : Evt.keyCode;
	return KeyCode == 13;
}

function Menu() {
	var Current     = null;
	var HighLight   = null;
	this.ClassName  = null;
	this.Show       = Show;
	this.Hover      = Hover;
	
	function Show(Id) {
		var Ref = GetRef(Id);
		Ref.style.display = String.Empty;
		/*
		var Ref = GetRef(Id);
		if (Current == Ref) return;
		if (Current != null) Current.style.display = "none";
		Ref.style.display = Ref.style.display.IsEmpty() ? "none" : String.Empty;
		Current = Ref;
		*/
	}
	
	function Hover(Evt) {
		if (!this.ClassName) return;
		var Src = document.all ? Evt.srcElement : Evt.target;
		var Tag = Src.tagName;
		if (HighLight) HighLight.className = String.Empty;
		if (Tag && Tag.toUpperCase() == "A") {
			HighLight = Src;
			HighLight.className = this.ClassName;
		}
	}
}
String.prototype.IsEmpty   = function()          { return this == String.Empty; }
String.prototype.LTrim     = function()          { return this.replace(/^\s+/g, String.Empty); }
String.prototype.RTrim     = function()          { return this.replace(/\s+$/g, String.Empty); }
String.prototype.Trim      = function()          { return this.LTrim().RTrim(); }