function qp(txt, box, theme, smileys, colours) {
    var cbox = byId('qpbox' + box);
    if (byId('quickie' + box)) {
        if (byId('quickie' + box).style.display != 'none') {
            cbox.innerHTML = txtDisplay(txt, theme, smileys, colours)
            cbox.scrollTop = cbox.scrollHeight;
        }
    }
function txtDisplay(txt, theme, smileys, colours) {

    txt = "" + String(txt);
    if (txt == "undefined" || txt == "null") {
        txt = "";
    } else {
        txt = (txt.replace(/^\s+/, '')).replace(/\s+$/, '');
        txt = " " + txt + " ";
        txt = txt.replace(/&([^;]+)\s/g, "&amp;$1");
        txt = txt.replace(/ - /gi, " &ndash; ");
        //Text blocks
        //txt = txt.replace(/\|\|.*^-(.*)$\|\|/gi,"$1*$2");
        txt = txt.replace(/\<\<([^\>]*)\>\>/gi, "<blockquote class=\"blocked\">$1</blockquote>");
        txt = txt.replace(/\[\[([^\]]*)\]\]/gi, "<span class=\"code\">$1</span>");
        txt = txt.replace(/\[c\[(.*)\]c\]/gi, "<span class=\"txtcentre\">$1</span>");
        txt = txt.replace(/\[j\[([^\]]*)\]j\]/gi, "<span class=\"txtjustify\">$1</span>");
        txt = txt.replace(/\[r\[([^\]]*)\]r\]/gi, "<span class=\"txtright\">$1</span>");
        txt = txt.replace(/\[l\[([^\]]*)\]l\]/gi, "<span class=\"txtleft\">$1</span>");
        txt = txt.replace(/\[f\[([^\]]*)\]f\]/gi, "<span class=\"fainttext\">$1</span>");
        txt = txt.replace(/\"\"([^\"\"]*)\"\"/gi, "<span class=\"quote\"><blockquote>$1</blockquote></span>");
        txt = txt.replace(/\[s\[/gi, "<span class=\"smalltext\">");
        txt = txt.replace(/\]s\]/gi, "</span>");
        txt = txt.replace(/\[b\[/gi, "<span class=\"bigtext\">");
        txt = txt.replace(/\]b\]/gi, "</span>");
        txt = txt.replace(/@@([^@@]*)@@/gi, " <span class=\"fainttext reply italic\">$1</span>");
        txt = txt.replace(/@@/gi, "");
        // Quotes
        txt = txt.replace(/(\s|^)"(.*?)"([\s,.\-$?!])/gi, "$1&ldquo;$2&rdquo;$3");
        txt = txt.replace(/(\s|^)'(.*?)'([\s,.\-$?!])/gi, "$1&lsquo;$2&rsquo;$3");
        txt = txt.replace(/\'/gi, "&rsquo;");
        //Text formats
        txt = txt.replace(/[\s|\<|\>]-([^-|^\n]{1,})-\s/gi, " <span class=\"stroke\">$1</span> ");
        txt = txt.replace(/[\s|\>]\/(.+?)\/\s/gi, " <em>$1</em> ");
        txt = txt.replace(/[\s|\<|\>]_([^_|^\n]*)_\s/gi, " <u>$1</u> ");
        txt = txt.replace(/[\s|\<|\>]\+([^\+|^\n]*)\+\s/gi, " <strong>$1</strong> ");
        txt = txt.replace(/[\s|\<|\>]\*(^\*|^n)\*\s/g, " <strong>*$1*</strong> ");
        txt = txt.replace(/-[-]+-/g, "<span class=\"uline\"></span>");
        txt = txt.replace(/\n/g, " <br />\n");
        txt = txt.replace(/</gi, "&lt;");
        txt = txt.replace(/Ref:([a-zA-Z0-9]+)/gi, "$1");
        txt = txt.replace(/([a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z])/g, "<a href=\"mailto:$1\">$1</a>");
        txt = txt.replace(/mailto:/g, "mailto¬");
        txt = txt.replace(/[\s\^\<\>](www)\.([A-Za-z0-9-\/]{2,})\.(.*?),?\s/gi, " url¬$1.$2.$3 ");
        txt = txt.replace(/"([^"]*)":image:http:\/\/([^\s]*)/g, "<table width=\"10%\" class=\"darkbg smalltext\"><tr><td><img class=\"mwimg\" src=\"http://$2\" alt=\"Click to view image\" onclick=\"openImg(this.src)\" /></td></tr><tr><td class=\"left\" width=\"10\">$1</td></tr></table>");
        txt = txt.replace(/"([^"]*)":image\[left\]:http:\/\/([^\s]*)/g, "<div class=\"fleft\"><table width=\"20%\" class=\"mr5 darkbg inline smalltext\"><tr><td><img class=\"mwimg\" src=\"http://$2\" alt=\"Click to view image\" onclick=\"openImg(this.src)\" /></td></tr><tr><td class=\"left\" width=\"10\">$1</td></tr></table></div>");
        txt = txt.replace(/"([^"]*)":image\[right\]:http:\/\/([^\s]*)/g, "<div class=\"fright\"><table width=\"20%\" class=\"ml5 darkbg inline smalltext\"><tr><td><img class=\"mwimg\" src=\"http://$2\" alt=\"Click to view image\" onclick=\"openImg(this.src)\" /></td></tr><tr><td class=\"left\" width=\"10\">$1</td></tr></table></div>");
        txt = txt.replace(/image:http:\/\/([^\s]*)/g, "<img src=\"http://$1\" class=\"mwimg\" alt=\"Click to view image\" onclick=\"openImg(this.src)\" />");
        txt = txt.replace(/image\[left]:http:\/\/([^\s]*)/gi, "<img class=\"mwimg mr5\" src=\"http://$1\" align=\"left\" alt=\"Click to view image\" onclick=\"openImg(this.src)\" />");
        txt = txt.replace(/image\[right]:http:\/\/([^\s]*)/gi, "<img class=\"mwimg ml5\" src=\"http://$1\" align=\"right\" alt=\"Click to view image\" onclick=\"openImg(this.src)\" />");
        txt = txt.replace(/\shttp:\/\/([^\s]*)/gi, " url¬$1 ");
        txt = txt.replace(/\shttps:\/\/([^\s]*)/gi, " urls¬$1 ");
        txt = txt.replace(/\sftp:\/\/([^\s]*)/gi, " ftp¬$1 ");
        txt = txt.replace(/\sirc:\/\/([^\s]*)/gi, " irc¬$1 ");
        txt = txt.replace(/\(http:\/\/(.*?[^\)])\)\s/gi, " ( url¬$1 ) ");
        txt = txt.replace(/\(https:\/\/(.*?[^\)])\)\s/gi, " ( urls¬$1 ) ");
        var re = /"[^"]*":link\:msg[0-9]*\s/;
        while (re.test(txt)) {
            txt = txt.replace(/("[^"]*"):link:msg[0-9]*\s/, "<a href=\"#\">$1</a>");
        }
        var re = /link\:msg([0-9]*)\s/;
        while (re.test(txt)) {
            txt = txt.replace(/link:(msg[0-9]*)\s/, "<a href=\"#\">msg$1</a>");
        }
        txt = txt.replace(/"([^"]*)":link:([0-9]+)/g, "<a href=\"/dispthread.asp?thread=$2\">$1</a>");
        txt = txt.replace(/link:([0-9]+)/g, "<a href=\"/dispthread.asp?thread=$1\">thread $1</a>");
        txt = txt.replace(/"([^"]*)":diary:([0-9]+)/g, "<a href=\"/viewDiary.asp?id=$2\">$1</a>");
        txt = txt.replace(/diary:([0-9]+)/g, "<a href=\"/viewDiary.asp?id=$1\">event $1</a>");
        txt = txt.replace(/"([^"]*)":event:([0-9]+)/g, "<a href=\"/viewDiary.asp?id=$2\">$1</a>");
        txt = txt.replace(/event:([0-9]+)/g, "<a href=\"/viewDiary.asp?id=$1\">event $1</a>");
        txt = txt.replace(/"([^"]*)":link:([0-9A-Za-z-_]+)/gi, "<a href=\"/profile.asp?name=$2\">$1</a>");
        txt = txt.replace(/link:([0-9A-Za-z-_]+)/gi, "<a href=\"/profile.asp?name=$1\">$1</a>");
        txt = txt.replace(/"([^"]*)":blog:([0-9A-Za-z-_]+)/gi, "<a href=\"/$2/blog\">$1</a>");
        txt = txt.replace(/"([^"]*)":journal:([0-9A-Za-z-_]+)/gi, "<a href=\"/$2/journal\">$1</a>");
        txt = txt.replace(/blog:([0-9A-Za-z-_]+)/gi, "<a href=\"/$1/blog\">$1's journal</a>");
        txt = txt.replace(/journal:([0-9A-Za-z-_]+)/gi, "<a href=\"/$1/journal\">$1's journal</a>");
        txt = txt.replace(/dick:([0-9A-Za-z-_]+)/gi, "<a href=\"/dick.asp?q=$1\">$1</a>");
        txt = txt.replace(/"([^"]*)":dick:([0-9A-Za-z-_]+)/gi, "<a href=\"/dick.asp?q=$2\">$1</a>");
        txt = txt.replace(/dick:"([^"]*)"/gi, "<a href=\"/dick.asp?q=$1\">$1</a>");
        txt = txt.replace(/"([^"]*)":dick:"([^"]*)"/gi, "<a href=\"/dick.asp?word=$2\">$1</a>");
        txt = txt.replace(/google:([0-9A-Za-z-_]+)/gi, "<a href=\"http://www.google.co.uk/search?q=$1\" rel=\"ext\">$1</a>");
        txt = txt.replace(/"([^"]*)":google:([0-9A-Za-z-_]+)/gi, "<a href=\"http://www.google.co.uk/search?q=$2\" rel=\"ext\">$1</a>");
        txt = txt.replace(/google:"([^"]*)"/gi, "<a href=\"http://www.google.co.uk/search?q=$1\">$1</a>");
        txt = txt.replace(/"([^"]*)":google:"([^"]*)"/gi, "<a href=\"http://www.google.co.uk/search?q=$2\" rel=\"ext\">$1</a>");
        txt = txt.replace(/"([^"]*)":group:([0-9]+)/gi, "<a href=\"/groups.asp?groupview=$2\">$1</a>");
        txt = txt.replace(/group:([0-9]+)/gi, "<a href=\"/groups.asp?groupview=$1\">$1</a>");
        txt = txt.replace(/"([^"]*)":group:([0-9]+)/gi, "<a href=\"/groups.asp?groupview=$1\">$1</a>");
        txt = txt.replace(/quote:([0-9]+)/g, "<a href=\"/quotes.asp?quote=$1\">quote $1</a>");
        txt = txt.replace(/poll:([0-9]+)/g, "pol $1 goes here");
        txt = txt.replace(/"([^"]*)":quote:([0-9]+)/g, "<a href=\"/quotes.asp?quote=$2\">quote $1</a>");
        txt = txt.replace(/slagdar:([0-9A-Za-z-_]+)/gi, "<a href=\"http://www.gaydar.co.uk/$1\" rel=\"ext\">$1</a>");
        txt = txt.replace(/"([^"]*)":gaydar:([0-9A-Za-z-_]+)/gi, "<a href=\"http://www.gaydar.co.uk/$2\" rel=\"ext\">$1</a>");
        txt = txt.replace(/gaydar:([0-9A-Za-z-_]+)/gi, "<a href=\"http://www.gaydar.co.uk/$1\" rel=\"ext\">$1</a>");
        txt = txt.replace(/imdb:([0-9A-Za-z-_]+)/gi, "<a href=\"http://www.imdb.com/find?q=$1\" rel=\"ext\">$1</a>");
        txt = txt.replace(/imdb:"([^"]*)"/gi, "<a href=\"http://www.imdb.com/find?q=$1\" rel=\"ext\">$1</a>");
        txt = txt.replace(/cddb:([0-9A-Za-z-_]+)/gi, "<a href=\"http://www.gracenote.com/music/search.html?f=artist&f=disc&x=0&y=0&q=$1\" rel=\"ext\">$1</a>");
        txt = txt.replace(/cddb:"([^"]*)"/gi, "<a href=\"http://www.gracenote.com/music/search.html?f=artist&f=disc&x=0&y=0&q=$1\" rel=\"ext\">$1</a>");
        txt = txt.replace(/lyrics:([0-9A-Za-z-_]+)/gi, "<a href=\"http://seek.sing365.com:8080/cgi-bin/s.cgi?q=$1\" rel=\"ext\">$1</a>");
        txt = txt.replace(/lyrics:"([^"]*)"/gi, "<a href=\"http://seek.sing365.com:8080/cgi-bin/s.cgi?q=$1\" rel=\"ext\">$1</a>");
        txt = txt.replace(/wiki:"([^"]*)"/gi, "<a href=\"http://en.wikipedia.org/wiki/Special:Search?search=$1&amp;go=Go\" rel=\"ext\">$1</a>");
        txt = txt.replace(/ -- /g, " &mdash; ");
        txt = txt.replace(/&lt;tt/g, "<tt");
        txt = txt.replace(/&lt;\/tt/g, "</tt");
        txt = txt.replace(/&lt;\/a/g, "</a");
        txt = txt.replace(/&lt;blockquote/g, "<blockquote");
        txt = txt.replace(/&lt;\/blockquote/g, "</blockquote");
        txt = txt.replace(/&lt;font/g, "<font");
        txt = txt.replace(/&lt;\/font/g, "</font");
        txt = txt.replace(/&lt;button/g, "<button");
        txt = txt.replace(/&lt;\/button/g, "</button");
        txt = txt.replace(/&lt;acronym/g, "<acronym");
        txt = txt.replace(/&lt;\/acronym/g, "</acronym");
        txt = txt.replace(/&lt;img src/g, "<img src");
        txt = txt.replace(/&lt;u/g, "<u");
        txt = txt.replace(/&lt;li/g, "<li");
        txt = txt.replace(/&lt;\/li/g, "</li");
        txt = txt.replace(/&lt;\/u/g, "</u");
        txt = txt.replace(/&lt;pre/g, "<pre");
        txt = txt.replace(/&lt;span/g, "<span");
        txt = txt.replace(/&lt;\/span/g, "</span");
        txt = txt.replace(/&lt;em/g, "<em");
        txt = txt.replace(/&lt;\/em/g, "</em");
        txt = txt.replace(/&lt;strong/g, "<strong");
        txt = txt.replace(/&lt;\/strong/g, "</strong");
        txt = txt.replace(/&lt;\/pre/g, "</pre");
        txt = txt.replace(/&lt;b&gt;/g, "<b>");
        txt = txt.replace(/&lt;\/b&gt;/g, "</b>");
        txt = txt.replace(/&lt;li&gt;/g, "<li>");
        txt = txt.replace(/&lt;\/li&gt;/g, "</li>");
        txt = txt.replace(/&lt;b&gt;/g, "<b>");
        txt = txt.replace(/&lt;\/b&gt;/g, "</b>");
        txt = txt.replace(/&lt;br/g, "<br");
        txt = txt.replace(/&lt;a href(.*?[^<])>/gi, "<a href$1>");
        txt = txt.replace(/&lt;table/gi, "<table");

        //YouTube compatibility ugly hack thing
        txt = txt.replace(/&lt;object width=\"425\" height=\"350\"/gi, "<object width=\"425\" height=\"350\"");
        txt = txt.replace(/&lt;param name=\"movie\"/gi, "<param name=\"movie\"");
        txt = txt.replace(/&lt;\/param>&lt;param name=\"wmode\"/gi, "</param><param name=\"wmode\"");
        txt = txt.replace(/&lt;\/param><embed/gi, "</param><embed");
        txt = txt.replace(/embed>&lt;\/object>/gi, "embed></object>");
        txt = txt.replace(/mailto¬/g, "mailto:");
        txt = txt.replace(/"([^"]*)":http:\/\/(\S*)/g, "<a href=\"http://$2\" rel=\"ext\">$1</a> ");
        txt = txt.replace(/"([^"]*)":https:\/\/(\S*)/g, "<a href=\"https://$2\" rel=\"ext\">$1</a> ");
        txt = txt.replace(/url¬(\S*)/g, "<a href=\"http://$1\" rel=\"ext\">$1</a> ");
        txt = txt.replace(/urls¬(\S*)/g, "<a href=\"http://$1\" rel=\"ext\">$1</a> ");
        txt = txt.replace(/ftp¬(\S*)/g, "<a href=\"ftp://$1\" rel=\"ext\">ftp://$1</a> ");
        txt = txt.replace(/irc¬(\S*)/g, "<a href=\"irc://$1\" rel=\"ext\">irc://$1</a> ");
        //Escaping special characters
        txt = fColours(txt, colours);
        txt = fSmileys(txt, theme, smileys);
    }
    if (txt.charAt(0) == " " && txt.charAt(txt.length - 1) == " ") {
        txt = txt.substring(1, txt.length);
        txt = txt.substring(0, txt.length - 1)
    }
    return txt;
}

	}
function fColours(frag,colours){
	txt = String(frag);
	if(colours){
		txt = txt.replace(/\^k1(.*?)\^k/gi,"<span class=\"red\">$1</span>")
		txt = txt.replace(/col\[1\]:\"([^"]*)"/gi,"<span class=\"red\">$1</span>");
		txt = txt.replace(/col\[red\]:\"([^"]*)"/gi,"<span class=\"red\">$1</span>");
		txt = txt.replace(/\^k2(.*?)\^k/gi,"<span class=\"orange\">$1</span>")
		txt = txt.replace(/col\[2\]:\"([^"]*)"/gi,"<span class=\"orange\">$1</span>");
		txt = txt.replace(/col\[orange\]:\"([^"]*)"/gi,"<span class=\"orange\">$1</span>");
		txt = txt.replace(/\^k3(.*?)\^k/gi,"<span class=\"yellow\">$1</span>")
		txt = txt.replace(/col\[3\]:\"([^"]*)"/gi,"<span class=\"yellow\">$1</span>");
		txt = txt.replace(/col\[yellow\]:\"([^"]*)"/gi,"<span class=\"yellow\">$1</span>");
		txt = txt.replace(/\^k4(.*?)\^k/gi,"<span class=\"green\">$1</span>")
		txt = txt.replace(/col\[4\]:\"([^"]*)"/gi,"<span class=\"green\">$1</span>");
		txt = txt.replace(/col\[green\]:\"([^"]*)"/gi,"<span class=\"green\">$1</span>");
		txt = txt.replace(/\^k5(.*?)\^k/gi,"<span class=\"blue\">$1</span>")
		txt = txt.replace(/col\[5\]:\"([^"]*)"/gi,"<span class=\"blue\">$1</span>");
		txt = txt.replace(/col\[blue\]:\"([^"]*)"/gi,"<span class=\"blue\">$1</span>");
		txt = txt.replace(/\^k6(.*?)\^k/gi,"<span class=\"indigo\">$1</span>")
		txt = txt.replace(/col\[6\]:\"([^"]*)"/gi,"<span class=\"indigo\">$1</span>");
		txt = txt.replace(/col\[indigo\]:\"([^"]*)"/gi,"<span class=\"indigo\">$1</span>");
		txt = txt.replace(/\^k7(.*?)\^k/gi,"<span class=\"violet\">$1</span>")
		txt = txt.replace(/col\[7\]:\"([^"]*)"/gi,"<span class=\"violet\">$1</span>");
		txt = txt.replace(/col\[violet\]:\"([^"]*)"/gi,"<span class=\"violet\">$1</span>");
		txt = txt.replace(/\^k8(.*?)\^k/gi,"<span class=\"white\">$1</span>")
		txt = txt.replace(/col\[8\]:\"([^"]*)"/gi,"<span class=\"white\">$1</span>");
		txt = txt.replace(/col\[white\]:\"([^"]*)"/gi,"<span class=\"white\">$1</span>");
		txt = txt.replace(/\^k0/gi,"")
		txt = txt.replace(/col\[0\]:\"([^"]*)"/gi,"$1");
		txt = txt.replace(/col\[[^\]]*\]:\"([^"]*)"/gi,"$1");
	}else{
		txt = txt.replace(/\^k[0-9]/gi,"");
		txt = txt.replace(/\^k/gi,"");
		txt = txt.replace(/col\[[^\]]*\]:\"([^"]*)"/gi,"$1");
	}
	return txt;
}	
function urlTxtDisplay(text){
	text = String(text);
	text = text.replace(/&([^;]+)\s/g, "&amp;$1");
	text = text.replace(/&\s/g, "&amp; ");
	text = text.replace(/diary:/gi,"");
	text = text.replace(/blog:/gi,"");
	text = text.replace(/journal:/gi,"");
	text = text.replace(/ref:/gi,"");
	text = text.replace(/gaydar:/gi,"");
	text = text.replace(/imdb:/gi,"");
	text = text.replace(/"([^"]*)":link:([0-9A-Za-z-_]+)/gi,"$1");
	text = text.replace(/link:/gi,"");
	text = text.replace(/\s\/(.*?)\/\s/g," <em>$1</em> ");
	text = text.replace(/\s_(.*?)_/g, " <u>$1</u>");
	text = text.replace(/\+(.*?)\+/g, " <strong>$1</strong>");
	text = text.replace(/\*(.*?)\*/g, " <strong>*$1*</strong>");
	text = text.replace(/\[b\[([^\]]*)\]b\]/gi, "$1");
	text = text.replace(/\[s\[([^\]]*)\]s\]/gi, "$1");
	text = fSmileys(text);
	text = fColours(text);
	text = escapeSpecialChars(text);
	return text;
}

function fSmileys(frag,theme,smileys){
	width="15"
	height="18"
	var btxt = "" + String(frag);
	/*Smileys*/	
	suffix = "-blank";
	if(theme=="macish"){
		suffix = "-macish";
	}
	if(theme=="hal"){
		suffix = "-hal";
	}
	if(smileys != false){
		btxt = btxt.replace(/>:\((?![^<>]*>)/g,"<img src=\"/images/14"+suffix+".gif\" class=\"smiley b0\" alt=\"]: (\" width=\""+width+"\" height=\""+height+"\" />");		
		btxt = btxt.replace(/:D(?![^<>]*>)/g," <img src=\"/images/00"+suffix+".gif\" class=\"smiley b0\" alt=\": D\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/\=D(?![^<>]*>)/g," <img src=\"/images/01"+suffix+".gif\" class=\"smiley b0\" alt=\"= D\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/\:B(?![^<>]*>)/g," <img src=\"/images/02"+suffix+".gif\" class=\"smiley b0\" alt=\": B\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/;\)(?![^<>]*>)/g," <img src=\"/images/02.5"+suffix+".gif\" class=\"smiley b0\" alt=\"; )\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/:\)(?![^<>]*>)/g," <img src=\"/images/03"+suffix+".gif\" class=\"smiley b0\" alt=\": )\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/=\)(?![^<>]*>)/g," <img src=\"/images/04"+suffix+".gif\" class=\"smiley b0\" alt=\"= )\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/:\](?![^<>]*>)/g," <img src=\"/images/05"+suffix+".gif\" class=\"smiley b0\" alt=\": ]\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/:\}(?![^<>]*>)/g," <img src=\"/images/06"+suffix+".gif\" class=\"smiley b0\" alt=\": }\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/:\|(?![^<>]*>)/g," <img src=\"/images/07"+suffix+".gif\" class=\"smiley b0\" alt=\": |\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/=\|(?![^<>]*>)/g," <img src=\"/images/08"+suffix+".gif\" class=\"smiley b0\" alt=\": }\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/=\/(?![^<>]*>)/g," <img src=\"/images/09"+suffix+".gif\" class=\"smiley b0\" alt=\"= /\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/=\\(?![^<>]*>)/g," <img src=\"/images/09"+suffix+".gif\" class=\"smiley b0\" alt=\"= \\\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/:S(?![^<>]*>)[^a-z0-9]/gi," <img src=\"/images/10"+suffix+".gif\" class=\"smiley b0\" alt=\": S\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/:\((?![^<>]*>)/g," <img src=\"/images/11"+suffix+".gif\" class=\"smiley b0\" alt=\": (\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/=\((?![^<>]*>)/g," <img src=\"/images/12"+suffix+".gif\" class=\"smiley b0\" alt=\"= (\" />");
		btxt = btxt.replace(/:\'\((?![^<>]*>)/g," <img src=\"/images/13"+suffix+".gif\" class=\"smiley b0\" alt=\": '(\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/:P(?![^<>]*>)/g," <img src=\"/images/15"+suffix+".gif\" class=\"smiley b0\" alt=\": P\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/0:-\)(?![^<>]*>)/g," <img src=\"/images/16"+suffix+".gif\" class=\"smiley b0\" alt=\"0: -)\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/0:\)(?![^<>]*>)/g," <img src=\"/images/16"+suffix+".gif\" class=\"smiley b0\" alt=\"0: -)\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/O:\)(?![^<>]*>)/g," <img src=\"/images/16"+suffix+".gif\" class=\"smiley b0\" alt=\"0: -)\" width=\""+width+"\" height=\""+height+"\" />");
		btxt = btxt.replace(/:\$(?![^<>]*>)/g," <img src=\"/images/17"+suffix+".gif\" class=\"smiley b0\" alt=\"0: -)\" width=\""+width+"\" height=\""+height+"\" />");
	}
	/*end smileys*/
	return btxt;
	}