<!--

var imma = new Array("images/index_05.jpg","images/index_05a.jpg","images/index_05b.jpg"); 
			var i=0; 
			setTimeout("cambia()",5000); 
			function cambia() { 
			i = (i<(imma.length-1))?(i+1):0; 
			document.getElementById("film").src=imma[i]; 
			setTimeout("cambia()",5000); 
			} 
			
		

today = new Date();

function vai()
{
	document.location.href = "ordine.asp";
}

function sys32()
{
	window.open("sys32_schermate.asp","Sys32","status=no,height=487,width=800,scrollbars=no");
}


function tlsys()
{
	window.open("tlsys_schermate.asp","Tlsys","status=no,height=487,width=800,scrollbars=no");
}

function Curriculum()
{
	window.open("form.asp","Curriculum","status=no,height=450,width=630,scrollbars=yes");
}

function Mappa()
{
	window.open("mappa.htm","Mappa","status=no,height=630,width=610,scrollbars=no");
}

function Mappa1()
{
	window.open("mappa1.htm","Mappa1","status=no,height=600,width=800,scrollbars=no");
	window.close
}

function DammiAA () {
	anno= String(today.getYear()) ;
    if (anno.length ==2) anno= "19" + annoK;
    if ((anno >= 100) && (anno < 2000)) anno = 2000 + (anno - 100);
	return anno
}
function DammiMM () {
	month = today.getMonth()
	if (month == 0)				month="gen"
	else if (month == 1) 		month="feb"
	else if (month == 2)		month="mar"
	else if (month == 3)		month="apr"
	else if (month == 4)		month="mag"
	else if (month == 5)		month="giu"
	else if (month == 6)		month="lug"
    else if (month == 7)		month="ago"
	else if (month == 8)		month="set"
	else if (month == 9)		month="ott"
	else if (month == 10)		month="nov"		
	else if (month == 11)		month="dic"			
	return month
}



function DammiGG () {
today = new Date();
return weekday = today.getDate()
}

function DammiGGG(){
   var d, day, x, s = "Today is: ";
   var x = new Array("Dom", "Lun", "Mar");
   var x = x.concat("Mer","Gio", "Ven");
   var x = x.concat("Sab");
   d = new Date();
   day = d.getDay();
   return(x[day]);
}


function OpenPriv() 
{ 
  sx = (screen.width/2) - 300;
  tp = (screen.height/2) - 200;
  window.open("privacy.asp","","left=" + sx + ",top=" + tp + ",width=650,height=400,scrollbars=yes");
}

function Go(pag)
{
	location.href = pag;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function Open(pag) 
{ 
  sx = (screen.width/2) - 100;
  tp = (screen.height/2) - 50;
  window.open(pag,"","left=" + sx + ",top=" + tp + ",width=236,height=100");
}

function Registra()
{
  if (document.formReg.ragsoc.value == "")
  {
	alert("Inserire la Ragione Sociale.");
	return;
  }
  
  if (document.formReg.username.value == "")
  {
	alert("Inserire il nome utente.");
	return;
  }

  if (document.formReg.password.value == "")
  {
	alert("Inserire la password.");
	return;
  }
  
  document.formReg.submit();	
}


function Logon()
{
  if (document.formRicerca.username.value == "")
  {
	alert("Inserire il nome utente.");
	return;
  }
  if (document.formRicerca.password.value == "")
  {
	alert("Inserire la password.");
	return;
  }
  
  document.formRicerca.submit();	
}

function Logout()
{
 location.href = "logout.asp";
}

function Demo()
{
   conUrl = "runapp.asp?";

   if (document.all.AppName.value == "") 
   {
   		alert("Selezionare una applicazione.");
		return
   }

   if (document.all.comboResolution.value == "") 
   {
   		alert("Selezionare una risoluzione.");
		return
   }

   conUrl = conUrl + "AppName=" + document.all.AppName.value + "&";
   switch (document.all.comboResolution.value)
   {
	   case "1":
	  	  {
		  conUrl = conUrl + "FS=" + 1 + "&";
		  resWidth  = screen.width;
		  resHeight = screen.height;
		  break;
		  }
	   case "2":
	  	  {
		  resWidth  = "640"
		  resHeight = "480"
		  break;
		  }
	   case "3":
	  	  {
		  resWidth  = "800"
		  resHeight = "600"
		  break;
		  }
	   case "4":
	  	  {
		  resWidth  = "1024"
		  resHeight = "768"
		  break;
		  }
	   case "5":
	  	  {
		  resWidth  = "1280"
		  resHeight = "1024"
		  break;
		  }
	   case "6":
	  	  {
		  resWidth  = "1600"
		  resHeight = "1200"
		  break;
		  }
   }
   
   conUrl = conUrl + "rW=" + resWidth + "&";
   conUrl = conUrl + "rH=" + resHeight + "&";
   
/*   W = resWidth + 50;
   H = resHeight + 50;
	alert("menubar=no,width=" + W + ",height=" + H);
	*/
   window.open(conUrl,"","menubar=no,width=" + resWidth + ",height=" + resHeight);
}


//-->

