
addComment = {
	moveForm : function(commId, parentId, respondId, postId) {
		var t = this, div, comm = t.I(commId), respond = t.I(respondId), cancel = t.I('cancel-comment-reply-link'), parent = t.I('comment_parent'), post = t.I('comment_post_ID');
		
//		if ( ! comm || ! respond || ! cancel || ! parent ) {
		if ( ! comm) {
			alert('not comm');
		}
		if ( ! respond) {
			alert('not respond');
		}
		if ( ! parent) {
			alert('not parent');
		}
		if ( ! comm || ! respond || ! parent) {
//			alert('nothing1');
			return;
		}

		t.respondId = respondId;
		postId = postId || false;

		if ( ! t.I('wp-temp-form-div') ) {
//			alert('nothing2');
			div = document.createElement('div');
			div.id = 'wp-temp-form-div';
			div.style.display = 'none';
			respond.parentNode.insertBefore(div, respond);
		}
//		alert('respondplace-'+parentId);
//		comm.parentNode.insertBefore(respond, t.I('respondplace-'+parentId));
		rpl = t.I('respondplace-'+parentId);
		rpl.style.height = '240px';
		rpl.appendChild(respond);
		
		if ( post && postId )
			post.value = postId;
		parent.value = parentId;
		try { t.I('comment').focus(); }
		catch(e) {}

		return false;
	},

	I : function(e) {
		return document.getElementById(e);
	}
}

