function changenav(x)
{
x = (x.nodeName == "IMG") ? x.parentNode.parentNode : x.parentNode
a = document.getElementById("selec")
a.id = ""
x.id = "selec"
}

function formSubmit(x,event)
{
var btp = event.offsetX ? "IE" : "OTH";
document.getElementById('greet').value = x.value;
document.getElementById('btypeid').value = btp;
document.forms[0].submit();
}

function nl(y)
{
window.location = "#"+y
}

function make_request(url,y,x) {
var y; var http_request = false;
if (window.XMLHttpRequest) { // Mozilla, Safari, ...
http_request = new XMLHttpRequest();
if (http_request.overrideMimeType) {
http_request.overrideMimeType('text/xml');
// See note below about this line
}
} else if (window.ActiveXObject) { // IE
try {
http_request = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
http_request = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!http_request) {
alert('Giving up :( Cannot create an XMLHTTP instance');
return false;
}
theDate = new Date(); url = url+"&tid="+theDate.getTime()
http_request.onreadystatechange = function() { getContents(http_request,y,x); };
http_request.open('GET', url, true);
http_request.send(null);
}
function getContents(http_request,y,x) {
if (http_request.readyState == 4) {
if (http_request.status == 200) {
document.getElementById("gd").innerHTML = http_request.responseText
nl(y)
if(x) changenav(x)
} else {
alert('There was a problem with the request.');
}
}
}



