/*
FILE ARCHIVED ON 7:37:28 Jan 16, 2009 AND RETRIEVED FROM THE
AN OPENWAYBACK INSTANCE ON 19:25:35 Aug 19, 2024.
JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE.
ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
SECTION 108(a)(3)).
*/
function createXMLHttpRequest() {
var ua;
if(window.XMLHttpRequest) {
try {
ua = new XMLHttpRequest();
} catch(e) {
ua = false;
}
} else if(window.ActiveXObject) {
try {
ua = new ActiveXObject("Microsoft.XMLHTTP");
} catch(e) {
ua = false;
}
}
return ua;
}
var req = createXMLHttpRequest();
function checkImage(txt) {
req.open('get', 'https://webarchive.library.unt.edu/eot2008/20090116073728/http://www.ksda.gov/includes/others/img_validation.php?txt=' + txt);
req.onreadystatechange = handleCheckImageResponse;
req.send(null);
}
function handleCheckImageResponse() {
if(req.readyState == 4){
var response = req.responseText;
if(response=="true"){
document.getElementById('imgvalidation').value = "true";
document.getElementById('valid').innerHTML = "
";
}else{
document.getElementById('imgvalidation').value = "";
document.getElementById('valid').innerHTML = "
";
}
}
}
function sendRequest(gelem, id, glp) {
document.getElementById("textcontent").innerHTML = "
![Loading](/images/ajax-loader.gif) | Loading... |
"
var url, curr_url;
curr_url = location.href;
split_url = curr_url.split('https://webarchive.library.unt.edu/eot2008/20090116073728/http://www.ksda.gov/');
// if(split_url.length>1 && split_url[1]!=''){
// split_filter = split_url[1].split('/');
//
// url = "https://webarchive.library.unt.edu/eot2008/20090116073728/http://www.ksda.gov/includes/others/ajaxportal.php?cid=" + id + "&elem="+ gelem + "&glp="+ glp + "&filter=" + split_filter[0] ;
// }
// else
url = "https://webarchive.library.unt.edu/eot2008/20090116073728/http://www.ksda.gov/includes/others/ajaxportal.php?id=" + id + "&elem="+ gelem + "&glp="+ glp;
// url.replace("?txt=true","");
// url.replace("&txt=true","");
// url.replace("?img=true","");
// url.replace("&img=true","");
//alert(url);
req.open('get', url );
req.onreadystatechange = handleResponse;
req.send(null);
}
function sendRequest2(gelem, id, glp) {
document.getElementById("textcontent").innerHTML = "![Loading](/images/ajax-loader.gif) | Loading... |
"
var url, curr_url;
curr_url = location.href;
split_url = curr_url.split('https://webarchive.library.unt.edu/eot2008/20090116073728/http://www.ksda.gov/');
// if(split_url.length>1 && split_url[1]!=''){
// split_filter = split_url[1].split('/');
//
// url = "https://webarchive.library.unt.edu/eot2008/20090116073728/http://www.ksda.gov/includes/others/ajaxportal2.php?cid=" + id + "&elem="+ gelem + "&glp="+ glp + "&filter=" + split_filter[0] ;
// }
// else
url = "https://webarchive.library.unt.edu/eot2008/20090116073728/http://www.ksda.gov/includes/others/ajaxportal2.php?id=" + id + "&elem="+ gelem + "&glp="+ glp;
// url.replace("?txt=true","");
// url.replace("&txt=true","");
// url.replace("?img=true","");
// url.replace("&img=true","");
//alert(url);
req.open('get', url );
req.onreadystatechange = handleResponse;
req.send(null);
}
function handleResponse() {
if(req.readyState == 4){
var response = req.responseText;
var update = new Array();
//alert("loading" + response);
if(response.indexOf('||' != -1)) {
update = response.split('||');
document.getElementById(update[0]).innerHTML = update[1];
}
}
}