// ----- Scripts to activate buttons ------
// ----- and to color them when Mouse Moves ----
// -- BH 2001 --
// --- make sure color definitions match those from the theme file and the mmenu.js
function mover(item) {
      	item.style.color = 'red';
      	item.style.backgroundColor ='#eeeeee';
	item.style.cursor = 'pointer';
    };

function mout(item) {
	item.style.color = 'black';
      	item.style.backgroundColor ='white';
	item.style.cursor = 'default';
    };
    
function OpenSysWin() {
	F1 = window.open('sclog.php','SysWin','resizable=yes,scrollbars=yes,menubar=no,location=no,width=300,height=400,left=0,top=0');
};

function OpenPrintWin(url) {
	F2 = window.open(url+'temptheme=PrintMatch&printmode=1','PrintWin','resizable=yes,scrollbars=yes,menubar=no,location=no,width=1024,height=400,left=0,top=0');
};

function seltext(item) {
    item.select();
};
function isEven(num) {
  return !(num % 2);
};
function checkPt(box,item1,max){
    var sc1=item1.value;
    var sc2=0;
    var target;
    var item2;

    if (isEven(box)){target=(box-1);}else{target=(box+1);}
    item2=document.getElementById('box'+target);
    sc2=item2.value;
    //alert('Score '+sc1+' in Box: '+item1.id+ ' corresponds to Score '+sc2+' in Box: '+target );
    /**
     * do not alert anything, just insert correct value
     */
    item2.value=(max-sc1);
};
