// JavaScript Document
var xmlHttp;

function GetXmlHttpObject( handler ) {
var objXmlHttp = null;
if (navigator.userAgent.indexOf("Opera") >= 0) {
alert ("Opera is not supported i guess... use FF");
return;
}
if (navigator.userAgent.indexOf("MSIE") >= 0) {
var strName = "Msxml2.XMLHTTP"
if (navigator.appVersion.indexOf("MSIE 5.5") >= 0) {
strName = "Microsoft.XMLHTTP";
}

try {
objXmlHttp = new ActiveXObject(strName)
objXmlHttp.onreadystatechange = handler;
return objXmlHttp;
} catch(e) {
alert("Error. Scripting for ActiveX might be disabled");
return;
}
}

if (navigator.userAgent.indexOf("Mozilla") >= 0 ) {
objXmlHttp = new XMLHttpRequest();
objXmlHttp.onload = handler;
objXmlHttp.onerror = handler;
return objXmlHttp;
}
} 


function helling_algemeen(id) {
document.getElementById("hellinguitleg").style.height = "";
var url = "../requests/big_algemeen.php?id="+id+"&math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function helling_topo(id) {
document.getElementById("hellinguitleg").style.height = "";
var url = "../requests/big_topo.php?id="+id+"&math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function helling_kaart(id) {
document.getElementById("hellinguitleg").style.height = "";
var url = "../requests/big_kaart.php?id="+id+"&math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function helling_users(id) {

var url = "../requests/helling_users.php?id="+id+"&math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function helling_description(id) {

var url = "../requests/big_description.php?id="+id+"&math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}


function helling_profiel(id) {
document.getElementById("hellinguitleg").style.height = "";
var url = "../requests/big_profielen.php?id="+id+"&math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function helling_fotos(id) {
document.getElementById("hellinguitleg").style.height = "";
var url = "../requests/big_fotos.php?id="+id+"&math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}


function user_algemeen(id) {
var url = "../requests/user_algemeen.php?id="+id+"&math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}
function user_hellingen(id) {
var url = "../requests/user_hellingen.php?id="+id+"&math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}
function user_overzicht(id) {
var url = "../requests/user_overzicht.php?id="+id+"&math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function user_overzicht_vorige(id) {
var url = "../requests/user_overzicht.php?actie=2&id="+id+"&math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function beheer_user_claims() {
var url = "../requests/beheer_user_claims.php?math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function beheer_user_hellingen() {
var url = "../requests/beheer_user_hellingen.php?math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}
function superlista_list(start) {
var url = "../requests/superlista_list.php?math="+Math.random()+"&id="+start;
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function fototonen(id,bignr) {
var url = "../requests/big_foto_tonen.php?math="+Math.random()+"&id="+id+"&bignr="+bignr;
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}
function fotoprofieltonen(id) {
var url = "../requests/big_fotoprofiel_tonen.php?math="+Math.random()+"&id="+id;
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}
function foto_edit(id) {
var url = "../requests/foto_edit.php?math="+Math.random()+"&id="+id;
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function foto_update(newbig,comment,id) {
var url = "../requests/foto_update.php?math="+Math.random()+"&id="+id+'&comment='+comment+'&newbig='+newbig;
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}
function foto_delete(id) {
var answer = confirm("Delete this picture?")
if (answer) {
var url = "../requests/foto_delete.php?math="+Math.random()+"&id="+id;
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
} else {
}
}
function checkuser(user) {
var url = "../requests/usernamecheck.php?math="+Math.random()+"&user="+user;
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('user').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function startedit(id) {
var url = "../requests/admin_edit_algemeen.php?math="+Math.random()+"&id="+id;
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('bigeditinhoud').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function changeroadsign(id) {
var url = "../requests/admin_roadsign.php?math="+Math.random()+"&id="+id;
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('bigeditinhoud').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function helling_timer(id) {

var url = "../requests/big_timer.php?id="+id+"&math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}
function claims() {
var url = "../requests/claims.php?math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}

function edit_claim() {
var url = "../requests/editclaims.php?math="+Math.random();
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) {
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}


function removeclaim(user,bigid) {
var url = "../requests/removeclaim.php?math="+Math.random()+"&bigid="+bigid+"&user="+user;
xmlHttp2 = GetXmlHttpObject( function div_paginatitelslijst() {
if (xmlHttp2.readyState == 4 || xmlHttp2.readyState == "complete") {
if ( xmlHttp2.status == 200 ) { 
document.getElementById('hellinguitleg').innerHTML = xmlHttp2.responseText;
} else alert ( xmlHttp2.statusText );
}
} );
xmlHttp2.open("GET", url , true);
xmlHttp2.send( null );
}