var e;

function whenLoading(){
}

function whenCompleted(){
}

function whenError(){
}

function fillMenu(){
	el = "fillmenu";
	e = document.getElementById(el);
	s = new sack();
	s.setVar('do', 'menu');
	s.requestFile = 'gcs.php';
	s.method = 'GET';
	s.element = el;
	s.onLoading = whenLoading;
	s.onLoaded = whenLoading;
	s.onInteractive = whenLoading;
	s.onCompletion = whenCompleted;
	s.onError = whenError;
	s.runAJAX();
}

function fillHeader(){
	el = "fillheader";
	e = document.getElementById(el);
	s = new sack();
	s.setVar('do', 'head');
	s.requestFile = 'gcs.php';
	s.method = 'GET';
	s.element = el;
	s.onLoading = whenLoading;
	s.onLoaded = whenLoading;
	s.onInteractive = whenLoading;
	s.onCompletion = whenCompleted;
	s.onError = whenError;
	s.runAJAX();
}

function fillFooter(){
	el = "fillfooter";
	e = document.getElementById(el);
	s = new sack();
	s.setVar('do', 'foot');
	s.requestFile = 'gcs.php';
	s.method = 'GET';
	s.element = el;
	s.onLoading = whenLoading;
	s.onLoaded = whenLoading;
	s.onInteractive = whenLoading;
	s.onCompletion = whenCompleted;
	s.onError = whenError;
	s.runAJAX();
}
