function readPage(keyPage, jsNum, wtf) {
    // Use AJAX to load other pages
    var pageContent;
	// Check if the browser knows the standard request
    if(window.XMLHttpRequest) {
        // Mozilla etc
        pageContent = new XMLHttpRequest();
    // If it does not know the standard object, check if
    // it knows the activeX object.
    } else if(window.ActiveXObject) {
        // Internet Explorer 6
        pageContent = new ActiveXObject("Microsoft.XMLHTTP");            
    // It doesn't know any, so give an error    
    } else {
        alert('Browser doesn\'t support AJAX');
    }    // Open the file
	if(wtf==1){var path = document.getElementById('path').value;}
	if(wtf==2){var url = document.getElementById('url').value;}
	if(wtf==3){var contentid = document.getElementById('contentid').value;var contenttype = document.getElementById('contenttype').value;var name = document.getElementById('name').value;var comment = document.getElementById('comment').value;}
	var rand_num=Math.floor(Math.random()*1000);
	pageContent.onreadystatechange = StateChange;
    pageContent.open('GET', keyPage + '&url=' + url + '&contentid=' + contentid + '&contenttype=' + contenttype + '&name=' + name + '&comment=' + comment + '&unique_num=' + rand_num, true);
    pageContent.send(null);
    // Listen for a change state
    function StateChange() {
        // The state is changed, but is it 4?
		var doLoading = ' &nbsp; ';
        if(pageContent.readyState == 1 || pageContent.readyState == 2 || pageContent.readyState == 3) {
            document.getElementById('ajaxCol'+jsNum).innerHTML = doLoading;
        }
        if(pageContent.readyState == 4) {
            // yeah the state is 4; we can now use the response text!
            // I will save it in a division with the id "ajaxCol"
            document.getElementById('ajaxCol'+jsNum).innerHTML = pageContent.responseText;
        }
    }
}
