function editEvent( eventId, aDate, what ) {	var NS = ( document.layers ) ? 1 : 0;	var IE = ( document.all ) ? 1 : 0;	var url = String( window.location.pathname );	var ix = url.indexOf( '$' );	if ( ix > 0 ) { url = url.slice( 0, ix ) };	if ( url[ url.length - 1 ] != "/" ) { url = url + "/"; }	url = url + "event_" + what + "$event=" + eventId + "&date=" + aDate;	var winwidth = 600;	var winheight = 400;	if (NS) {		var newWin = window.open( url,"Edit_Event","toolbar=0,directories=0,menubar=1,location=0,scrollbars=0,status=1,resizable=1,width=" + winwidth +",height=" + winheight + "\"" );		}	else if (IE) {		var newWin = window.open( "","Edit_Event","toolbar=0,directories=0,menubar=1,location=0,scrollbars=0,status=1,resizable=1,width=" + winwidth +",height=" + winheight + "\"" );		newWin.document.write( "<META HTTP-EQUIV='refresh' CONTENT='0; URL=" + url + "'>" );		newWin.document.write( " " );		newWin.document.close( );		}	}function setStatus( eventId, what ) {	if ( !eventId ) {		window.status = "Click to add an event";		}	else {		window.status = "Click to " + what + " the event " + eventId;		}	return true;	}function clearStatus( ) {	window.status = "";	return true;	}
