
/*********************************************************************
/*        Function: windowLoad
/*        Purpose:  Launches a new window
/*
/*
**********************************************************************/
function windowLoad(center,top,left,height,width, name, winName, scroll) {

var iLpos;
var iTpos;

if(scroll == '') 
{ 
scroll = 0;
}

if(center)
        {
        if ((screen.height - height) > 0)
                {
                iTpos = (screen.height - height)/2;

                }
                else
                {
                iTpos = 0;
                }
        if ((screen.width - width) > 0)
                {
                iLpos = (screen.width - width)/2;
                }
                else
                {
                iLpos = 0;
                }
        }
else
        {
        if ((screen.height - height) > 0)
                {
                iTpos = top;
                }
                else
                {
                iTpos = 0;
                }
        if ((screen.width - width) > 0)
                {
                iLpos = left;
                }
                else
                {
                iLpos = 0;
                }
        }

  popupWin = window.open(name, winName,'menubar=0,toolbar=0,location=0,resizable=0,scrollbars='+ scroll + '0,width=' + width +',height=' + height  +',top= ' + iTpos + ',left= ' + iLpos)
  popupWin.focus()
}

// -->

