﻿
function show(id)
{
document.getElementById(id).style.display="";
}
function hide(id)
{
document.getElementById(id).style.display="none";
}

    function go(value)
    {
        if(value=="")
            return false;
        else
            self.location.href=value;
    }
    function swap(s,t,index,count)
    {
        for(i=0;i<=count;i++)
        {
            if(document.getElementById(s+"_"+i))
            {
                document.getElementById(t+"_"+i).style.display="none";
                document.getElementById(s+"_"+i).className="nav_unselected";
            }
        }
        if(document.getElementById(t+"_"+index)!=null)
        {
            document.getElementById(t+"_"+index).style.display="";
            document.getElementById(s+"_"+index).className="nav_selected";
        }
        if(top.location.href!=self.location.href)
                top.SetWinHeight("iframeA");
    }
    function slowShow(obj)
    {}
function getElementPos(_Obj)
{
	var _Top  = _Obj.offsetTop;
	var _Left = _Obj.offsetLeft;
	while(_Obj = _Obj.offsetParent)
	{
		_Top  += _Obj.offsetTop;
		_Left += _Obj.offsetLeft;
	}
	return {'x':_Left, 'y':_Top}
}
function showtime(t1,t2,t3,t4,t5,t6,type)
{
	var t = new Date(t1,t2,t3,t4,t5,t6);
	t = new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds())); 
	var Y=t.getFullYear();
	var S=Y.toString().substring(2);
    var M=t.getMonth()+1;    
    var d=t.getDate();
    var h=t.getHours();
    var m=t.getMinutes();
    if(M<10) M="0" + M;
    if(d<10) d="0" + d;
    if(h<10) h="0" + h;
    if(m<10) m="0" + m;
    if(type==1)
        document.write(M+"/" + d +" " +h+":"+m);
    else if(type==2)
        document.write(M+"/" + d +"/"+S+" " +h+":"+m);
    else if(type==3)
        document.write(M+"/" + d +"/"+Y);
    else if(type==4)
       document.write(M+"/" + d +"/"+S+"<br>" +h+":"+m);
    else
       document.write(M+"/" + d +"/"+Y+" " +h+":"+m);
}

<!--
//Author: Michael Gudaitis
//e-mail: jojoo@jojoo.net
//You may use this script free of charge so long as
//this copyright information stays intact.
//copyright 1998

function showWeekday(nYear,nMonth, nDay)
{
        var nSwitch = 0
        if(!(nYear % 4) && (nMonth > 2)) {
                nSwitch = 1
        }               
        var x_nDayOfWeek = cala_weekday(nMonth, nDay, nYear)
        var weekday;
        if(nSwitch) {
                x_nDayOfWeek++
                nSwitch = 0
        }
        if(x_nDayOfWeek == 0) {
                weekday= "Saturday";
        }
        if(x_nDayOfWeek == 1) {
                weekday= "Sunday";
        }
        if(x_nDayOfWeek == 2) {
                weekday= "Monday";
        }
        if(x_nDayOfWeek == 3) {
                weekday= "Tuesday";
        }
        if(x_nDayOfWeek == 4) {
                weekday= "Wednesday";
        }
        if(x_nDayOfWeek == 5) {
                weekday= "Thursday";
        }
        if(x_nDayOfWeek == 6) {
                weekday= "Friday";
        }
        document.write(weekday);
}

function cala_weekday( x_nMonth, x_nDay, x_nYear) {

        if(x_nMonth >= 3){      
                x_nMonth -= 2
        }
        else {
                x_nMonth += 10
        }

        if( (x_nMonth == 11) || (x_nMonth == 12) ){
                x_nYear--
        }
        var nCentNum = parseInt(x_nYear / 100)
        var nDYearNum = x_nYear % 100
        
        var nPart1 = parseInt(2.6 * x_nMonth - .2)
        
        var nZeller = (parseInt(nPart1 + x_nDay + nDYearNum + (nDYearNum / 4) + (nCentNum / 4) - 2 * nCentNum)) % 7
        
        if(nZeller < 0){
                nZeller += 7
        }
        return nZeller
}

