function create_month()
{
   var mydate=new Date();
   //alert(mydate.getMonth());
   var mymonth=mydate.getMonth();
   var myyear=mydate.getFullYear();
   mymonth2=mymonth;
   myyear2=myyear;
   var ret='';
   var arr=new Array("", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
   for(var t=0; t<24; t++)
   {
       if(mymonth==12)
            {
               mymonth=1;
               myyear++;
            }
       else
             mymonth++;       
       ret=ret+'\n<option value="'+mymonth+'-'+myyear+'">'+arr[mymonth]+' '+myyear+'</option>';
   }
   document.write(ret);
}

function set_form()
{
   var mydate=new Date();
   var myday=mydate.getDate();
   var mymonth=mydate.getMonth();
   var myyear=mydate.getFullYear(); 
   document.myform.in_day[myday-1].selected=true;
   if(myday<31)
      document.myform.out_day[myday].selected=true;
   else
     { 
         document.myform.out_day[0].selected=true;
         document.myform.out_month[1].selected=true;
     }
}

function Riempi(myindex)
{
    if(document.myform.in_day.selectedIndex!=30)
         document.myform.out_month[myindex].selected=true;
    else
         document.myform.out_month[myindex+1].selected=true;
}

function Riempi2(myindex)
{
    if(document.myform.in_day.selectedIndex!=30)
         document.myform.out_day[myindex+1].selected=true;
    else
         document.myform.out_day[0].selected=true;
}

function load_page2(testo)
{
     mydiv.innerHTML=testo;
}


function addoption(el, value, label){
el=document.getElementById(el);
var o=new Option( label, value, false, true);
el.options[el.options.length]=o;
el.options[0].selected = true
}

function get_day(elemento)
{
   for(var i=1; i<32; i++)
      addoption(elemento, i,i);
}

function privacy_hidden()
{
	 if(document.form_invio.privacy)
	  {
	    document.form_invio.privacy.style.height='80px';
		document.form_invio.privacy.readOnly='readOnly';
		document.form_invio.privacy.style.color='#C0C0C0';
	  }
}

