function jsDelReply(){return confirm('刪除後無法回復,是否確定刪除此回應?');};
function jsDelPost(){return confirm('刪除後無法回復,是否確定刪除此網誌?');};
function JsReply(jc){
var a=$S('Re'+jc).display;
var c=$('ShowRe'+jc).innerHTML;
if(a=='block'){
$S('Re'+jc).display='none';$S('ShowRe'+jc).display='block';
}else{
$S('Re'+jc).display='block';$S('ShowRe'+jc).display='none';
};
if(c=='')$S('ShowRe'+jc).display='none';
};
function JsReplySend(jc){
var a=$('BlogReply'+jc).value;
var b=encodeURI($('BlogReplyPoster'+jc).value);
var c=$('BlogReplyPassport'+jc).value;
var jBlogID=$('BlogID'+jc).value;
var sendata='BlogReply='+encodeURI(a)+'&BlogReplyPoster='+b+'&BlogReplyPassport='+c+'&BlogID='+jBlogID;
jsLoad('/console/kurabu/blog/ajax_blog_reply.asp?'+jc,0,0,sendata);
a=a.replace(/\n /g,"
");
a=a.replace(/\n/g,"
");
$('ShowRe'+jc).innerHTML=a;
JsReply(jc);
};
function jsLoad(f,s,t,d){//f:位置,s:類型(0不顯示1顯示),t:目標id,d:傳送資料
xmlhttp=createXMLHttpRequest();
if(xmlhttp){
xmlhttp.onreadystatechange=function(){
if(xmlhttp.readyState==4){
if(s==1){$(t).innerHTML=xmlhttp.responseText;};
};
};
xmlhttp.open('post',f,true);
if(d!=''){xmlhttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');};
xmlhttp.send(d);
};
};