// JavaScript Document



function updateTime() {



        var day = "";

        var month = "";

        var myweekday = "";

        var year = "";

        mydate = new Date();

        myday = mydate.getDay();

        mymonth = mydate.getMonth();

        myweekday = mydate.getDate();

        weekday = myweekday;

        myyear = mydate.getYear();

        year = myyear

        if (myday == 0)

            day = " Sunday, "

        else if (myday == 1)

            day = " Monday, "

        else if (myday == 2)

            day = " Tuesday, "

        else if (myday == 3)

            day = " Wednesday, "

        else if (myday == 4)

            day = " Thursday, "

        else if (myday == 5)

            day = " Friday, "

        else if (myday == 6)

            day = " Saturday, "

        if (mymonth == 0) {

            month = "January "

        }

        else if (mymonth == 1)

            month = "February "

        else if (mymonth == 2)

            month = "March "

        else if (mymonth == 3)

            month = "April "

        else if (mymonth == 4)

            month = "May "

        else if (mymonth == 5)

            month = "June "

        else if (mymonth == 6)

            month = "July "

        else if (mymonth == 7)

            month = "August "

        else if (mymonth == 8)

            month = "September "

        else if (mymonth == 9)

            month = "October "

        else if (mymonth == 10)

            month = "November "

        else if (mymonth == 11)

            month = "December "



        var now = new Date()

        var theHour = now.getHours()

        var theMin = now.getMinutes()

        var theSec = now.getSeconds()

        var theTime = "" + ((theHour > 12) ? theHour - 12 : theHour)



        theTime += ((theMin < 10) ? ":0" : ":") + theMin

        theTime += ((theSec < 10) ? ":0" : ":") + theSec

        theTime += (theHour >= 12) ? " PM" : " AM"

        if (year < 2000) // Y2K Fix, Isaac Powell

            year = year + 1900; // http://onyx.idbsu.edu/~ipowell

        window.status = "Welcome to eChannelling. Sri Lankas 1st Trilingual eCommerce site"

        document.all.txtDate.value = day + month + myweekday + ", " + year 	

        document.all.txtclock.value = theTime

        timerID = setTimeout("updateTime()", 000)

}

function setProgress(id){
    parent.leftFrame.document.getElementById('progress1').style.visibility = 'hidden' ;
    parent.leftFrame.document.getElementById('progress2').style.visibility = 'hidden' ;
    parent.leftFrame.document.getElementById('progress3').style.visibility = 'hidden' ;
    parent.leftFrame.document.getElementById('progress4').style.visibility = 'hidden' ;
    parent.leftFrame.document.getElementById('progress5').style.visibility = 'hidden' ;

    parent.leftFrame.document.getElementById(id).style.visibility = 'visible' ;
}

function showProgress(){
    parent.leftFrame.location.href ='left.html';
}

function hideProgress(){

    parent.mainMiddle.leftFrame.location.href ='MainLeft.html';
}

function changeFrameWidth(){
//    alert("-------------------------------------");
    parent.middleframeSet.cols = "0,*";

}

function resetFrameWidth(){
//    alert("-------------------------------------");
    parent.middleframeSet.cols = "210,*";

}

function resetFrameWidthFromTop(){
//    alert("-------------------------------------");
    parent.mainMiddle.middleframeSet.cols = "210,*";
}

function companyProgress() {
        alert('------------Company-------1111111111111111----');
    parent.mainMiddle.leftFrame.location.href ='companyleft.html';
}