var job = {
	emailJob: function ( title, job_id ){
		//get the element to make it visible
		var friend_form = document.getElementById("friend_form");

		//update the element's title
		var friend_form_title = document.getElementById("friend_form_title_div");
		friend_form_title.innerHTML = '<font class="modaltext2">' + title + '</font>';
		document.friend_form['friend_form_title'].value = title;

		//update the job id
		document.friend_form['friend_job_id'].value  = job_id;

		//display element	
		friend_form.style.display = "inline";
	},

	hideEmailJob : function (){
		//get the element to make it invisible
		var friend_form = document.getElementById("friend_form");	

		friend_form.style.display = "none";
	},

	reloadBox : function ( title, job_id, email, name ){
		//display the title and set the job id
		emailJob( title, job_id );

		//display the email and friend's name
		document.friend_form['friend_email'].value = email;
		document.friend_form['your_name'].value = name;
	}

};
