function quickreply(fname, comment_id){
	var replyForm      = $(fname);
	var oldPosition    = $(fname + 0);
	var currentComment = $(fname + comment_id);
    var parentID       = $('parent');

    if (comment_id == parentID.value || comment_id == 0){
    	replyForm.style.margin = 0;
    	parentID.value = 0;
    	oldPosition.parentNode.insertBefore(replyForm, oldPosition.nextSibling);
    } else {
    	replyForm.style.margin = '0px 0px 0px 50px';
    	parentID.value = comment_id;
    	currentComment.parentNode.insertBefore(replyForm, currentComment.nextSibling);
    }

	return false;
}

function insertext(open, close, area){

    if(area=="short"){msgfield = document.addnews.short_story}
    else if(area=="full"){msgfield = document.addnews.full_story}
    else if(area=="comment"){msgfield = document.addnews.comment}
    else if(area=="reply"){msgfield = document.addnews.reply} 
    else if(area=="comments"){msgfield = document.form.comments}

    if (document.selection && document.selection.createRange){ // IE support
        msgfield.focus();
        sel = document.selection.createRange();
        sel.text = open + sel.text + close;
        msgfield.focus();
    }

    else if (msgfield.selectionStart || msgfield.selectionStart == "0"){  // Moz support
        var startPos = msgfield.selectionStart;
        var endPos = msgfield.selectionEnd;

        msgfield.value = msgfield.value.substring(0, startPos) + open + msgfield.value.substring(startPos, endPos) + close + msgfield.value.substring(endPos, msgfield.value.length);
        msgfield.selectionStart = msgfield.selectionEnd = endPos + open.length + close.length;
        msgfield.focus();
    }
    else { // Fallback support for other browsers
        msgfield.value += open + close;
        msgfield.focus();
    }

    return;
}
/*
function cfz(sz){
			//doc=document.getElementById(docid);
			$$(#contentContainer .post).style.fontSize = sz;
	}*/