function createRequestObject() { 
	var req; 
	if(window.XMLHttpRequest){ 
		req = new XMLHttpRequest(); 
	} else if(window.ActiveXObject) { 
		req = new ActiveXObject("Microsoft.XMLHTTP"); 
	} else { 
		alert('Problem creating the XMLHttpRequest object'); 
	} 
return req; 
} 
var http = createRequestObject(); 
	
function sendRequest_l(q) { 
	http.open('get', 'fotodiv_liggend.php?text=<?=$t ?>&foto='+q); 
	http.onreadystatechange = handleResponse_l; 
	http.send(null); 
} 
function handleResponse_l() { 
	if(http.readyState == 4 && http.status == 200){ 
		var response = http.responseText; 
		if(response) { 
			document.getElementById("fotodiv_liggend").innerHTML = response; 
		} 
	} 
}
	
function handleResponse_s() { 
	if(http.readyState == 4 && http.status == 200){ 
		var response = http.responseText; 
		if(response) { 
			document.getElementById("fotodiv_staand").innerHTML = response; 
		} 
	} 
}
function sendRequest_s(q) { 
	http.open('get', 'fotodiv_staand.php?text=<?=$t ?>&foto='+q); 
	http.onreadystatechange = handleResponse_s; 
	http.send(null); 
} 
	

function show_div(id){
	if (document.getElementById) { 
		document.getElementById(id).style.display = 'inline';
	} 
}
function hide_div(id){
	if (document.getElementById) { 
		document.getElementById(id).style.display = 'none';
	} 

}
function open_window(id){
	path = "sendcard.php?id="+id;
	neww = open(path, "","width=1000,height=700,scrollbars=yes");


}
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
    if (links[i].className == 'suppress') {
		alert('ja');
        links[i]._title = links[i].title;
        links[i].onmouseover = function() {
             this.title = '';
        }
        links[i].onmouseout = function() {
             this.title = this._title;
        }
    }
}
