function startLoad($source) {
req = new XMLHttpRequest();
req.open('GET', $source, true);
req.onreadystatechange=finishLoad;
req.send(null);
}
function finishLoad() {
if (req.readyState==4) { // request is done
if (req.status==200) { // "OK"
var prefix = '';
if (window.event.ctrlKey) {
document.test.control.value = 'true';
}else{
if(document.getElementById(divid).style.display == 'none'){
document.getElementById(divid).style.display = 'block';
document.pageLoading.TCallLabel('/','restart_function');
}else{
document.getElementById(divid).style.display = 'none';
}
}
//var response = req.responseXML;
// var target = document.getElementById('foo');
// for (var i=0; i link
|