function openFoto2(f,tit){
	window.open("foto.php?t=" + tit + "&p=" + f , "popFoto" , "width=420,height=340");
}

function openFoto(f,tit,w,h){
	window.open("prodfoto.php?t=" + tit + "&p=" + f , "popFoto" , "width=" + w + ",height=" + h +"");
}


function openswf(f,tit){
	window.open("swf.php?t=" + tit + "&p=" + f , "popFoto" , "width=400,height=600");
}
function openrhino(){
	window.open("rhinopop.htm" , "popFoto" , "width=400,height=600");
}
function openspacer(){
	window.open("spacepop.htm" , "popFoto" , "width=400,height=600");
}
function stampa(){
   st = parseInt(navigator.appVersion);
   if (st >= 4) {
		window.focus();
		window.print();
   }
}

function pausecomp(millis)
{
var date = new Date();
var curDate = null;

do { curDate = new Date(); }
while(curDate-date < millis);
} 


function ajaxCalendar(ins)
{
var xmlHttp;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
    }
  }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4 && xmlHttp.status == 200)
      {
	    	document.getElementById("overcontent").innerHTML=xmlHttp.responseText;
	  }
	}
  document.getElementById("overcontent").innerHTML='<img src="s/loading.gif" alt="loading" style="margin:0 auto;" />';
  xmlHttp.open("GET","include.php?ajax_ins="+ins,true);
  xmlHttp.send(null);
  }
