function sendNote() {
	ip=document.getElementById("newNoteInput").value;
	if (ip=="") {
		alert("Can't post an empty note");
	}else{
		sIH('newNote',"<img src='/skin/loading.gif' align='absmiddle' /> Posting note...");
		sPR('/index.php','cmd=newNote&note='+encodeUpload(ip),rSC);
		//sPR('/index.php','cmd=newNote&note='+encodeUpload(ip),alert);
	}
}
var noteRemoveContainer=null;
function removeNote(srcObj,id) {
	noteRemoveContainer=new Array(srcObj.parentNode,srcObj.parentNode.innerHTML);
	srcObj.parentNode.innerHTML="Are you sure? <span class='blockLink' onclick='deleteNote("+id+",true)'>YES</span> | <span class='blockLink' onclick='deleteNote("+id+",false)'>NO</span>";
}
function deleteNote(id,yesno) {
	if (yesno) {
		noteRemoveContainer[0].innerHTML="<img src='/skin/loading.gif' align='absmiddle' /> Removing note...";
		sPR('/index.php','cmd=removeNote&note='+id,rSC);
	}else{
		noteRemoveContainer[0].innerHTML=noteRemoveContainer[1];
		noteRemoveContainer=null;
	}
}
function showNotes(srcObj,howMany) {
	srcObj.parentNode="<img src='/skin/loading.gif' align='absmiddle' /> Retrieving notes...";
	sPR('/index.php','cmd=moreNotes&howmany='+howMany,rSC);
}
	
	