function resend(){
	if (window.XMLHttpRequest) {
		liveSearchReq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	var thetime= "?thetime="+new Date().getTime();
	liveSearchReq.open("GET","request_login.html"+thetime+"&fullname="+document.forms.requestform.fullname.value+"&email="+document.forms.requestform.email.value,false);
	liveSearchReq.send(null);

	if (liveSearchReq.readyState == 4) {
		var  res = document.getElementById("response");
		res.innerHTML = liveSearchReq.responseText;
	}
}


function remove(id){
	if (window.XMLHttpRequest) {
		liveSearchReq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	var thetime= "?thetime="+new Date().getTime();
	liveSearchReq.open("GET","remove.html"+thetime+"&id="+id,false);
	liveSearchReq.send(null);

	if (liveSearchReq.readyState == 4) {
		document.location.href='http://www.nacoservices.com/caravanlist.html';
	}
}


function showemail(){
	if (window.XMLHttpRequest) {
		liveSearchReq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	var thetime= "?thetime="+new Date().getTime();
	liveSearchReq.open("GET","add_email.html"+thetime,false);
	liveSearchReq.send(null);

	if (liveSearchReq.readyState == 4) {
		var  res = document.getElementById("emailine");
		res.innerHTML = liveSearchReq.responseText;
	}
}


function nothanks(){
	var  res = document.getElementById("ploitenote");
	res.innerHTML = '';
}


function addaddy(){
	if (window.XMLHttpRequest) {
		liveSearchReq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	var thetime= "?thetime="+new Date().getTime();
	liveSearchReq.open("GET","add_email.html"+thetime+"&email="+document.forms.addemail.theemail.value,false);
	liveSearchReq.send(null);

	if (liveSearchReq.readyState == 4) {
		var  res = document.getElementById("emailine");
		res.innerHTML = liveSearchReq.responseText;
	}
}

function findemall(){
	if (window.XMLHttpRequest) {
		liveSearchReq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	var thetime= "?thetime="+new Date().getTime();
	var thestring='';
	
	try {
		if (document.forms.searchform.model.value) {
			var thestring = thestring+"&model="+document.forms.searchform.model.value
		}
	} catch (err) {}
	try {
		if (document.forms.searchform.price.value) {
			var thestring = thestring+"&price="+document.forms.searchform.price.value
		}
	} catch (err) {}
	try {
		if (document.forms.searchform.crit.value) {
			var thestring = thestring+"&crit="+document.forms.searchform.crit.value
		}
	} catch (err) {}
	try {
		if (document.forms.searchform.county.value) {
			var thestring = thestring+"&county="+document.forms.searchform.county.value
		}
	} catch (err) {}	
	
	liveSearchReq.open("GET","find_matches.html"+thetime+thestring,false);
	liveSearchReq.send(null);

	if (liveSearchReq.readyState == 4) {
		var  res = document.getElementById("results");
		res.innerHTML = liveSearchReq.responseText;
	}
}


function checknumeric(){
	if (window.XMLHttpRequest) {
		liveSearchReq = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP");
	}
	var thetime= "?thetime="+new Date().getTime();
	liveSearchReq.open("GET","checknumeric.html"+thetime+"&theval="+document.forms.addform.price.value,false);
	liveSearchReq.send(null);

	if (liveSearchReq.readyState == 4) {
		var  res = document.getElementById("info");
		res.innerHTML = liveSearchReq.responseText;
	}
}