function showHide(entryID, entryLink, htmlObj, type) {
if (type == "comments") {
extTextDivID = ('comText' + (entryID));
extLinkDivID = ('comLink' + (entryID));
} else {
extTextDivID = ('extText' + (entryID));
extLinkDivID = ('extLink' + (entryID));
}
if( document.getElementById ) {
if( document.getElementById(extTextDivID).style.display ) {
if( entryLink != 0 ) {
document.getElementById(extTextDivID).style.display = "block";
document.getElementById(extLinkDivID).style.display = "none";
htmlObj.blur();
} else { 
document.getElementById(extTextDivID).style.display = "none";
document.getElementById(extLinkDivID).style.display = "block";
}
} else {
location.href = entryLink;
return true;
}
} else {
location.href = entryLink;
return true;
}
}

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>');
// NewText = NewText.replace(/\[url=(https?:\/\/.*\..*)\](.*)\[\/url\]/i,'<a href="$1" target="_blank">$2</a>');
var DivElement = document.getElementById("TextDisplay");
DivElement.innerHTML = NewText;
}

function popUp(strURL,strType,strHeight,strWidth) {
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,status,height="+strHeight+",width="+strWidth;
window.open(strURL, 'newWin', strOptions);
}

