
/* 
I'm controlling most clicks with this function. Since there are no traditional submit
buttons, I need to submit with js. Before I do, I set a hidden form field to the URL so it
passes to the switchboard.php. 

On switchboard.php, I set (or reset) any session variables, and 
then redirect them on to where they were trying to go.

Every form on the site is named "appForm".
*/
function send(url) {
	if (document.appForm) {
		document.appForm.urlToGo.value = url;
		document.appForm.submit();
	} else {
		window.location = url;
	}
}