function SetChecked(f){
if(f.checked){
val = 1;
}else{
val = 0;
}
dml=document.diaryMsgDel;
len = dml.elements.length;
var i=0;
for( i=0 ; i0){
document.getElementById("reply_msg_"+key).value = document.getElementById("reply_msg_"+key).value + " " + Feelings[idx];
document.getElementById("reply_msg_"+key).focus();
}else{
document.getElementById("content").value = document.getElementById("content").value + " " + Feelings[idx];
document.getElementById("content").focus();
}
hide_ffunc(key);
}
function show_ffunc(key){
if(key>0)
var obj = document.getElementById("div_ffunc_"+key);
else
var obj = document.getElementById("div_ffunc");
if(obj){
if(obj.style.display=="none"){show_mark=1;}
obj.style.display="";
}
}
function hide_ffunc(key){
if(show_mark==1){show_mark="";return;}
if(key>0)
var obj = document.getElementById("div_ffunc_"+key);
else
var obj = document.getElementById("div_ffunc");
if(obj){obj.style.display="none";}
}