var inputBackgroundColor = "#86B6FF"; 
var inputForegroundColor = "#fff"; 
/* selectChangeStyle. Manage backgroundColor of all input components, less SELECT onFocus event. */
function changeStyle(component,flag)
{ 
  if(flag)
  {
    component.style.backgroundColor = inputBackgroundColor;
    component.style.color = inputForegroundColor;
    component.select();
  }
  else
  {
    component.style.backgroundColor = "";
    component.style.color = "";
  }
}
/* selectChangeStyle. Manage backgroundColor of SELECT component onFocus event. */
function selectChangeStyle(component,flag)
{
  if(flag)
  {
    component.style.backgroundColor = inputBackgroundColor;
    component.style.color = inputForegroundColor;
  }
  else
  {
    component.style.backgroundColor = "";
    component.style.color = "";
  }
}/* funzione per aprire una finestra */
function intercetta() {
	for (var i=0; i<document.links.length; i++) {
    	if (document.links[i].className=="linkEsterno") {
			document.links[i].target="_blank";
		}
		if (document.links[i].className=="linkRed") {
			document.links[i].target="_blank";
		}
    if (document.links[i].className=="linkEsternoPdf") {
			document.links[i].target="_blank";
		}
	}
}
window.onload = intercetta;
/* open popup */
function open_popup(url,x,y) {
sealWin = window.open(url,"win","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+x+",height="+y);
		}