﻿function writeBoxReplyComment(userReply){
var str='';

str+='<div style="overflow:hidden;z-index:1;width:490px;margin-top:10px" align="left">';
str+='    <div style="overflow:hidden"><img src="\/ImagesGUI\/Portal\/MISC\/cmReply_03.jpg" \/><\/div>  ';
str+='    <div style="overflow:hidden;width:486px;padding:2px;background:url(\/ImagesGUI\/Portal\/MISC\/cmReply_05.jpg) repeat-y">';
str+='    <div style="overflow:hidden"><img src="\/ImagesGUI\/Portal\/MISC\/123Close.gif" width="15px" style="float:right;cursor:pointer" onclick="ClosePopupReply();"></div>  ';
str+='    <div style="font-size: 14px;display: none; font-family: Arial; font-weight: bold; margin-top: 15px;overflow:hidden;text-align:center" id="tblMessageReply">';
str+='    "Bạn đã gửi bình luận thành công"<br \/><a href="" onclick="return ClickHereReply();">Clik vào đây để tiếp tục bình luận<\/a>';
str+='    <\/div>';
str+='    <div style="width: 471px; font-size: 12px;font-family: Arial;;padding:10px" id="tblPostReply">';
str+='        <div style="overflow:hidden;padding-top:10px">';
str+='            <div style="width:80px;float:left" >Tên của bạn:<\/div>';
str+='            <div style="width:380px;float:left" align="left"><input class="bordertextbox" id="txtNameReply" type="text" style="width: 300px;" \/><span style="color: Red">*<\/span><\/div>            ';
str+='        <\/div>';
str+='        <div style="overflow:hidden;padding-top:10px">';
str+='            <div style="width:80px;float:left">Mail của bạn:<\/div>';
str+='            <div style="width:380px;float:left"  align="left"><input class="bordertextbox" id="txtMailReply" type="text" style="width: 300px;" \/><span style="color: Red">*<\/span><\/div>';
str+='        <\/div>';
str+='        <div style="overflow:hidden;padding-top:10px">';
str+='            <div style="width:40px;float:left">&nbsp;<\/div>';
str+='            <div style="width:400px;float:left;vertical-align:bottom">';
str+='                <input id="rTV" type="radio" checked="CHECKED" title="Telex" onfocus="setTypingMode(1);"name="TV" \/>Telex &nbsp;';
str+='                <input id="Radio2" type="radio" title="VNI" onfocus="setTypingMode(2);" name="TV" \/>VNI&nbsp;';
str+='                <input id="Radio1" type="radio" title="Name" onfocus="setTypingMode(0);" name="TV" \/>None&nbsp;&nbsp;&nbsp;';
str+='                <img src="\/ImagesGUI\/Portal\/Misc\/selectEmoticon.gif"  style="cursor:pointer" onclick="EMOTICONReply.show(\'txtContentReply\')" \/>';

str+='            <\/div>';
str+='        <\/div>';
str+='        <div style="overflow:hidden;padding-top:10px;padding-left:10px;width:440px" >';
str+='            <div style="overflow:hidden;height:105px;border:solid 1px #ffb200;padding:5px;">';
str+='                <div style="border: solid 2px #ccc; width: 60px;float:left;margin-right:10px" onclick="EMOTICONReply.showAvatar(\'imgAvatarReply\');"><img id="imgAvatarReply" alt="" src="\/ImagesGUI\/AvatarComment\/02.jpg" width="60px" onmouseout="hideddrivetip();" onmouseover="ddrivetip(\'<img src=\/ImagesGUI\/Portal\/MISC\/12.gif \/>\',\'\',\'\')"  \/><\/div>';
str+='                <textarea rows="5" cols="61" id="txtContentReply" class="bordertextbox"  onkeyup="telexingVietUC(this,event);" style="border:0px; height: 85px; font-family: Arial; font-size: 12px;float:left" >';
str+='@'+userReply+': ';
str+='<\/textarea>';
str+='            <\/div>';
str+='        <\/div>';
str+='        <div style="overflow:hidden;padding:10px 10px 5px 5px;" align="right">';
str+='              <img src="/ImagesGUI/Portal/MISC/guiphanhoi.jpg" style="cursor:pointer" onclick="return ValidateSendCommentReply();" \/>';
str+='              <input type="hidden" id="hidenURLAvatarReply" \/>';
str+='        <\/div>';
str+='    <\/div>';
str+='    <\/div>';
str+='    <div style="overflow:hidden"><img src="\/ImagesGUI\/Portal\/MISC\/cmReply_03.jpg" \/><\/div>  ';
str+='<\/div>';
return str;
}

   
function showtextReply(ctr)
{
    if(ctr.value == "")
    ctr.value=temp;
}
function hiddentextReply(ctr)
{
    if(ctr.value==temp)
    ctr.value="";
}

function ClickHereReply()
{
    document.getElementById('tblMessageReply').style.display = "none";
    document.getElementById('tblPostReply').style.display = "";
    return false;
}