function __doRefresh() 
{
	var theform;
	
	if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) 
	{
		theform = document.forms["Form1"];
	}
	else 
	{
		theform = document.Form1;
	}
	theform.submit();
}

function openDialogueWindow(url, name, height, width)
{
	var opt = "toolbar=no,location=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no";
	opt += ",width="+width;
	opt += ",height="+height;
	
	//document.write("<BR>" + url);
	var w = window.open(url ,name,opt,true);
	w.creator = self;
	w.callingForm = this;
	w.opener = this;
}

function replaceUnsafeInput(control)
{
	if (!control)
		return;
	
	control.value = control.value.replace(/</g, "&lt;").replace(/>/g,"&gt;");
}

