	function errorHandler(message, url, line){
		//alert(url);
		//alert(message);
		//alert(line);
		return true;
	}
	window.onerror = errorHandler;

	function bookmark(obj) {

		var title = obj.document.title;
		var url = obj.document.location.href;

		if (window.sidebar) {
			// Mozilla Firefox Bookmark
			window.sidebar.addPanel(title, url,"");
			}
		else if( window.external ) {
			// IE Favorite or Google
			if (navigator.appName == "Netscape") {
				alert("Sorry, your browser does not support this feature.\nPress CTRL-D to bookmark this page.");
				return;
			}
			window.external.AddFavorite(url, title);
		}
		else
			alert("Sorry, your browser does not support this feature.\nPress CTRL-D to bookmark this page.");
	}

	activateMenu = function(nav) {
		if (document.all && document.getElementById(nav).currentStyle) {
			var navroot = document.getElementById(nav);
			navroot.firstChild.style.display = "block";
			var lis=navroot.getElementsByTagName("LI");
			for (i=0; i<lis.length; i++) {
				if(lis[i].lastChild.tagName=="UL"){
					lis[i].onmouseover=function() {
						this.lastChild.style.display="block"; }
					lis[i].onmouseout=function() {
						this.lastChild.style.display="none"; }
				}
			}

		}
	}

	function em_send(arg1, arg2, arg3) {
		var tmp = '%' + (44 - 4);
		window.open ('mai' + 'lt' + 'o' + ':' + arg1 + '%' + (44 - 4) + arg2 + '%' + '2E' + arg3);
	}

	function winOpen(url, desc)
	{
		var objWindow=window.open('','','channelmode=no, height=600, width=800, menubar=no, toolbar=no, location=no, scrollbars=yes, status=yes, resizable=yes, top=0, left=0');
		if (objWindow == null || typeof(objWindow)=="undefined") {
			alert("The " + desc + " window could not be opened.\nYour pop-up blocker disallowed the action.\n\nPlease allow your blocker to allow pop-ups.");
			return;
		}
		objWindow.document.write('<html>');
		objWindow.document.write('<head>');
		objWindow.document.write('<title></title>');
		objWindow.document.write('</head>');
		objWindow.document.write('<body onload="myname.submit();">');
		objWindow.document.write('<form name="myname" method="POST" action="' + url + '">');
		objWindow.document.write('</form>');
		objWindow.document.write('</body>');
		objWindow.document.write('</html>');
		objWindow.resizeTo(screen.width,screen.height);
		objWindow.document.close();
	}

	window.onload = function(){
		activateMenu('nav');
	}
