function SetAction(Action,ID,SA){
	try{
		var Form = document.getElementById(ID);
		Form.action = "index.php?m=MyAccount&a=iaBlog&sa="+SA+"&option="+Action;
		Form.submit();
		}
	catch(e){
		alert(e);
		}
	}
function AddComment(ID){
	Ajax.SendForm('CommentForm','Ajax.Interface.php?m=iaBlog&a=AddComment&id='+ID+'&Ajax=true');
	Ajax.Ajax.onreadystatechange = function(){
		var StatusBar = document.getElementById("Response");
		if(Ajax.Ajax.readyState>4){
			StatusBar.innerHTML = "Cargando...";
			}
		if(Ajax.Ajax.readyState==4){
			StatusBar.innerHTML = Ajax.Ajax.responseText;
			ReloadComments(ID,1);
			document.getElementById("CommentForm").innerHTML = "";
			}
		}	
	}
function ReloadComments(ID,Page){
	//Ajax.Interface.php?m=iaBlog&a=ViewEntryComments&id=4&Ajax=true
	Ajax.SendGet("Ajax.Interface.php?m=iaBlog&a=ViewEntryComments&id="+ID+"&Ajax=true&p="+Page);
	Ajax.Ajax.onreadystatechange = function(){
		if(Ajax.Ajax.readyState==4){
			document.getElementById("Comments").innerHTML = Ajax.Ajax.responseText;
			}
		}
	}