function sendmail(form_name, form_phone, form_mail, form_subject, form_message) {
	strurl = "sendmail.php?n=" + form_name + "&p=" + form_phone + "&e=" + form_mail + "&s=" + form_subject + "&m=" + form_message;
	document.getElementById('mailform').innerHTML = '<img src="/img/loading.gif" />';
	var xmlHttpReq = false;
	var self = this;
	if (window.XMLHttpRequest) { self.xmlHttpReq = new XMLHttpRequest(); }
	else if (window.ActiveXObject) { self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); }
	self.xmlHttpReq.open('GET', strurl, true);
	self.xmlHttpReq.onreadystatechange=function() {
		if(self.xmlHttpReq.readyState == 4) {
			document.getElementById('mailform').innerHTML = self.xmlHttpReq.responseText;
		}
	}
	self.xmlHttpReq.send(null);
}
function showart(art_name) {
	strurl = "data/" + art_name + ".html";
	document.getElementById('content').innerHTML = '<img src="/img/loading.gif" />';
	var xmlHttpReq = false;
	var self = this;
	if (window.XMLHttpRequest) { self.xmlHttpReq = new XMLHttpRequest(); }
	else if (window.ActiveXObject) { self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); }
	self.xmlHttpReq.open('GET', strurl, true);
	self.xmlHttpReq.onreadystatechange=function() {
		if(self.xmlHttpReq.readyState == 4) {
			document.getElementById('content').innerHTML = self.xmlHttpReq.responseText;
		}
	}
	self.xmlHttpReq.send(null);
}
function showgal(gal_name) {
	strurl = "gallery.php?name=" + gal_name;
	document.getElementById('content').innerHTML = '<img src="/img/loading.gif" />';
	var xmlHttpReq = false;
	var self = this;
	if (window.XMLHttpRequest) { self.xmlHttpReq = new XMLHttpRequest(); }
	else if (window.ActiveXObject) { self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); }
	self.xmlHttpReq.open('GET', strurl, true);
	self.xmlHttpReq.onreadystatechange=function() {
		if(self.xmlHttpReq.readyState == 4) {
			document.getElementById('content').innerHTML = self.xmlHttpReq.responseText;
		}
	}
	self.xmlHttpReq.send(null);
}
function showvid(gal_name) {
	strurl = "videos/" + gal_name + ".html";
	document.getElementById('content').innerHTML = '<img src="/img/loading.gif" />';
	var xmlHttpReq = false;
	var self = this;
	if (window.XMLHttpRequest) { self.xmlHttpReq = new XMLHttpRequest(); }
	else if (window.ActiveXObject) { self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); }
	self.xmlHttpReq.open('GET', strurl, true);
	self.xmlHttpReq.onreadystatechange=function() {
		if(self.xmlHttpReq.readyState == 4) {
			document.getElementById('content').innerHTML = self.xmlHttpReq.responseText;
		}
	}
	self.xmlHttpReq.send(null);
}
function imgresize(which, max) {
	var elem = document.getElementById(which);
	if (elem == undefined || elem == null) return false;
	if (max == undefined) max = 510;
	elem.removeAttribute('width');
	elem.removeAttribute('height');
	if (elem.width > max) elem.width = max;
}
function imgchange(which, thenew) {
	var elem = document.getElementById(which);
	if (elem == undefined || elem == null || thenew == null) return false;
	elem.src = '/img/load2.gif';
	elem.src = thenew;
}
