function loadurl(dest) {
	if (formtest.keywords.value.length>=3) {
		try {  
			xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
			new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (e) {
		   // browser doesn't support ajax. handle however you want
		}	 
		xmlhttp.onreadystatechange = triggered; 
		xmlhttp.open("GET", dest);
		xmlhttp.send(null); 
	}
}
function loadurlcity(dest,topcity) {
	try {
		xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
		new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch (e) {
	   // browser doesn't support ajax. handle however you want
	}	 
	xmlhttp.onreadystatechange = triggered2; 
	xmlhttp.open("GET", dest);
	xmlhttp.send(null); 
	var str=topcity;
	var str2=str.split(",");	
	newvar='document.topform.toplocation.value="' + str2[0] + ',' + str2[1] + '"'
	eval(newvar);
}
function triggered2() {
	if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
	}
}
function triggered() {
	if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
		document.getElementById("output").innerHTML = xmlhttp.responseText;
	}
}
function loadurlsv(dest) {
	try {  
		xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
		new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch (e) {
	   // browser doesn't support ajax. handle however you want
	}	 
	xmlhttp.onreadystatechange = triggeredsv; 
	xmlhttp.open("GET", dest);
	xmlhttp.send(null); 
}
function triggeredsv() {
	if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
		document.getElementById("outputsv").innerHTML = xmlhttp.responseText;
	}
}
function loadcaptcha(dest,t_id) {
	var thisLevel = document.getElementById( t_id );
	try {  
		xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
		new ActiveXObject("Microsoft.XMLHTTP");
	}
	catch (e) {
	// Your browser does not support remote scripting.
	}
	xmlhttp.onreadystatechange = triggeredcaptcha;
	xmlhttp.open("GET", dest);
	xmlhttp.send(null); 
}
function triggeredcaptcha() {
	if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
		document.getElementById("outputcaptcha").innerHTML = xmlhttp.responseText;
	}
}
function onw(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
function CheckRememberMe() {
	if (document.topform.RememberMe.checked==false) {
		try {  
			xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
			new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (e) {
			// browser doesn't support ajax. handle however you want
		}	 
		xmlhttp.onreadystatechange = triggeredme;
		xmlhttp.open("GET", "unload.asp");
		xmlhttp.send(null);
	} else {
		try {  
			xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
			new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (e) {
			// browser doesn't support ajax. handle however you want
		}	 
		xmlhttp.onreadystatechange = triggeredme2;
		xmlhttp.open("GET", "load.asp");
		xmlhttp.send(null);
	}
}
function triggeredme() {
	if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
		location.reload();
	}
}
function triggeredme2() {
	if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
		//location.reload();
	}
}
