
function show(obj){
	var elem = document.getElementById(obj);

	if (elem.style.display == "block"){
		document.getElementById(obj).style.display = 'none';
		return true;
	}
	document.getElementById(obj).style.display = 'block';
	return false;
}

function o(id){
	document.getElementById(id).style.display = 'block';
}
function c(id){
	document.getElementById(id).style.display = 'none';
}

function GetXmlHttpObject(handler)
{
	var objXMLHttp=null
	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}

function htmlData(url, qStr) {
	if (url.length==0) {
		$('#txtResult').html("");
		return;
	}
	$.ajax({
		url		: url,
		data		: qStr,
		dataType	: "html",
		success	: function(data){
			$('#txtResult').html(data);
		}
	});
}
