
function addRowInnerHTML(tblId,data)
{

	var tblBody = document.getElementById(tblId).tBodies[0];

	var rows = data.split("</tr><tr>");
	for (i = 0; i < rows.length; i++){
		var newRow = tblBody.insertRow(-1);
		var cells = rows[i].split("</td><td>");
		for (j = 0; j < cells.length; j++){
			var newCell0 = newRow.insertCell(j);
			newCell0.innerHTML =  cells[j];
		};
	};
}

function openAWindow( pageToLoad, winName, width, height, center) {

	var x;

	xposition=0; yposition=0;

	if ((parseInt(navigator.appVersion) >= 4 ) && (center)){
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	}

	args = "width=" + width + ","
	+ "height=" + height + ","
	+ "location=0,"
	+ "menubar=0,"
	+ "resizable=0,"
	+ "scrollbars=1,"
	+ "status=0,"
	+ "titlebar=0,"
	+ "toolbar=0,"
	+ "hotkeys=0";

	window.open(pageToLoad,winName,args);
}; 

function confirmAction(url){
        confirm(url);
};

function ajaxSubmitPost(url,onready){

	if (window.ActiveXObject){
		http = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else {
		http = new XMLHttpRequest();
	};
	http.onreadystatechange = onready;
	http.open("GET",url);     
	http.send(null);
};

function ajaxSubmitPost2(url,onready){

	var http;
	if (window.ActiveXObject){
		http = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else {
		http = new XMLHttpRequest();
	};
	http.onreadystatechange = function() {
		onready(http);
	};
	http.open("GET",url);     
	http.send(null);
};

function ajaxSubmit(url){

	if (window.ActiveXObject){
		http = new ActiveXObject("Microsoft.XMLHTTP");
	}
	else {
		http = new XMLHttpRequest();
	};
	http.open("GET",url);     
	http.send(null);
};

