// JavaScript Document
<!--
function popWin(pPage,w,h) {popUpWin = window.open(pPage,'popWindow','alwaysRaised=yes,screenX=100,screenY=100,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,marginwidth=0,marginheight=0,width='+w+',height='+h);}
function popWinFixed(pPage,w,h) {popUpWin = window.open(pPage,'popWindow','alwaysRaised=yes,screenX=500,screenY=350,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,marginwidth=0,marginheight=0,width='+w+',height='+h);}
function popWinHTML(pPage,w,h) {popUpWin = window.open(pPage,'popWindow','alwaysRaised=yes,screenX=100,screenY=100,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,copyhistory=0,marginwidth=0,marginheight=0,width='+w+',height='+h);}
function opacity(id, opacStart, opacEnd, millisec) {
    //speed for each frame
    var speed = Math.round(millisec / 100);
    var timer = 0;

    //determine the direction for the blending, if start and end are the same nothing happens
    if(opacStart > opacEnd) {
        for(i = opacStart; i >= opacEnd; i--) {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    } else if(opacStart < opacEnd) {
        for(i = opacStart; i <= opacEnd; i++)
            {
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));
            timer++;
        }
    }
}

//change the opacity for different browsers
function changeOpac(opacity, id) {
    var object = document.getElementById(id).style;
    object.opacity = (opacity / 100);
    object.MozOpacity = (opacity / 100);
    object.KhtmlOpacity = (opacity / 100);
    object.filter = "alpha(opacity=" + opacity + ")";
} 

//-->
