function addnotes(id){

	cnt=Ajax("/js/addnotes.php?id="+id);
	
	gete("notescount").innerHTML=Math.abs(cnt);

	if(cnt>0){
		gete("checkico1_"+id).style.display="block";
		gete("checkico0_"+id).style.display="none";
		gete("check_"+id).innerHTML="<b>В заметках<b>";
	}else{
		gete("checkico0_"+id).style.display="block";
		gete("checkico1_"+id).style.display="none";
		gete("check_"+id).innerHTML="В заметки";
	}

	if(Math.abs(cnt)>0){
		gete("notesico1").style.display="block";
		gete("notesico0").style.display="none";
	}else{
		gete("notesico0").style.display="block";
		gete("notesico1").style.display="none";

	}		
	

}

