

function openwindow(url)
{
  if (url != "#")
  {
    var positionX = screen.width;
    var positionY = ((screen.height)/2);

    var sizeX = 1024;
    var sizeY = 680;
    
    var strWindowFeatures = "";
    strWindowFeatures += 'menubar=yes,location=yes,toolbar=yes,directories=yes,scrollbars=yes,status=yes,resizable=yes,outerWidth='+1024+',outerHeight='+700+',width='+720+'height='+640+',left='+80+',top='+60+'screenX='+80+',screenY='+60;
    winPopupWindow = window.open(url, "Window", strWindowFeatures);
    winPopupWindow.focus();
  }
}

    var popWin = null
    var winCount = 0
    var winName = "popWin"

    function openPopWin(winURL, winWidth, winHeight, winFeatures, winLeft, winTop){

    var d_winLeft = 0 
    var d_winTop = 20 
    winName = "popWin" + winCount++ 
    closePopWin() 
    if (openPopWin.arguments.length >= 4)
    winFeatures = "," + winFeatures
    else 
    winFeatures = "" 
    if (openPopWin.arguments.length == 6) 
    winFeatures += getLocation(winWidth, winHeight, winLeft, winTop)
    else
    winFeatures += getLocation(winWidth, winHeight, d_winLeft, d_winTop)
    popWin = window.open(winURL, winName, "width=" + winWidth 
    + ",height=" + winHeight + winFeatures)
    }
    function closePopWin(){
    if (navigator.appName != "Microsoft Internet Explorer" 
    || parseInt(navigator.appVersion) >=4) 
    if(popWin != null) if(!popWin.closed) popWin.close() 
    }
    function getLocation(winWidth, winHeight, winLeft, winTop){
    return ""
    }


//-->

