function PV() {
var sv=(""+self.frames.location).split('.')[1];
var G="<img src='http://"+sv+'.fc2.com/image/';
var C=document.comment_form.comment.value.replace(/\n/gi, "<br />");
C=C.replace(/(http[-\w\/%&=:;.?]+)/gi,"<a href='$1'>$1</a>");
C=C.replace(/\[太字\](.*?)\[\/太字\]/g, "<b>$1</b>");
C=C.replace(/\[斜体\](.*?)\[\/斜体\]/g, "<i>$1</i>");
C=C.replace(/\[下線\](.*?)\[\/下線\]/g, "<u>$1</u>");
C=C.replace(/\[打消\](.*?)\[\/打消\]/g, "<s>$1</s>");
C=C.replace(/\[色:(.*?)\](.*?)\[\/色\]/g,"<font color='#$1'>$2</font>");
C=C.replace(/\[絵文字\:([vie])[-]([0-9]+)\]/g, G+"$1/$2.gif' />");
document.getElementById('prv').innerHTML = C;
}
function Prep() {
document.write('<input type="button" onClick="PV()" value="preview" />');
document.write('<p id="prv"></p>');
}
Prep();