
//###############################################################################



//                        Time  and Date                                        #
//###############################################################################

         
  var timerID = null
  var timerRunning = false
  function MakeArray(size)
  {
  this.length = size;
  for(var i = 1; i <= size; i++)
  {
  this[i] = "";
  }
  return this;
  }
  function stopclock (){
  if(timerRunning)
  clearTimeout(timerID);
  timerRunning = false
  }
  function showtime () {
  var now = new Date();
  var year = now.getYear();
  var month = now.getMonth() ;
  var date = now.getDate();
  var hours = now.getHours();
  var minutes = now.getMinutes();
  var seconds = now.getSeconds();
  var day = now.getDay();
  Day = new MakeArray(7);
  Day[0]="Sun";
  Day[1]="Mon";
  Day[2]="Tue";
  Day[3]="Wed";
  Day[4]="Thu";
  Day[5]="Fri";
  Day[6]="Sat";

  var timeValue = "";
  timeValue += (Day[day]) + "   ";

  timeValue += ((month > 10) ? " 0" : " ") + date + "-";

  Month = new MakeArray(11);
  Month[0]="Jan";
  Month[1]="Feb";
  Month[2]="Mar";
  Month[3]="Apr";
  Month[4]="May";
  Month[5]="Jun";
  Month[6]="Jul";
  Month[7]="Agu";
  Month[8]="Sep";
  Month[9]="Oct";
  Month[10]="Nov";
  Month[11]="Dec";
  timeValue += (Month[month]) + "-" + year + "    ";


  timeValue += ((hours <= 12) ? hours : hours - 12);
  timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
  timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
  timeValue += (hours < 12) ? " am" : " pm";
  document.all.clock.value = timeValue;
  timerID = setTimeout("showtime()",1000);
  timerRunning = true
  }
  function startclock () {
  stopclock();
  showtime()
  }





<!-- //Inizio right click disabled
  var isNS = (navigator.appName == "Netscape") ? 1 : 0;
      if(navigator.appName == "Netscape") document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
        function mischandler(){   return false; }  function mousehandler(e){ 	var myevent = (isNS) ? e : event;
         	var eventbutton = (isNS) ? myevent.which : myevent.button;    
            if((eventbutton==2)||(eventbutton==3)) return false; } 
            document.oncontextmenu = mischandler;
               document.onmousedown = mousehandler; 
               document.onmouseup = mousehandler;

<!--//Fine






// hide status bar
function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus 
document.onmouseout=hidestatus
// Fine-->



var tags = new Array( 'p');
var pixelArray =  new Array('10','12','16','20','24');
var emArray =  new Array('0.7','0.9','1.0','1.5','2.0','2.5','3');
var initSize = 1;

function fontSizer(inc,unit) {
	if (!document.getElementById)
		return;
	var size = initSize;
		size += inc;
	if (size < 0 ) {
		size = 0;
}
	if (size > 6 ) {
		size = 6;
}
		initSize = size;
		getBody = document.getElementsByTagName('body')[0];
	for (i = 0 ; i < tags.length ; i++ ) {
		getallTags = getBody.getElementsByTagName(tags[i]);
	for (k = 0 ; k < getallTags.length ; k++)
		getallTags[k].style.fontSize = (unit=='px') ? pixelArray[size]+unit: emArray[size]+unit;
	}
}

function SwapImage1() {
  document.image1.src="./images/valid_css.bmp"
}
function SwapImage1Back() {
  document.image1.src="./images/valid_css1.bmp"
}
function SwapImage2() {
  document.image2.src="./images/valid_html.bmp"
}
function SwapImage2Back() {
  document.image2.src="./images/valid_html1.bmp"
}

function SwapImage1() {
  document.image1.src="./images/valid_css.bmp"
}
function SwapImage1Back() {
  document.image1.src="./images/valid_css1.bmp"
}
function SwapImage2() {
  document.image2.src="./images/valid_html.bmp"
}
function SwapImage2Back() {
  document.image2.src="./images/valid_html1.bmp"
}
     
function addfav(title, url){
if (window.sidebar)
window.sidebar.addPanel(title, url, "");
else if (document.all)
window.external.AddFavorite(url, title);
}
