<!--
	function EventDetailPopup(url)
	{
		var x = screen.width/2 - 250; 
		var y = screen.height/2 - 175; 
		var win = window.open(url,"win","width=500,height=250,scrollbars=yes, top=" + y + ",left=" + x);
		win.focus();
	}
	
	function autotab(fromField,toField)
	{
		if ( fromField.value.length==fromField.getAttribute( "maxlength" ) )
		{
			toField.focus();
		}
	}
	
	
	function confirm_delete(msg)
	{
		return confirm(msg);
	}
	
	function Toggle(id)
	{
		if( document.getElementById(id).style.display == "none")
			document.getElementById(id).style.display = "block";
		else
			document.getElementById(id).style.display = "none";
			
		return false;	
	}	
	
	function GotoSearch()
	{
		window.location.href = "/search.aspx?strSearch=" + document.form2.txtSearch.value;
	}
	
	function printerFriendly()
	{
	if (document.getElementById != null)
	{
		var obj = document.getElementById('printerFriendly');
		if (obj != null)
		{
			var content = "<html>\n<head>";
			//var content = "<html>\n<head><title>Ontario Mining Association</title>";
			//content += "<LINK href='/css/insidePrint.css' type=text/css rel=stylesheet></head>";
		
			if (document.getElementsByTagName != null)
			{
				var obj_head = document.getElementsByTagName('head');
				if (obj_head != null)
				content += obj_head[0].innerHTML;
				content = content.replace("inside.css","insidePrint.css");
			}
			content += "\n<body><table cellpadding='8' cellspacing='0' border='0' width='100%'><tr><td>" + obj.innerHTML + "<br/><a href=\"javascript:window.print()\">Print this page</a></td></tr></table>";
			content += "</body></head></html>";

			var printWindow = window.open("", "Print", "width=513,height=500,scrollbars=yes");
			printWindow.document.open();
			printWindow.document.write(content);
			printWindow.location.reload();
		}
	}
	else
	{
		alert("You're browser is not capable of performing this operation!");
	}
	}
//-->
