function kontakt(action, subject)
  {
  F1 = window.open("index.php?action=" + action + "&subject=" + subject, "_blank", "toolbar=0,location=0,directiories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=420");
  }
function pic()
  {
  F2 = window.open("pic.html", "_blank", "toolbar=0,location=0,directiories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=506");
  F2.innerHeight = 506;
  F2.innerWidth  = 300;
  }
  
var xmlHttp = null;
function special(SID) {
	xmlHttp = GetXmlHttpObject();
	if (xmlHttp == null) {
		return;
	}
	var url = '/special_images/?SID=' + SID + '&x=' + Math.random();
	xmlHttp.onreadystatechange = function() { special2(); }
	xmlHttp.open('GET', url, true);
	xmlHttp.send(null);
}
function special2() {
	if (xmlHttp.readyState == 4 || xmlHttp.readyState == 'complete') {
		document.getElementById('kf_special').innerHTML = xmlHttp.responseText;
	}
}
function GetXmlHttpObject() { 
	var objXMLHttp = null;
	if (window.XMLHttpRequest) {
		objXMLHttp = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
	}
	return objXMLHttp;
}
function gotoEvent(id, SID) {
	window.document.location.href = "/pages/vi.php?SID=" + SID + "&vid=" + id;
}
function blowup(img) {
	F3 = window.open("blowup.php?img=" + img, "_blank", "toolbar=0,location=0,directiories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=300,height=506");
	F3.focus();
}
function resizeToImg(imgId) {
	self.resizeTo(window.document.getElementById(imgId).width + 8, window.document.getElementById(imgId).height + 50);
}
function clearInput(input, text) {
	if (input.value == text) {
		input.value = '';
	}
}