
function newWindow(url,height,width){
    var wLeft = (screen.width - width) / 2;
    var wTop = (screen.height - height) / 2;
    window.open (url, 'newwindow', 'height='+ height +', width='+ width +', top='+wTop+', left='+wLeft+', toolbar=no, menubar=no, scrollbars=yes, resizable=yes,location=no, status=no')
}

function newWindowNoScroll(url,height,width){
    var wLeft = (screen.width - width) / 2;
    var wTop = (screen.height - height) / 2;
    window.open (url, 'newwindow', 'height='+ height +', width='+ width +', top='+wTop+', left='+wLeft+', toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no')
}

function setPage(field,page){
    if(page > 0){
        eval('form1.'+field+'.value='+page+'');
        form1.submit();
    }
}

function setField(field,val){
    eval('form1.'+field+'.value="'+val+'"');
    form1.submit();
}
function set_all(stu,formName,start,end)
{
    var len = formName.length - end;
    for(var i = start; i < len; i++)
    {
        formName.elements[i].checked = stu;
    }
}