		// ---------------------------------------------
		function PostActionRequest(action, target)
		{
			//postback event handling
			var objectTargetContainer = document.getElementById(objectTargetContainerName);
			objectTargetContainer.value = target;
			var postBackEventCall = postBackEventReferenceTemplate.replace(/javascript\:/i,"").replace(/\[action\]/gi,action);
			eval(postBackEventCall);
		}
		
		//---------------------------------------------------------------------------------------------------------
        function button_msover(anImage)
        {
	        with(anImage) src = src.replace(".gif","_ms.gif");
        } 

        //---------------------------------------------------------------------------------------------------------
        function button_msout(anImage)
        {
	        with(anImage) src = src.replace("_ms.gif",".gif");
        }
				
		//------------------------------------------------------------------
		function Replace( astring, findstr, replacestr)
		{
			return astring.split(findstr).join(replacestr);
		}		
	
	
		//------------------------------------------------------------------
		function GetMonthEvents( selectObj )
		{
   	        PostActionRequest("get-monthly",selectObj.options[selectObj.selectedIndex].value);
		}
					
		//------------------------------------------------------------------
		function ViewEvent( EventItemID )
		{
   	        PostActionRequest("get-event",EventItemID);
		}
					
			
		//------------------------------------------------------------------
		function ReadSelection( aselect )
		{
			var anarray = [];
			with (aselect) 
				for(var i=0;i<options.length;i++) 
					if((options[i].selected)&&(options[i].value)) 
						anarray[anarray.length]=i;
			return anarray;
		}


		//------------------------------------------------------------------
        function ViewEvent_CrossPost(eventItemID,targetPage)
        {

	        var tempform = document.createElement("FORM");
	        tempform.method="post";
	        tempform.action = targetPage;
 	        tempform.name="ViewEventForm"; 
 	        tempform.id = "ViewEventForm";

	        createHiddenElement(tempform,"Action","get-event");
	        createHiddenElement(tempform,"EventItemID",eventItemID);

	        document.body.appendChild(tempform);

 	        // Bit o IE bug fixin'
 	        if(navigator.appVersion.indexOf("MSIE") != -1) 
	        {
    		        // Fixes the name issue, event handling, and rendering bugs!
		        document.body.innerHTML =document.body.innerHTML;
	        }

	        document.getElementById('ViewEventForm').submit();
        }

		//------------------------------------------------------------------
        function createNewElement(parentForm, elementType, elementName, elementValue)
        {
	        var newElement = document.createElement("INPUT");
	        newElement.type=elementType;
 	        newElement.setAttribute('value', elementValue)
 	        newElement.setAttribute('Name', elementName)
 	        newElement.style.display = 'block'
	        parentForm.appendChild(newElement) ;
	        return newElement;
        }

		//------------------------------------------------------------------
        function createHiddenElement(parentForm, elementName, elementValue)
        {
	        return createNewElement(parentForm,"hidden",elementName, elementValue);
        }

		//------------------------------------------------------------------
        function createSubmitElement(parentForm)
        {
	        return createNewElement(parentForm,"submit","submit", "submit");
        }

