function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) 
{
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight +', scrollbars=no');
}

function OpenBrWindowScroll(theURL,winName,features, myWidth, myHeight, isCenter) 
{
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight +', scrollbars=yes');
}

function showRegion(show){
    switch (show){
        case "region1":
            document.getElementById("trRegion1").style.display = 'block';
            document.getElementById("trRegion2").style.display = 'none';
            break;
        case "region2":
            document.getElementById("trRegion1").style.display = 'none';
            document.getElementById("trRegion2").style.display = 'block';
            break;
    }
}

function showOptions(show){
    switch (show){
        case "Accept":
            document.getElementById("tr_Options").style.display = 'block';
            break;
        case "Decline":
            document.getElementById("tr_Options").style.display = 'none';
            break;
    }
}