function updateParent(value)
{
    dojo.byId("form[parent_id]").value = value;
    tinyMCE.activeEditor.focus();
    return false;
}  

function processVote(url, type, id)
{
    var myDiv = "rating" + type + "-" + id;
    var url = url + '/format/json';
    
    dojo.style(myDiv,{
        display:"none"
    });
        
    dojo.xhrPost({  
        url: url,
        handleAs: "json",
        load: function(response, ioArgs) {
              if (response.status) {
                dojo.byId(myDiv).innerHTML = response.message;
                dojo.style(myDiv,{
                    display:"block"
                });
              } 
              //console.debug(response);
              return response;  
        },  
        error: function(response, ioArgs) {  
            //console.error("HTTP status code: ", ioArgs.xhr.status);  
            return response;
        }  
    });
}

function processComment()
{
	var content = tinyMCE.activeEditor.getContent();
    dojo.byId("form[comment_text]").value = content;
    dojo.byId("form[submit]").disabled = true;
	//alert(content);
    //dojo.byId("postComment").submit();
}
