
function updatePreview(completed, url, prgcv)
{    
	new Ajax.Updater('preview_curriculum'+prgcv, url,
	{
		method: 'post',
		parameters: {completed:completed, prgcv:prgcv},
		onComplete: function(){ 
		 } 
		}
   );		
}



function UpdateFont(id){
		if(id==1)
		{	
			$('Calibri').checked="checked";
		}
		
		if(id==2)
		{	
			$('Arial Narrow').checked="checked";
		}
		
		if(id==3)
		{	
			$('Tahoma').checked="checked";
		}
}



function infosVisibility(id, idarrow){
		if($(id).visible()==true)
		{
			
			$(idarrow).style.background = "url(/images/tips_arrow_down.png) right no-repeat";
			$(id).hide();

		}
		else{	
					
			$(id).show();
			$(idarrow).style.background = "url(/images/tips_arrow_up.png) right no-repeat";
			
		}
}

