/*IBP 2.* Fast Reply Replica By Trini_Gangsta
Feel free to share this, just don't claim it*/

if(location.href.match('showtopic'))
{
var z = document.getElementsByTagName('div');
for(x=0;x<z.length;x++)
   {
if(z[x].className.match('tableborder') && z[x].innerHTML.match('Show Smilies Pop Up Window'))
      {
z[x].innerHTML = z[x].innerHTML.split('Close Fast Reply').join('Close Fast&nbsp;Reply').split('Fast Reply').join('Fast Reply</div><div class="tablepad" align="center"><img src="http://i229.photobucket.com/albums/ee283/neoedGF/rte-bold.png" onclick="bolditup()"/><img src="http://i229.photobucket.com/albums/ee283/neoedGF/rte-underlined.png" onclick="underlineitup()"/><img src="http://i229.photobucket.com/albums/ee283/neoedGF/rte-italic.png" onclick="italicitup()"/><img src="http://i229.photobucket.com/albums/ee283/neoedGF/rte-link-button.png" onclick="linkitup()"/><img src="http://i229.photobucket.com/albums/ee283/neoedGF/rte-image-button.png" onclick="imageitup()"/><img src="http://i229.photobucket.com/albums/ee283/neoedGF/rte-emoticon.png" onclick="javascript:emo_pop()"/><img src="http://i229.photobucket.com/albums/ee283/neoedGF/rte-quote-button.png" onclick="quoteitup()"/><img src="http://i229.photobucket.com/albums/ee283/neoedGF/rte-code-button.png" onclick="codeitup()"/></div>').split('Show Smilies Pop Up Window').join('</a><input type="checkbox" name="enabletrack" class="checkbox" value="1"/> Enable Email Notification Of Replies');
      }     
   }
function bolditup()
   {
document.REPLIER.Post.value+="[B][/B]";
   }
function italicitup()
   {
document.REPLIER.Post.value+="[I][/I]";
   }
function underlineitup()
   {
document.REPLIER.Post.value+="[U][/U]";
   }
function linkitup()
   {
var link = prompt("Enter the complete URL for the hyperlink","http://");
if(link == "" || link == null)
      {
alert("Error! You must enter a URL");
      }
else
      {
var title = prompt("Enter the title of the webpage","Please Go Here");
if(title == "" || title == null)
         {
alert("Error! You must enter a title");
         }
else
         {
document.REPLIER.Post.value+="[URL="+link+"]"+title+"[/URL]";
         }
      }
   }
function imageitup()
   {
var image = prompt("Enter the complete URL for the image","http://");
if(image !== null)
      {
document.REPLIER.Post.value+="[IMG]"+image+"[/IMG]";
      }
   }
function quoteitup()
   {
var quote = prompt("Who are you quoting?");
if(quote == "" || quote == null)
      {
quote="?";
      }
document.REPLIER.Post.value+="[QUOTE="+quote+"][/QUOTE]";
   }
function codeitup()
   {
document.REPLIER.Post.value+="[CODE][/CODE]";
   }  
}