function setHeight()
{
      var cHeight = 0;
      if( typeof( window.innerWidth ) == 'number' ) {
            //Non-IE
            cHeight = window.innerHeight;
            document.getElementById('mcontent').height = cHeight - 137;
      }
      else if( document.documentElement &&
               ( document.documentElement.clientWidth ||
                 document.documentElement.clientHeight ) ) {
            //IE 6+ in 'standards compliant mode'
            cHeight = document.documentElement.clientHeight;
            document.getElementById('mcontent').height = cHeight - 137;
      }
      else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
            //IE 4 compatible
            cHeight = document.body.clientHeight;
            document.getElementById('mcontent').height = cHeight - 137;
      }

      //window.alert( 'Height = ' + cHeight );
}

function OpenNew(mypage, myname, w, h, scroll) { //Open New Window
       var winl = (screen.width - w) / 2;
       var wint = (screen.height - h) / 2;
       winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
       win = window.open( mypage, myname, winprops)
       if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


function ProgOver(fid)
{
         Data_cell = fid;
         //alert(Data_cell);
         for( ts=1; ts<=7; ts++ ){

              tid = 't'+ ts;
              mTable = document.getElementById(tid);
              
              mRows = mTable.rows.length;
              mCols = mTable.rows[0].cells.length;
              mArray = new Array(mRows);

              for (i=0; i < mRows; i++)
              {
                mArray[i] = new Array(mCols);
                for (j=0; j < mCols; j++)
                {
                  var tmp_data = mTable.rows[i].cells[j].innerText;
                  
                  if ( (tmp_data == Data_cell) & (tmp_data != '') ){
                       mTable.rows[i].cells[j].className = 'pmovieO';
                       
                  }

                }
              }
         }
}

function ProgOut()
{
         for( ts=1; ts<=7; ts++ ){

              tid = 't'+ ts;
              mTable = document.getElementById(tid);
              mRows = mTable.rows.length;
              mCols = mTable.rows[0].cells.length;
              mArray = new Array(mRows);

              for (i=0; i < mRows; i++)
              {
                mArray[i] = new Array(mCols);
                for (j=0; j < mCols; j++){
                    if( j == 1 )
                        mTable.rows[i].cells[j].className = 'pmovieN';
                }
              }
         }
}
