<!--
		function AddLoadEvent(func) {
			var oldonload = window.onload;
			if (typeof window.onload != 'function') {
				window.onload = func;
			} else {
				window.onload = function() {
				if (oldonload) {
					oldonload();
				}
				func();
				}
			}
		}
		function addLoadEvent(func) {
			var oldonload = window.onload;
			if (typeof window.onload != 'function') {
				window.onload = func;
			} else {
				window.onload = function() {
					oldonload();
					func();
				}
			}
		}

		function addUnLoadEvent(func) {
			var oldonunload = window.onunload;
			if (typeof window.onunload != 'function') {
				window.onunload = func;
			} else {
				window.onunload = function() {
					oldonunload();
					func();
				}
			}
		}
		
		function confirmDelete() {
			if (confirm("Are you sure you wish to delete this?"))
				return true ;
			else {
				return false ;
			}
		}
		function confirmAdd() {
			if (confirm("Are you sure you wish to add this to the sent list?"))
				return true ;
			else {
				return false ;
			}
		}
		function confirmUndo() {
			if (confirm("Are you sure you wish to undo all changes made?"))
				return true ;
			else {
				return false ;
			}
		}
		function confirmShow() {
			if (confirm("Are you sure you wish to show all?"))
				return true ;
			else {
				return false ;
			}
		}
		function confirmHide() {
			if (confirm("Are you sure you wish to hide all?"))
				return true ;
			else {
				return false ;
			}
		}
		function confirmEmailSend() {
			if (confirm("Are you sure you wish to send the email?"))
				return true ;
			else {
				return false ;
			}
		}		function global_hide(arr){
			for (var x = 0; x < arr.length; x++) {
				if (document.getElementById(arr[x])) {
					document.getElementById(arr[x]).style.display = "none";
				}
				if (document.getElementById(arr[x]+'_link')) {
					document.getElementById(arr[x]+'_link').className = "";
				}
			}		}		function blockshowhide(div){
			if (document.getElementById(div)) {
				var el = document.getElementById(div)
				if (el.style.display == "none") {
					el.style.display = "block";
				} else {
					el.style.display = "none";
				}
			}		}		
		function Slide(isleft, div, increm, limitleft, limitright) {
			var leftbutton = "/images/buttons/market-left.gif";
			var rightbutton = "/images/buttons/market-right.gif";
			var leftbutton_off = "/images/buttons/market-left-off.gif";
			var rightbutton_off = "/images/buttons/market-right-off.gif";
			var alttag = "Click to scroll through the Cheffins new to the market properties";
			var imageleftid = "marketleft";
			var imagerightid = "marketright";			
			var marginleft = document.getElementById(div).style.marginLeft
			marginleft.replace(/px/,"");
			document.getElementById(imageleftid).src = leftbutton;
			document.getElementById(imageleftid).alt = alttag;
			document.getElementById(imagerightid).src = rightbutton;
			document.getElementById(imagerightid).alt = alttag;
			
			if (marginleft == "") {marginleft = "0";}
			
			if(isleft){
				if((parseInt(marginleft)+increm) > limitleft) {
					marginleft = limitleft;
				}
				else {
					marginleft = parseInt(marginleft) + increm;
				}
			}
			else {
				if((parseInt(marginleft)-increm) < limitright) {
					marginleft = limitright;
				}
				else {
					marginleft = parseInt(marginleft) - increm;
				}
			}
			if(parseInt(marginleft) >= limitleft) {
				document.getElementById(imageleftid).src = leftbutton_off;
				document.getElementById(imageleftid).alt = "";
			}
			if(parseInt(marginleft) <= limitright) {
				document.getElementById(imagerightid).src = rightbutton_off;
				document.getElementById(imagerightid).alt = "";
			}
            document.getElementById(div).style.marginLeft = marginleft + "px";
		}				function ajaxObject(Url, CallBackFunction, LoadingFunction) {
			var that = this;
			this.Updating = false;
			  
			this.abort = function() {
				if (that.updating) {
				that.Updating = false;
				that.AJAX.abort();
				that.AJAX = null;
				}
			}
			  
			this.Update = function(PassData, PostMethod) {
				if (that.Updating) {
				return false;
				}
				that.AJAX = null;
				if (window.XMLHttpRequest) {
				that.AJAX = new XMLHttpRequest();
				} else {
				that.AJAX = new ActiveXObject("Microsoft.XMLHTTP");
				}
				if (that.AJAX == null) {
				return false;
				} else {
				that.AJAX.onreadystatechange = function() {
					if (that.AJAX.readyState == 4) {
					that.Updating = false;
					that.CallBack(that.AJAX.responseText, that.AJAX.status, that.AJAX.responseXML);
					that.AJAX = null;
					} else {
					that.Loading();
					}
				}
				that.Updating = new Date();
				if (/post/i.test(PostMethod)) {
					var Uri = UrlCall + '?' + that.Updating.getTime();
					that.AJAX.open("POST", Uri, true);
					that.AJAX.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
					that.AJAX.setRequestHeader("Content-Length", PassData.length);
					that.AJAX.send(PassData);
				} else {
					var Uri = UrlCall + '?' + PassData + '&timestamp=' + (that.Updating.getTime());
					that.AJAX.open("GET", Uri, true);
					that.AJAX.send(null);
				}
				return true;
				}
			}
			  
			var UrlCall = Url;
			this.Loading = LoadingFunction || function () {};
			this.CallBack = CallBackFunction || function () {};
		}//-->