<!--
	function EventDetailPopup(url)
	{
		var x = screen.width/2 - 350; 
		var y = screen.height/2 - 275; 
		var win = window.open(url,"win","width=700,height=550,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 KeyDownHandler1()
	{
		// process only the Enter key
		if (event.keyCode == 13)
		{
			// cancel the default submit
			event.returnValue=false;
			event.cancel = true;
		}
	}

	function KeyDownHandler(objEvent) 
	{	
		var keyCode;
	   
		if (document.all) {
			keyCode = objEvent.keyCode;
		} else {
			keyCode = objEvent.which; 
		}
		return keyCode != 13;
	}      
	
	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 toggleMenu(parent, control)
    {
      var obj = document.getElementById(parent);
      var obj_control = document.getElementById(control);

      if (obj.value == "0")
        obj_control.style.display = "block";
      else
        obj_control.style.display = "none";

      return true;
    }	
	
	function GotoSearch()
	{
		window.location.href = "/search.aspx?strSearch=" + document.getElementById("searchfield").value;
	}
	
	function PopupReturnValue(fromField, returnValue, hidField, hidValue)
	{
		if(fromField != "")
			opener.document.getElementById(fromField).value = returnValue;
		else
		{
			__doPostBack('contact1$lbtnEditContact','');
		}
		opener.document.getElementById(hidField).value = hidValue;
		window.close();
	}
	
	function SelectPopup(url)
	{
		var popup = window.open(url, "popup", "width=400,height=500,resizable=yes,scrollbars=yes");
		popup.focus();
	}
	
	var currentURL=document.location.href
	var lastSlashPosition=currentURL.lastIndexOf("/")
	var filename=currentURL.substring(lastSlashPosition+1, currentURL.length)
//-->
