function apriImg(image,larg,alt) {
larg=larg;
alt=alt;
posX=(screen.width-larg)/2;
posY=(screen.height-alt)/2;
win=window.open('','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+larg+',height='+alt+',left='+posX+',top='+posY+'');
win.document.write('<head><title>Skill Service Consulting Security</title></head>');
win.document.write('<body bgcolor=#ffffff topmargin=0 leftmargin=0 bottommargin=0 marginwidth=0 marginheight=0 style=\"overflow:hidden\">');
win.document.write('<table align=center width=100% height=100% cellpadding=0 cellspacing=0><tr><td align=center valign=middle width=100% height=100%><a href=\"javascript:self.close()\"><img src='+image+' border=0></a></td></tr></table>');
win.document.write('</body></html>');
void(0);
win.focus();
}

function controlla (){
	flag=0;
	campo=new Array('nome','email','tel');
	for (i=0;i<=2;i++) {
		appo=document.x[campo[i]].value;
		if((trim(appo)=='')||(trim(appo)=='undefined')) {
			document.getElementById('b'+i).style.color='#A62926';
			flag=1;
		} else {
 			document.getElementById('b'+i).style.color='#000000';
		}
	}
	if (flag==1) {
		alert ("Skill Service Consulting Security:\nDati incompleti!\n");
		return false;
	}
}

function trim(s) {
  while (s.substring(0,1) == ' ') {
    s = s.substring(1,s.length);
  }
  while (s.substring(s.length-1,s.length) == ' ') {
    s = s.substring(0,s.length-1);
  }
  return s;
}

function hilight( obj ) { if (!document.layers) {
obj.style.background = '#E2D7CB';
return true;
}
}
function fade( obj ) { if (!document.layers) {
obj.style.background = '#FBF4EC';
return true;
}
}
