function doFeatured(thisSid, featured) 
{
    sid = thisSid;
    d = document.getElementById("featured" + sid);
    
    if(xmlhttp)
    {
       xmlhttpdo("/php/jsrpc.php?function=setFeatured&sid=" + sid + "&featured=" + featured);
    }
    else
    {
        jsrsdo("setFeatured", Array(featured, sid))
    }
}

function feedbackDelete(thisSid ) 
{ 

    sid = thisSid;
    d = document.getElementById("feedback" + sid);
    if(confirm("are you sure"))
    {
        if(xmlhttp)
        {
            xmlhttpdo("/php/jsrpc.php?function=feedbackDelete&sid=" + sid);
        }
        else
        {
            jsrsdo("feedbackDelete", Array(sid))
        }
        
        d.height = 15;
    }
}

function feedbackEdNote(thisSid ) 
{         
    //alert(mousey);
    
    hiddenDiv = document.getElementById('edNoteformDiv');
    d = document.getElementById("editorNote" + thisSid);
    document.edNoteform.sid.value=thisSid;
    
    document.edNoteform.editorNote.value = d.innerHTML.substring(22, d.innerHTML.length - 4);
    
    showElementPositioned('edNoteformDiv',-400,0);
}

function HideEdNote() 
{ 
    hideElement('edNoteformDiv');
}

function saveEdNote() 
{
    sid = document.edNoteform.sid.value;
    content = document.edNoteform.editorNote.value;
    
    d = document.getElementById("editorNote" + sid);
    
    //setInner( '<i><b>Editor\'s Note</b>: ' + content + '</i><br />');
    
    if(xmlhttp)
    {
       xmlhttpdo("/php/jsrpc.php?function=saveEdNote&sid=" + sid + "&content=" + content);
    }
    else
    {
        jsrsdo("saveEdNote", Array(sid, content))
    }
    hideElement('edNoteformDiv');
}
