
	
	function deletemessage(messid){
	
		$("#"+messid).hide("slow");
		$.get("deletemessage.php", { messnum: messid } );
	
	}//deletes the message and hides the message
	function deleteconvo(convodiv,convoidz){
	
		$("#"+convodiv).hide("slow");
		$.get("deleteconvo.php", { convoid: convoidz } );
		
	}//deletes the whole conversation and hides the message
	
	function friendrequest(userid){
	
		$("#frequest").hide("medium");
		$.get("friendrequest.php", { friend: userid } );
		document.getElementById('warning').innerHTML='Friend request has been sent';
	
	}//sends a friendrequest
	
	function addfriend(messid,answer){
		$("#"+messid).hide("slow");
		$.get("addfriend.php", { messnum: messid, addfriend: answer  } );
		
	}//sends a friendrequest
	
	function changefriend(fid){	
		document.getElementById(fid).style.borderColor='#555555';	
	}
	
	function changefriendback(fid){	
		document.getElementById(fid).style.borderColor= '#999999';	
	}
	
	function changepicbox(fid){	
		document.getElementById(fid).style.borderColor= '#333333';
		document.getElementById(fid).style.borderBottomColor='#000000';
	}
	function changepicboxback(fid,pid){	
		document.getElementById(fid).style.borderColor= '#999999';
		document.getElementById(fid).style.borderBottomColor='#666666';
	}

	function saveStreet(){
		var pyaw=myPano.getPOV().yaw;
		var ppitch=myPano.getPOV().pitch;
		var ptext = document.getElementById('streetviewcomment').value;
		saveNewStreet(pyaw,ppitch,streetlat,streetlon,ptext);

		document.getElementById('debug').innerHTML='lat'+plat;

	}
	
