//Global variables
var winPik;
var winRept;

function NewPick(fName,fValue,fPage)
{
  Pik=new PickApp();
  var PikApp = "pick.php?nm="+fName+"&vl="+fValue+"&pg="+fPage ;
  winPik=window.open(PikApp,"Pick","toolbar=0,status=0,menubar=0,fullscreen=no,width=600,height=245,resizable=0,scrollbars=yes,top=200,left=500");
  docPik=winPik.document;
}

function NewRept(fRepName,fSession,fId)
{
  var ReptApp = "report.php?nm="+fRepName+"&us="+fSession+"&id="+fId ;
  winRept=window.open(ReptApp,"Report","toolbar=0,status=0,menubar=0,fullscreen=no,width=800,height=900,resizable=0,scrollbars=yes,top=100,left=100");
  docRept=winRept.document;
}

function PickApp()
{
  //Properties   
  this.MyWindow=winPik;
}

function setField(what)
{
  mycal.myText.value = "index.php?tb=5&month="+mycal.smonth.value+"&year="+mycal.syear.value ;
}

function repprint()
{
  window.print();
}