
// image rollover function
function image_over(IMG_NAME,IMG_SOURCE) {
  window.document.images[IMG_NAME].src = IMG_SOURCE;
}

// "ajax" functions
function xmlhttpPost(strURL, targetLayerId) {
    var xmlHttpReq = false;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        xmlHttpReq = new XMLHttpRequest();
        xmlHttpReq.overrideMimeType('text/xml');
    }
    // IE
    else if (window.ActiveXObject) {
        xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
alert (strURL);
    xmlHttpReq.open('POST', strURL, true);
    xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlHttpReq.onreadystatechange = function() {
        if (xmlHttpReq.readyState == 4) {
            updatepage(xmlHttpReq.responseText, targetLayerId);
        }
    }
    xmlHttpReq.send(getquerystring());
}
function getquerystring() {
    //var form = document.forms['f1'];
    //var word = form.word.value;
	var word = "test";
    qstr = 'w=' + escape(word);  // NOTE: no '?' before querystring
    return qstr;
}
function updatepage(str, layerId){
    document.getElementById(layerId).innerHTML = str;
	// toggleLayer(layerId);
}

// 
