document.write("
")
function cf_switch1(){
var o=document.getElementById('CF_Face');
if(o.style.display=='none'){
o.style.display='block';
}else{
o.style.display='none';
}
}
function resetcontent(){
var frm=document.frmComment;
clipboardData.setData('Text',frm.elements['content'].value);
frm.elements['content'].value = '';
}
function gcontent(){
var frm=document.frmComment;
frm.elements['content'].value =clipboardData.getData('Text');
}
function fn_anony(o){
var frm=document.frmComment;
if(o.checked) {frm.elements['password'].value='';document.getElementById('passwordinput').style.display='none';document.getElementById('CF_Url').style.display='';}
else{ document.getElementById('passwordinput').style.display = '';document.getElementById('CF_Url').style.display='none'; }
}
function cf_switch(){
var o=document.getElementById('CF_Other');
if (o) o.style.display='none';
var o=document.getElementById('CF_Email');
if (o) o.style.display='block';
}
function cf_zoomin(){
var o=document.getElementById('CF_Content');
if (o.rows==13) o.rows=o.rows-10;
}
function cf_zoomout(){
var o=document.getElementById('CF_Content');
if (o.rows==3) o.rows=o.rows+10;
}
function fastPost(eventobject){
if(event.ctrlKey && window.event.keyCode==13){
if(document.frmComment.elements['submitButton'].disabled)
return false;
document.frmComment.elements['submitButton'].disabled='true';
return sendData();
}
}
function changecode(){
var o=document.getElementById('VCodeimg');
o.src='/useradmin/checkcode.aspx?id='+Math.random();
}
function AddText(NewCode){
if(document.all){
insertAtCaret(document.frmComment.content, NewCode);
document.frmComment.content.focus();
}else{
document.frmComment.content.value += NewCode;
document.frmComment.content.focus();
}
}
function insertAtCaret (textEl, text){
if (textEl.createTextRange && textEl.caretPos){
var caretPos = textEl.caretPos;
caretPos.text += caretPos.text.charAt(caretPos.text.length - 2) == ' ' ? text + ' ' : text;
}else if(textEl){
textEl.value += text;
}else{
textEl.value = text;
}
}
function chFace(what){
AddTxt=what;
AddText(AddTxt);
}