//vf_scripts
        
function popupmenu(menuid) {
    var menu_element = document.getElementById(menuid);
    menu_element.className = 'friendsmenu_on';
}
function hidemenu(menuid) {
    var menu_element = document.getElementById(menuid);
    menu_element.className = 'friendsmenu';
}    

//function to show the edit status popup:
function openStatusPopup() { 
    var statusPopup = document.getElementById('statuspopup');
    statusPopup.style.display = 'block';  
    if (typeof document.getElementById('current_status') != 'undefined'){
		document.getElementById('current_status').style.display = "none";
	} 
    if (typeof document.getElementById('input_statustxt') != 'undefined'){	    
		document.getElementById('input_statustxt').style.display = "";
	}
}
        
        
        
//function to hide the edit status popup:
function closeStatusPopup() {
    var statusPopup = document.getElementById('statuspopup');
    statusPopup.style.display = 'none';
}
      


function getFocusChangeInput(value, id){ // This calls our function ClearInput, and the two variables we will need for it to function the original value and the id.
	var input = document.getElementById(id); // Gets the input field based on its id.
	if(value == input.value){ // If the default value is equal to the current value.
	input.value = ''; // Empty It.
	}else{ // Else the value is not equal to the current input field value.
	input.value = input.value; // Leave it the same.
	} // End Else. 
	

	
} // Close Function.



function loseFocusChangeInput(value, id){
	var input = document.getElementById(id); // Gets the input field based on its id.
	if(input.value == ""){ // If value is empty
	input.value = value; // set it
	}
} // Close Function.      

