var checkflagc = "false";
var checkflagf = "false";

function changePage(newLoc)
{
   nextPage = newLoc.options[newLoc.selectedIndex].value
		
   if (nextPage != "")
   {
      document.location.href = nextPage
   }
}

function newWindow(boot)
{
  popWindow = window.open(boot,"Task","toolbar=no,location=no,scrollbars=yes,resizable=no,width=750,height=320")
  popWindow.focus()
}

function newFull(boot)
{
  popWindow = window.open(boot,"RCCF","toolbar=yes,location=yes,scrollbars=yes,resizable=yes")
  popWindow.focus()
}


function newWindow_1(boot)
{
  popWindow = window.open(boot,"Task","toolbar=no,location=no,scrollbars=yes,resizable=no,width=750,height=450")
  popWindow.focus()
}

function newWindow_2(boot)
{
  popWindow = window.open(boot,"Task","toolbar=no,location=no,scrollbars=yes,resizable=no,width=800,height=450")
  popWindow.focus()
}

function notes(boot)
{
  popWindow = window.open(boot,"Notes","toolbar=no,location=no,scrollbars=yes,resizable=no,width=900,height=800")
  popWindow.focus()
}

function popup(boot, name, width, height)
{
  var info = 'toolbar=no,location=no,scrollbars=yes,resizable=no,width='+width+',height='+height;
  popWindow = window.open(boot, name, info)
  popWindow.focus()
}

function oldnotes(boot)
{
  popWindow = window.open(boot,"Notes","toolbar=no,location=no,scrollbars=yes,resizable=no,width=750,height=600")
  popWindow.focus()
}


function check_c(mpi_hello, ptp, cc, mpi_d, pbs)
{
 if (checkflagc == "false")
 {
   mpi_hello.checked = true;
   ptp.checked =  true;
   cc.checked = true;
   mpi_d.checked = true;
   pbs.checked = true;
   checkflagc = "true";
 }
 else
 {
   mpi_hello.checked = false;
   ptp.checked =  false;
   cc.checked = false;
   mpi_d.checked = false;
   pbs.checked = false;
   checkflagc = "false";
 }
}

function check_f(mpi_hello_f, ptp_f, cc_f, mpi_d_f, pbs_f)
{
 if (checkflagf == "false")
 {
   mpi_hello_f.checked = true;
   ptp_f.checked =  true;
   cc_f.checked = true;
   mpi_d_f.checked = true;
   pbs_f.checked = true;
   checkflagf = "true";
 }
 else
 {
   mpi_hello_f.checked = false;
   ptp_f.checked =  false;
   cc_f.checked = false;
   mpi_d_f.checked = false;
   pbs_f.checked = false;
   checkflagf = "false";
 }
}

function delayer()
{
   document.location = "./"
}


function write(text)
{
	switch(text){
            case 1: 
               setTimeout(document.write("Notes updated"), 2000)
               break;           
            default:
               setTimeout(document.write("Thank you"), 2000) 
       
        }  
}
