// pop-up function
var newWin = null;
function closeWin(){
	if (newWin != null){
		if(!newWin.closed)
			newWin.close();
	}
}
function popUp(strURL,strType,strHeight,strWidth) {
closeWin();
var strOptions="";
if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;
if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;
if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;
if (strType=="borderless") strOptions="toolbar=no,menubar=no,scrollbars=no,resizable,height="+strHeight+",width="+strWidth;
newWin = window.open(strURL, 'newWin', strOptions);
newWin.focus();
}

if (!(navigator.userAgent.indexOf("ozilla/3.")>=1))
{
document.write("<script language=\"JavaScript1.3\" src=\"\/_scripts\/formHighlight.js\">");
document.write("</script>");
}


function ReloadTextDiv()
{
var NewText = document.getElementById("DynamicText").value;
NewText = NewText.replace(/\n/g, '<br />');
NewText = NewText.replace(/\[b\]/gi,'<b>');
NewText = NewText.replace(/\[\/b\]/gi,'</b>');
NewText = NewText.replace(/\[i\]/gi,'<i>');
NewText = NewText.replace(/\[\/i\]/gi,'</i>');
var DivElement = document.getElementById("TextDisplay");
DivElement.innerHTML = NewText;
}
