		// ---------------------------------------------
		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 ExecuteSearch()
		{
		    with(document.forms[0])
		    {
		        PostActionRequest("execute-search");
		    }
		}

		//------------------------------------------------------------------
		function ShowAllStaffMembers()
		{
		    with(document.forms[0])
		    {
    	        PostActionRequest("execute-search");
		    }
		}
		
		//------------------------------------------------------------------
		function ViewStaffMember(staffMemberID)
        {

	        var tempform = document.createElement("FORM");
	        tempform.method="post";
	        tempform.action = "/about/team/memberdetail.aspx";
 	        tempform.name="ViewStaffMemberForm"; 
 	        tempform.id = "ViewStaffMemberForm";

	        createHiddenElement(tempform,"Action","get-staff-member");
	        createHiddenElement(tempform,"StaffMemberID",staffMemberID);

	        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('ViewStaffMemberForm').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");
	}