function expandCommentData(textArea) {
	var cd = document.getElementById('commentdata');
	cd.style.display = '';
	if (textArea.value == 'Escribí tu comentario' || textArea.value == 'Escribí otro comentario') textArea.value = '';
	textArea.style.paddingTop = '0px';
	textArea.style.height = '200px';
	textArea.style.textAlign = 'left';
	document.getElementById('sbmtComment').disabled = false;
	document.getElementById('commentResult').style.display = 'none';
	document.getElementById('commentName').value = 'Nombre';
	document.getElementById('commentEmail').value = 'E-Mail';
	document.getElementById('commentWebpage').value = 'Página/Blog';
	document.getElementById('commentConditions').checked = false;
}

function okComment(txt){
	var cr = document.getElementById('commentResult');
	var textArea =document.getElementById('commentBody');
	cr.style.display ='';
	var cd = document.getElementById('commentdata');
	cd.style.display = 'none';
	textArea.value = 'Escribí otro comentario';
	textArea.style.paddingTop = '64px';
	textArea.style.height = '76px';
	textArea.style.textAlign = 'center';
}

function errComment(txt) {
	alert(txt);
	document.getElementById('sbmtComment').disabled = false;
}

function getMoreComments(objectType,objectID) {	
	vsmHttpRequest('/0/vnc/tools/getMoreComments.vnc?ot='+objectType+'&oid='+objectID, 'okMoreComments', 'alert', false); 	
}

function okMoreComments(txt){
	innerHTML('comments',txt);
}