<!--
adminConsole
	///////////////////////////////////////////////////////////////////////////////
	function adminConsole(){
		dojo.io.bind({
			url: 'idx_subscriber_console.php',
			content:{
				sessionName: sessionID
			},
			handler: fillContentCallback
		});	
		getMyProfile();
		getSavedSearchPage();
		getSavedListingsPage();
	}
	///////////////////////////////////////////////////////////////////////////////
	function manageClients(){
		dojo.io.bind({
			url: 'admin/idx_manage_clients.php',
			content:{
				sessionName: sessionID
			},
			handler: fillAdminCallback
		});	
	}
	///////////////////////////////////////////////////////////////////////////////
	function manageAgents(){
		dojo.io.bind({
			url: 'admin/idx_manage_agents.php',
			content:{
				sessionName: sessionID
			},
			handler: fillAdminCallback
		});	
	}
	///////////////////////////////////////////////////////////////////////////////
	function viewDeleted(){
		dojo.io.bind({
			url: 'admin/idx_view_deleted.php',
			content:{
				sessionName: sessionID
			},
			handler: fillAdminCallback
		});	
	}
	///////////////////////////////////////////////////////////////////////////////
	function deleteUser(rn){
		dojo.io.bind({
			url: 'admin/delete_user.php',
			content:{
				sessionName: sessionID,
				record_number: rn
			},
			handler: fillAdminCallback
		});	
	}
	///////////////////////////////////////////////////////////////////////////////
	function undeleteUser(rn){
		dojo.io.bind({
			url: 'admin/undelete_user.php',
			content:{
				sessionName: sessionID,
				record_number: rn
			},
			handler: fillAdminCallback
		});	
	}
	///////////////////////////////////////////////////////////////////////////////
	function viewUnassigned(){
		dojo.io.bind({
			url: 'admin/idx_view_unassigned.php',
			content:{
				sessionName: sessionID
			},
			handler: fillAdminCallback
		});	
	}
	///////////////////////////////////////////////////////////////////////////////
	function makeAgent(rn){
		dojo.io.bind({
			url: 'admin/make_agent.php',
			content:{
				sessionName: sessionID,
				record_number: rn
			},
			handler: fillAdminCallback
		});	
	}
	///////////////////////////////////////////////////////////////////////////////
	function makeAdmin(rn){
		dojo.io.bind({
			url: 'admin/make_admin.php',
			content:{
				sessionName: sessionID,
				record_number: rn
			},
			handler: fillAdminCallback
		});	
	}
	///////////////////////////////////////////////////////////////////////////////
	function makeClient(rn){
		dojo.io.bind({
			url: 'admin/make_client.php',
			content:{
				sessionName: sessionID,
				record_number: rn
			},
			handler: fillAdminCallback
		});	
	}
	///////////////////////////////////////////////////////////////////////////////
	function fillAdminCallback(type, data, evt) {
		var contentResults = dojo.widget.getWidgetById('admin');
		if (type == 'error'){
			alert('Error when retrieving data from the server!1');
		} else {
			contentResults.setContent(data);
		}
	}
	///////////////////////////////////////////////////////////////////////////////
	function assignAgent(rn){
		dojo.io.bind({
			url: 'admin/assign_agent.php',
			content:{
				sessionName: sessionID,
				record_number: rn
			},
			handler: openAssignAgentWindow
		});	
	}
	///////////////////////////////////////////////////////////////////////////////
	function removeAssign(rn){
		dojo.io.bind({
			url: 'admin/unassign_agent.php',
			content:{
				sessionName: sessionID,
				record_number: rn
			},
			handler: fillAdminCallback
		});	
	}
	///////////////////////////////////////////////////////////////////////////////
	function openAssignAgentWindow(type, data, evt) {
		// Configure DOJO window and DOM node
		var target;
		var properties = {
			hasShadow: true,
			displayMinimizeAction: false,
			displayMaximizeAction: true,
			displayCloseAction: true,
			executeScripts: true,
			constrainToContainer: false,
			style: "",
			title: "Assign Agent to Client",
			titleHeight: "20",
			id: "assignAgentWindowId"
		};
		var node = document.createElement("div");
		node.style.width = "400px";
		node.style.height = "400px";
		node.style.left = "50px";
		node.style.top = "50px";
		node.style.zIndex = 10;
		
		// Launch DOJO window
		document.body.appendChild(node);
		var emailWindow = dojo.widget.createWidget("FloatingPane",properties,node);
		target = dojo.widget.getWidgetById('assignAgentWindowId');   
		target.setContent(data);
	}









-->