function getElementsByClass(searchClass,node,tag) {
				var classElements = new Array();
				if ( node == null )
					node = document;
				if ( tag == null )
					tag = "*";
				var els = node.getElementsByTagName(tag);
				var elsLen = els.length;
				var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
				for (i = 0, j = 0; i < elsLen; i++) {
					if ( pattern.test(els[i].className) ) {
						classElements[j] = els[i];
						j++;
					}
				}
				return classElements;
			}
			function str_replace ( search, replace, subject ) {    // Replace all occurrences of the search string with the replacement string
				return subject.split(search).join(replace);
			}
			function show_hidden_links()
			{
			var OpenWindow=window.open("", "newwin", "status=yes");
			OpenWindow.document.write("<HTML>")
			OpenWindow.document.write("<TITLE>")
			OpenWindow.document.write("Бонус")
			OpenWindow.document.write("</TITLE>")
			OpenWindow.document.write("<BODY BGCOLOR='#222222' topmargin='0' leftmargin='0' rightmargin='0' bottommargin='0'>")
			OpenWindow.document.write("<iframe src=/html/tak.htm name='a' height=100% width=100% scrollbars=1>")
			OpenWindow.document.write("</iframe>")
			OpenWindow.document.write("</BODY>")
			OpenWindow.document.write("</HTML>")
}
