function reset_div(theid)
{
	document.getElementById(theid).innerHTML='';
}
function hide(theid)
{
	if (document.getElementById(theid))
		document.getElementById(theid).style.display='none';
	else if (window.opener.document.getElementById(theid))
		window.opener.document.getElementById(theid).style.display='none';
}

function show(theid)
{
	if (document.getElementById(theid))
		document.getElementById(theid).style.display='';
	else if (window.opener.document.getElementById(theid))
		window.opener.document.getElementById(theid).style.display='';

}
function setstyle(theid, classname)
{
	document.getElementById(theid).className=classname;
}
function getstyle(theid)
{
	return document.getElementById(theid).className;
}
function setvalue(theid, value)
{
	document.getElementById(theid).value=value;
}
function getvalue(theid)
{
	return document.getElementById(theid).value;
}
function sethtml(theid, html)
{
	document.getElementById(theid).innerHTML=html;
}
function gethtml(theid, html)
{
	return document.getElementById(theid).innerHTML;
}
function setsrc(theid, thesrc)
{
	document.getElementById(theid).src=thesrc;
}

function toggle_display(theid)
{
	if (document.getElementById(theid).style.display=='none')
		show(theid);
	else
		hide(theid);
}

function redirect(url)
{
	window.location.replace(url);
}

function load(divId,url,param)
{
	ajax_loadContent(divId,url,param);
}

function loadparent(divId,url,param)
{
	ajax_loadContentParent(divId,url,param);
}

function loadframe(divId,url,param)
{
	ajax_loadContentFrame(divId,url,param);
}

function convert_text(thetext)
{
	while (thetext.indexOf(".")>=0)
		thetext = thetext.replace('.','|#46;|');
	thetext = thetext.replace('&','|^amp^|');
	thetext = thetext.replace('=','|^eq^|');
	return thetext;
}
