	function loadAll()
		{
		//if (window.attachEvent) navHover();
		var p=window.document.getElementById('job_disponibili')
		var l=window.document.getElementById('job_urgenti')
		var r=window.document.getElementById('job_spontanee')
		//alert(primaryDIV.clientHeight+135)
		
		//la DIV piu alta è quella a sinistra
		if(l.clientHeight>r.clientHeight)
			{
			changeHeight(l.clientHeight,p,r)
			//alert(l.clientHeight)
			}
		else
			{
			changeHeight(r.clientHeight,p,l)
			}
		}
	function changeHeight(h,p,l)
		{
		p.style.height=h+'px';
		l.style.height=h+'px';
		}
	//onload=loadAll
	
	var o=null;
	function openRequisiti(p)
		{
		if( o!=null)
			{
			o.style.display='none';
			//loadAll();
			if(o.id==p)
				{
				o=null;
				return;
				}
			}
		o=window.document.getElementById(p)
		o.style.display='';
		//loadAll();
		}

	function inviaCV(tipo,sede,settore,position,title)
		{
		var t=window.document.getElementById(position+'_titjob')
		if(!title){title='';}
		if(t!=null)
			{
			window.document.getElementById('tit_job').innerHTML='rif.: '+t.innerHTML
			}
		else
			{
			window.document.getElementById('tit_job').innerHTML='rif.: '+title;
			}
		window.document.getElementById('apply_form_div').innerHTML = '<br><iframe style="width:555px;height:370px;" frameborder="0" src="application-form.asp?tipo='+tipo+'&sede='+sede+'&settore='+settore+'&pos='+position+'"></iframe>'
		var apply=window.document.getElementById('apply_form');
		apply.style.display='';
		}
	function closeForm()
		{
		if(confirm('Sei sicuro di voler annullare la compilazione dei dati?') == true)
			{
			window.document.getElementById('apply_form_div').innerHTML='';
			window.document.getElementById('apply_form').style.display='none';
			}
		}	