function getSO() {
   if (navigator.userAgent.toLowerCase().indexOf("win") != -1) {
       var so = "Windows";
   }
   else if (navigator.userAgent.toLowerCase().indexOf("mac") != -1) {
       var so = "Macintosh";
   }
   else if (navigator.userAgent.toLowerCase().indexOf("linux") != -1) {
       var so = "Linux";
   }
   else {
       var so = "Non specificato";
   }
   return so;
}

 function CreateBookmarkLink(url,title) {
 		so = getSO();
		
        if (window.sidebar) { // Firefox
              //window.sidebar.addPanel(title, url,"");
			  tasto = so == "Macintosh" ? "CMD" : "CTRL";
			  alert ("Click " + tasto + " + D to add this bookmark");
        } else if( document.all ) { //IE
                window.external.AddFavorite( url, title);
        } else {
               alert("Sorry, your browser doesn't support this");
        }
}

function showhide(id){
 if (document.getElementById){
  obj = document.getElementById(id);
  if (obj.style.display == "none"){
   obj.style.display = "";
  } else {
   obj.style.display = "none";
  }
 }
}
$(function() {
	$("#datadinascita").datepicker({dateFormat: 'dd/mm/yy',dayNamesMin: ['Do', 'Lu', 'Ma', 'Me', 'Gi', 'Ve', 'Sa'],firstDay: 1,changeYear: true,changeMonth:true,yearRange: '1930:2020'});
});
