//copy from the iqoqi.at website:
//http://www.iqoqi.at/scripts/blocking.js

function blocking(nr) {
	if (document.layers) {
		current = (document.layers[nr].display == 'none') ? 'block' : 'none';
		document.layers[nr].display = current;
	} else if (document.all) {
		current = (document.all[nr].style.display == 'none') ? 'block' : 'none';
		document.all[nr].style.display = current;
	} else if (document.getElementById) {
		vista = (document.getElementById(nr).style.display == 'none') ? 'block'
				: 'none';
		document.getElementById(nr).style.display = vista;
	}
}

/*
var xmlhttp;

function showTalk1(id,field) {

	xmlhttp = GetXmlHttpObject();
	if (xmlhttp == null) {
		alert("Browser does not support HTTP Request");
		return;
	}
	var url = "?to=60";
	url = url + "&q=" + id;
	url = url + "&sid=" + Math.random();
	//alert (field);
	//xmlhttp.onreadystatechange = stateChanged(field);
	xmlhttp.onreadystatechange = function() {
		if (xmlhttp.readyState == 4) {
			document.getElementById(field).innerHTML = xmlhttp.responseText;
		}
	}
	xmlhttp.open("GET", url, true);
	xmlhttp.send(null);
}

function stateChanged(obj) {
	//alert(xmlhttp.readyState);
	alert(xmlhttp.readyState);
	if (xmlhttp.readyState == 4) {
		document.getElementById(obj).innerHTML = xmlhttp.responseText;
	}
}

function GetXmlHttpObject() {
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
		return new XMLHttpRequest();
	}
	if (window.ActiveXObject) {
		// code for IE6, IE5
		return new ActiveXObject("Microsoft.XMLHTTP");
	}
	return null;
}

function showAll() {
	//alert("test");
	var field;
	for (var i = 1; i <=10; i++) {
		field = "txtHint"+i;		
		showTalk(i,field);
		alert(field+" "+i);
		field="";
	}
}

function hideTalk(field) {
	document.getElementById(field).innerHTML = "talk info...";
}
*/
