/*
// +----------------------------------------------------------------------+
// | Orginial Code Care Of:                                               |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004 Bitflux GmbH                                      |
// +----------------------------------------------------------------------+
// | Licensed under the Apache License, Version 2.0 (the "License");      |
// | you may not use this file except in compliance with the License.     |
// | You may obtain a copy of the License at                              |
// | http://www.apache.org/licenses/LICENSE-2.0                           |
// | Unless required by applicable law or agreed to in writing, software  |
// | distributed under the License is distributed on an "AS IS" BASIS,    |
// | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or      |
// | implied. See the License for the specific language governing         |
// | permissions and limitations under the License.                       |
// +----------------------------------------------------------------------+
// | Author: Bitflux GmbH <devel@bitflux.ch>                              |
// |         http://blog.bitflux.ch/p1735.html                            |
// +----------------------------------------------------------------------+
//
//
// +----------------------------------------------------------------------+
// | Heavily Modified by Jeff Minard (07/09/04)                           |
// +----------------------------------------------------------------------+
// | Same stuff as above, yo!                                             |
// +----------------------------------------------------------------------+
// | Author: Jeff Minard <jeff-js@creatimation.net>                       |
// |         http://www.creatimation.net                                  |
// +----------------------------------------------------------------------+
//
// +----------------------------------------------------------------------+
// | Near Completly rewriten/repurposed Nathan McFarland (09/24/04)       |
// +----------------------------------------------------------------------+
// | Same stuff as above, yo!                                             |
// +----------------------------------------------------------------------+
// | Author: Nathan McFarland                                             |
// |         http://nmcfarl.org                                           |
// +----------------------------------------------------------------------+
//
//
*/
/*--------------------------------------
	Script Stuff
--------------------------------------*/

var t = null;

var isIE = false;



function liveReqDoReq(uri, resultElementId) {
	if (!uri){uri = processURI;}
	if (!resultElementId){resultElementId = resultFieldId }



        var liveReq = false;
	var liveReqLast = "";
	// on !IE we only have to initialize it once
	if (window.XMLHttpRequest) {
		liveReq = new XMLHttpRequest();
	}	


		if (liveReq && liveReq.readyState < 4) {
			liveReq.abort();
		}
		if (window.XMLHttpRequest) {
		// branch for IE/Windows ActiveX version
		} else if (window.ActiveXObject) {
			liveReq = new ActiveXObject("Microsoft.XMLHTTP");
		}
		
		liveReq.onreadystatechange = function(){ 
                    if (liveReq.readyState == 4  &&  liveReq.status == 200) {
                        document.getElementById(resultElementId).innerHTML = liveReq.responseText;
                        if(emptyString == '') {
                            document.getElementById(resultElementId).style.display = "block";
                        }
                    }
                };
		liveReq.open("GET", uri );
		liveReq.send(null);
}

