	var elementid;
	
	function loadXMLDoc(url,eid) {
		elementid=eid;
		
		if (window.XMLHttpRequest) {
			xmlhttp=new XMLHttpRequest()
			xmlhttp.onreadystatechange=state_Change
			xmlhttp.open("GET",url,true)
			xmlhttp.send(null)
		} else if (window.ActiveXObject) {
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
			if (xmlhttp) {
				xmlhttp.onreadystatechange=state_Change
				xmlhttp.open("GET",url,true)
				xmlhttp.send()
			}
		}
	}

	function state_Change() {
		if (xmlhttp.readyState==4) {
			if (xmlhttp.status==200) {
				document.getElementById(elementid).innerHTML=xmlhttp.responseText
			}
		}
	}

	var pos;

	function loadXMLPosDoc(url,posData) {
		if (window.XMLHttpRequest) {
			pos = new XMLHttpRequest();
			pos.open("POST", url, false);
			pos.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
			pos.send(posData);
		} else if (window.ActiveXObject) {
			pos = new ActiveXObject("Microsoft.XMLHTTP");

			if (pos) {
				pos.open("POST", url, false);
				pos.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
				pos.send(posData);
			}
		}
	}

	function newWindow(url,id,h,w) {
		window.open(url,id,'width='+w+',height='+h+',resizable=no,scrollbars=yes,toolbar=no,location=no,status=1') 
	}

	function swapImg() {
		var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
		n+=2) { elm=getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
		elm.$src=elm.src; elm.src=args[n+1]; } }
	}

	function preloadImgs() {
		var d=document,a=arguments; if(!d.imgs) d.imgs=new Array();
		for(var i=0; i<a.length; i++) { d.imgs[i]=new Image; d.imgs[i].src=a[i]; }
	}

	function getObjectByID(id,o) {
		var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
		else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
		if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
		for(n=0; n<c.length; n++) { el=getObjectByID(id,c[n]); if(el) return el; }
		f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
		for(m=0; m<els.length; m++){ el=getObjectByID(id,els[n]); if(el) return el; } }
		return null;
	}

	function swapImgRestore() {
		var doc=document,i; if(doc.$imgSwaps) { for(i=0;i<doc.$imgSwaps.length;i++) {
		var elm=doc.$imgSwaps[i]; if(elm) { elm.src=elm.$src; elm.$src=null; } } 
		doc.$imgSwaps=null; }
	}
