function openWindow( url) 
{
    width = 600;
    height = 530;
    features = "scrollbars,resizable,screenx=0,screeny=0,left=0,top=0,width=" + width + ",height=" + height;
    var win = window.open(url,"TechCONNECT",features, false);
}


function openWeblinkWindow( url) 
{
    width = 600;
    height = 530;
    features = "scrollbars,toolbar,resizable,screenx=0,screeny=0,left=0,top=0,width=" + width + ",height=" + height;
    var win = window.open(url,"TechCONNECT",features, false);
}


function openHandoutWindow( url) 
{
    width = 600;
    height = 530;
    features = "scrollbars,resizable,screenx=0,screeny=0,left=0,top=0,width=" + width + ",height=" + height;
    var win = window.open(url,"TechCONNECT",features, false);
}



function openAddWnd(url) 
{
    var width = getWidth( 370 );
    var height = 220;
    features = "scrollbars,screenx=0,screeny=0,left=0,top=0,width=" + width + ",height=" + height;
    var win = window.open(url,"AddWork",features, false);
}


function openStepWindow(url) 
{
    width = getWidth(600);
    height = 530;
    features = "scrollbars,toolbar,screenx=0,screeny=0,left=0,top=0,resizable,width=" + width + ",height=" + height;
    var win = window.open(url,"TechCONNECT",features, false);
}


function openTRWindow(url) 
{
    width = getWidth(600);
    height = 530;
    features = "scrollbars,toolbar,location,screenx=0,screeny=0,left=0,top=0,resizable,width=" + width + ",height=" + height;
    var win = window.open(url,"TechCONNECT",features, false);
}


function openScoreWindow(url) 
{
    openStepWindow(url); 
}


function openTutorialWindow(url) 
{
    width = getWidth(700);
    height = 530;
    features = "resizable,scrollbars,toolbar,screenx=0,screeny=0,left=0,top=0,width=" + width + ",height=" + height;
    var win = window.open(url,"Tutorial",features, false);
}

function openTutorialPRWindow(url) 
{
    width = getWidth(700);
    height = 530;
    features = "scrollbars,screenx=0,screeny=0,left=0,top=0,toolbar,width=" + width + ",height=" + height;
    var win = window.open(url,"Tutorial",features, false);
}


function openReportPRWindow(url) 
{
    width = getWidth(700);
    height = 530;
    features = "scrollbars,screenx=0,screeny=0,left=0,top=0,toolbar,width=" + width + ",height=" + height;
    var win = window.open(url,"Report",features, false);
}


function openPRWindow(url) 
{
    width = getWidth(700);
    height = 530;
    features = "scrollbars,screenx=0,screeny=0,left=0,top=0,toolbar,width=" + width + ",height=" + height;
    var win = window.open(url,"Printable",features, false);
}


function openActivityWindow(url) 
{
    width = 700;
    height = 500;
    features = "screenx=0,screeny=0,left=0,top=0,width=" + width + ",height=" + height;
    var win = window.open(url,"Interactivity",features, false);
}


function openGlossaryWnd(word) 
{
    var url = "/Glossary.php?WORD=" + word;

    var width = getWidth(500);
    var height = 350;
    var features = "scrollbars,screenx=0,screeny=0,left=0,top=0,width=" + width + ",height=" + height;
    var win = window.open(url, "Glossary", features, true);
}




function getWidth( width ) {
    /* compensate for IE scollbar width */
    if ( !document.layers ) {
        width += 28;
    }
    return width;
}


function allTutorial() 
{
  if(opener == null || opener.closed )
  {
    width = getWidth(735);
    height = 530;
    features = "scrollbars,toolbar,menubar,resizable,width=" + width + ",height=" + height;
    var win = window.open("/tc/TCController?ACTION=4","TechCONNECT",features, false);
  }
  else
  {
    opener.location.href = "/tc/TCController?ACTION=4";
  } 
  window.close();
}
