﻿// client side customisers

// this will get overwritten by coordClient when cord is loaded - hence its script include must appear BEFORE the real coordclient in any .htm 
var coordClient = new function()
{
	this.hierarchy = function() { return invoke("action=hierarchy")	}
	this.statistics =  function(){ return invoke("action=statistics") }
	this.labels = function(){ return invoke("action=labels") }
	this.load = function(filename){ return invoke("action=load&filename=" + escape(filename) ) } // technicall should not get here
	this.openManagers = function() { return invoke("action=openManagers") }
	
	function invoke(action)
	{
		window.location.href=rootDir+"/coord/coord.asp?"+action;
		return false;
	}
}

