
function openindex()
      { 
OpenWindow=window.open("", "newwin", "height=250, width=250,toolbar=no,scrollbars="+scroll+",menubar=no");
OpenWindow.document.write("<TITLE>Title Goes Here</TITLE>")
OpenWindow.document.write("<BODY BGCOLOR=pink>")
OpenWindow.document.write("<h1>Hello!</h1>")
OpenWindow.document.write("This text will appear in the window!")
OpenWindow.document.write("</BODY>")
OpenWindow.document.write("</HTML>")

OpenWindow.document.close()
self.name="main"
     }

function clock() {
var digital = new Date();
var hours = digital.getHours();
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm = "AM";
if (hours > 11) amOrPm = "PM";
if (hours > 12) hours = hours - 12;
if (hours == 0) hours = 12;
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = '<b>'+hours + ":" + minutes + ":" + seconds + " " + amOrPm+'</b>';
document.getElementById('pendule').innerHTML = dispTime;
setTimeout("clock()", 1000);
}
function clock2() {
var digital = new Date();
var hours = digital.getHours();
var minutes = digital.getMinutes();
var seconds = digital.getSeconds();
var amOrPm = "AM";
if (hours > 11) amOrPm = "PM";
if (hours > 12) hours = hours - 12;
if (hours == 0) hours = 12;
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
dispTime = '<b>'+hours + ":" + minutes + ":" + seconds + " " + amOrPm+'</b>';
document.getElementById('pendule2').innerHTML = dispTime;
setTimeout("clock2()", 1000);
}


function goLiteo(FRM,BTN)
{
   window.document.forms[FRM].elements[BTN].style.color = "#663300";
   window.document.forms[FRM].elements[BTN].style.backgroundColor = "#FFCC44";
   window.document.forms[FRM].elements[BTN].style.borderColor = "#9999DD";
}

function goDimo(FRM,BTN)
{
   window.document.forms[FRM].elements[BTN].style.color = "#888888";
   window.document.forms[FRM].elements[BTN].style.backgroundColor = "#EEEEEE";
   window.document.forms[FRM].elements[BTN].style.borderColor = "#BBBBBB";
}

function goLiteb(FRM,BTN)
{
   window.document.forms[FRM].elements[BTN].style.color = "#663300";
   window.document.forms[FRM].elements[BTN].style.backgroundColor = "#FFCC44";
   window.document.forms[FRM].elements[BTN].style.borderColor = "#9999DD";
}

function goDimb(FRM,BTN)
{
   window.document.forms[FRM].elements[BTN].style.color = "#888888";
   window.document.forms[FRM].elements[BTN].style.backgroundColor = "#EEEEEE";
   window.document.forms[FRM].elements[BTN].style.borderColor = "#BBBBBB";
}

function activateMenu(nav) {

/* currentStyle restricts the Javascript to IE only */
	if (document.all &&
 document.getElementById(nav).currentStyle) {  
        var navroot = document.getElementById(nav);
        
        /* Get all the list items within the menu */

        var lis=navroot.getElementsByTagName("LI");  
        for (i=0; i<lis.length; i++) {
        
           /* If the LI has another menu level */
            if(lis[i].lastChild.tagName=="UL"){
            
                /* assign the function to the LI */
             	lis[i].onmouseover=function() {	
                
                   /* display the inner menu */
                   this.lastChild.style.display="block";
                }
                lis[i].onmouseout=function() {   
                   this.lastChild.style.display="none";
                }
            }
        }
    }
}




