<!--
//----------------------------------------------------------
//Reloads the window on resize if the user is using Netscape 4
function NetscapeReload(nav) {  
  if (nav == true) with (navigator) {
  	if ((appName == "Netscape") && (parseInt(appVersion) == 4)) {
    		document.pageWidth = innerWidth; 
    		document.pageHieght = innerHeight; 
    		onresize = NetscapeReload; 
    	}
   }
  else if (innerWidth != document.pageWidth || innerHeight != document.pageHieght) location.reload();
}
NetscapeReload(true);

//----------------------------------------------------------
//--- Function to resize and center window 
function ResizeWindow() {
	var w = window.screen.availWidth/2, h = window.screen.availHeight/2;
	var Current = document.formRW.selectRW.selectedIndex;
  if (document.formRW.selectRW.options[Current].value == '800x600') {
		if (w < 400 || w < 300) {
		alert("Your screen size is " + w*2 + "x" + h*2 + "\nThe window will be set to this size.");
		window.moveTo(0,0);
			if (document.all) {top.window.resizeTo(screen.availWidth,screen.availHeight);}
			else if (document.layers||document.getElementById) {
				if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth) {
					top.window.outerHeight = screen.availHeight; top.window.outerWidth = screen.availWidth;} };}
		else {
		window.moveTo((window.screen.availWidth-w)-400,(window.screen.availHeight-h)-300);
		window.resizeTo(800,600);}}
  else if (document.formRW.selectRW.options[Current].value == '1024x768') {
		if (w < 512 || w < 384) {
		alert("Your screen size is " + w*2 + "x" + h*2 + "\nThe window will be set to this size.");
		window.moveTo(0,0);
			if (document.all) {top.window.resizeTo(screen.availWidth,screen.availHeight);}
			else if (document.layers||document.getElementById) {
				if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth) {
					top.window.outerHeight = screen.availHeight; top.window.outerWidth = screen.availWidth;} };}
		else {
		window.moveTo((window.screen.availWidth-w)-512,(window.screen.availHeight-h)-384);
		window.resizeTo(1024,768);}}
  else if (document.formRW.selectRW.options[Current].value == '1280x1024') {
		if (w < 640 || w < 512) {
		alert("Your screen size is " + w*2 + "x" + h*2 + "\nThe window will be set to this size.");
		window.moveTo(0,0);
			if (document.all) {top.window.resizeTo(screen.availWidth,screen.availHeight);}
			else if (document.layers||document.getElementById) {
				if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth) {
					top.window.outerHeight = screen.availHeight; top.window.outerWidth = screen.availWidth;} };}
		else {
			window.moveTo((window.screen.availWidth-w)-640,(window.screen.availHeight-h)-512);
			window.resizeTo(1280,1024);}}
  else if (document.formRW.selectRW.options[Current].value == 'Full') {
		window.moveTo(0,0);
			if (document.all) {top.window.resizeTo(screen.availWidth,screen.availHeight);}
			else if (document.layers||document.getElementById) {
				if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth) {
					top.window.outerHeight = screen.availHeight; top.window.outerWidth = screen.availWidth;}};
}}

//----------------------------------------------------------
//Hide status bar msg II script
function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

//----------------------------------------------------------
//--- Function to put a real time clock in the status bar 
function StatusBarClock() {
   window.setTimeout( "StatusBarClock()", 1000 );
   t = new Date();
      self.status = "Local Time: " + t.toString();
}
//StatusBarClock()

//----------------------------------------------------------
//Function to put a real time clock in the status bar 
//function StatusBarClock() {
//   window.setTimeout( "StatusBarClock()", 1000 );
//   t = new Date();
//      self.status = "Local Time: " + t.toString();
//}
//StatusBarClock()
function ShowTime() {
var TimerKey;
var now = new Date();
var DayN = now.getDay();
var Month = now.getMonth();
var Year = now.getYear();
var Day = now.getDate();
var Hours = now.getHours();
var Minutes = now.getMinutes();
var Seconds = now.getSeconds();
//var x = new Array("sunday", "monday", "tuesday", "wednesday","thursday", "friday", "sunday");
//var y = new Array("January", "February", "March", "April","May", "June", "July", "August","September", "October", "November", "December");
var x = new Array("domenica", "lunedì", "martedì", "mercoledì","giovedì", "venerdì", "sabato");
var y = new Array("gennaio", "febbraio", "marzo", "aprile","maggio", "giugno", "luglio", "agosto","settembre", "ottobre", "novembre", "dicembre");
//TimeDisplay.innerText = (" " + x[DayN] + " " + Day + " " + y[Month] + " " + Year + ", " +  Hours + ((Minutes < 10) ? ":0" : ":") + Minutes + ((Seconds < 10) ? ":0" : ":") + Seconds + "  ");
self.status = ("Local Time: " +  Hours + ((Minutes < 10) ? ":0" : ":") + Minutes + ((Seconds < 10) ? ":0" : ":") + Seconds + " - " + y[Month] + " " + Day + " " + Year + ", "  + x[DayN] + " - Powered by LASP Open Site");
TimerKey = setTimeout("ShowTime()",1000);
}
ShowTime()

//----------------------------------------------------------
//--- Function to hide image download on right click 
if (window.Event) document.captureEvents(Event.MOUSEUP); 
function nocontextmenu()  {
  event.cancelBubble = true;
  event.returnValue = false;
  return false;
}
function norightclick(e) {
  if (window.Event) {
    if (e.which == 2 || e.which == 3) return false;
  } else if (event.button == 2 || event.button == 3) {
    event.cancelBubble = true;
    event.returnValue = false;
    return false;
  }
}
document.oncontextmenu = nocontextmenu;		
document.onmousedown = norightclick;		

var message="All images on this website copyright " + String.fromCharCode(169) + " LASP.net.\r\All rights are reserved worldwide.\r\Thanks for visiting the site. www.lasp.net";
function click(e) {
  if (document.all) {
    if (event.button == 2) {
      alert(message);
      return false;
    }
  }
  if (document.layers) {
    if (e.which == 3) {
      alert(message);
      return false;
    }
  }
}
if (document.layers) document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=click;

//----------------------------------------------------------
//--- Function to check the Site Search form before submitting
function CheckSiteSearch () {

	if (document.frmSiteSearch.search.value==" Search Site Here "||document.frmSiteSearch.search.value==""){
		alert("Please enter your search word(s). ");
		document.frmSiteSearch.search.focus();
		return false;
	}
	
	return true
}

//--- Function to clear the Site Search form field onfocus
function clearfieldsite(){
if (document.frmSiteSearch.search.value != "")
	document.frmSiteSearch.search.value = "";
}

//----------------------------------------------------------
//--- Function to check the Google form before submitting
function CheckGoogleSearch () {

	if (document.frmGoogleSearch.q.value==" Search Web Here "||document.frmGoogleSearch.q.value==""){
		alert("Please enter your search word(s). ");
		document.frmGoogleSearch.q.focus();
		return false;
	}

	return true
}
	
//--- Function to clear the Google form field onfocus
function clearfield(){
if (document.frmGoogleSearch.q.value != "")
	document.frmGoogleSearch.q.value = "";
}

//-->
