function getHTML(url,vars,elementID)
	{
		
		var myAjax = new Ajax.Updater( elementID, url, { method: 'get', parameters: vars });

	}

function getURL(url) {

	document.location.href=url;

}

function addNext(elementName,currentID) {

	document.getElementById(elementName+(currentID+1)).style.display="block";
	document.getElementById(elementName+(currentID+1)).focus;

}

function addNextF(elementName,currentID) {

	var curID = document.getElementById(elementName+(currentID+1));
	curID.className = curID.className.replace("hidden", "");
	document.getElementById(elementName+(currentID+1)).focus;


}

function updateEvents() {

	

}

function deleteEvent(eventID) {

	if(confirm("Are you sure you wish to delete this Event?")) {
	
		getURL("director.php?action=eventadmin&delete=t&eid="+eventID);
	
	}

}

function getURL(url) {

	document.location.href=url;

}

<!-- Begin
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);

function doPic(imgName) {

	if (ns3up || ie4up) {
	
		imgOn = ("" + imgName);
		document.mainpic.src = imgOn;

	}

}
//  End -->

function setBehaviours() {

	var editAd=true;

	var myrules = {
		'#adDisplay tr.results' : function(element){
			element.onmouseover = function(){
				this.style.backgroundColor="#ffdddd";
			}
			element.onmouseout = function(){
				this.style.backgroundColor="#ffffff";
			}
			element.onclick = function(){
				if(editAd) {
			
					this.style.backgroundColor="#ffbbbb";
					getURL("director.php?action=ad_edit&adid="+this.id.substring(2));
				
				} else { editAd=true; }
			
			}
	
		},'#adDisplay td a.deleteButton' : function(element){

			element.onclick=function(){
		
				if(confirm("Are you sure you wish to delete this ad?")) { return true; } else { editAd=false; return false; }
		
			}
		}
	};
	
	Behaviour.register(myrules);
	
}

function newWindow(url,popupName,width,height,scrollbars) {

	window.open(url,popupName,"width="+width+",height="+height+",scrollbars="+scrollbars+",titlebar=no,status=no");

}

function externalLink(id){
	
 	callPage('/include/php/write_click.php?flag=t&id='+id);
 	//alert(id);
 	pageTracker._trackPageview('/listings_goal.php?id='+id);
 	//alert("works");
}
