GOLF-ROCKS34
Dogsout
Axis
kickass
GOLF-ROCKS34 Dogsout Axis kickasss kevinpatriot GrandAm | |
var RTEoldonload = window.onload;
window.onload = function()
{
load();
if (RTEoldonload != null && RTEoldonload!="undefined")
RTEoldonload();
}
//setNav();
function load(){
var subjectArea = null;
if (document.getElementById("txtsubject")!=null)
{
subjectArea = document.getElementById("txtsubject");
}
document.getElementById('iframe_textarea').contentWindow.document.body.style.fontSize='10pt';
document.getElementById('iframe_textarea').contentWindow.document.body.style.fontFamily='Arial';
//puts the quote in if thats the button that was pressed
var quotetext =""
// commented out resetForm() due to TT-2545
//resetForm();
if (document.getElementById('quotetext')!= null)
{
quotetext = document.getElementById('quotetext').value;
}
if (quotetext != "" && quotetext != null)
{
var i = quotetext.indexOf('--^^--');
while(i > -1){
quotetext = quotetext.replace('--^^--', '\n');
i = quotetext.indexOf('--^^--');
}
i = quotetext.indexOf('--^double^--');
while(i > -1){
quotetext = quotetext.replace('--^double^--', '"');
i = quotetext.indexOf('--^double^--');
}
quotetext = quotetext;
document.getElementById('iframe_textarea').contentWindow.document.body.innerHTML = quotetext;
}
else
{
if (document.getElementById('RichTextArea').value!="")
{
document.getElementById('iframe_textarea').contentWindow.document.body.innerHTML = document.getElementById('RichTextArea').value;
}
}
//sets the initial focus
if (subjectArea!=null)
{
subjectArea.focus();
}
}
//Function creates the color wheel, font size or font face drop-downs
function formatDropdown(dropdown)
{
if (dropdown!='')
{
if (dropdown!='ddEmoticons' && isTextSelected()=='false')
{
alert("Highlight your text first");
hideDropDowns('');
}
else
{
hideDropDowns(dropdown);
if (document.getElementById(dropdown).style.display=='block'){
if (dropdown=='ddEmoticons')
{//this is used to hide put the right-hand side ad under the iframe pop-ups
var adDiv = document.getElementById("rightCol");
if (adDiv != null)
{
adDiv.style.zIndex = 1;
}
}
}
else{ //drop-down is not visible
if (dropdown=='ddEmoticons')
{//this is used to hide put the right-hand side ad under the iframe pop-ups
var adDiv = document.getElementById("rightCol");
if (adDiv != null)
{
adDiv.style.zIndex = -1;
}
}
}
}
}
}
function hideDropDowns(currentDD)
{
var ddlb;
ddlb = document.getElementById(currentDD);
if (ddlb!=null){
ddlb.style.display = (ddlb.style.display && ddlb.style.display=='block' ? 'none' : 'block')
}
ddlb = document.getElementById('ddFontFace');
if (ddlb!=null && currentDD!='ddFontFace'){
ddlb.style.display = 'none';
}
ddlb = document.getElementById('ddColors');
if (ddlb!=null && currentDD!='ddColors'){
ddlb.style.display = 'none';
}
ddlb = document.getElementById('ddFontSize');
if (ddlb!=null && currentDD!='ddFontSize'){
ddlb.style.display = 'none';
}
ddlb = document.getElementById('ddEmoticons');
if (ddlb!=null && currentDD!='ddEmoticons'){
ddlb.style.display = 'none';
}
}
function overColor(iconItem){
//highlights the color in the preview section
document.getElementById("colorChoice").style.backgroundColor = iconItem.bgColor;
}
function trim(s)
{
//regular expression to remove spaces at the beginning or end of a string
return s.replace(/^\s*|\s*$/g, "");;
}
function resetForm()
{
//resets the form
document.getElementById('iframe_textarea').contentWindow.document.body.innerHTML = '';
}
//get textrea value from RTE and run any original onSubmit events
function btn_onClick(){
var temp;
var hostedBy, hostedBy_array;
var textArea = document.getElementById("RichTextArea");
var subjectArea = null;
if (document.getElementById("txtsubject")!=null)
{
subjectArea = document.getElementById("txtsubject");
}
//this temp variable is to see if the user is submitting any content and not just html
hostedBy=window.location.href;
hostedBy_array= hostedBy.split("/");
temp = trim(document.getElementById("iframe_textarea").contentWindow.document.body.innerHTML);
temp = temp.replace(/
/gi, '');
temp = temp.replace(/<\/DIV>/gi,'');
temp = temp.replace(/
/gi,''); temp = temp.replace(/ ]*>/gi ,'images');
temp = temp.replace(/<\w+\s+[^>]*>/gi ,'');
temp = temp.replace(/<\w+[^>]*>/gi ,'');
temp = temp.replace(/<\/+[^>]*>/gi ,'');
temp = temp.replace(/]*>/gi ,'');
temp = temp.replace(/]*>/gi ,'');
temp = temp.replace(/
|