// JavaScript Document
<!--
var req = null;
function loadLesson(url) {
 var aryId = ['MATMSM00870','MATMSM00930','MATGEO00150','MATWRD01000','MATFRC01500','MATPRO01900','MATAPP02900','MATGEO02770','MATWRD02920','MATPSO03400','MATMSM03500','MATGEO03200','MATAPP04500','MATPSO04200','MATPSO04000','MATMSM05150','MATPRO05000','MATGEO05800','MATPSO06600','MATPRO06400','MATGEO06950','MATGEO07100','MATPRO07400','MATFRC07700','MATMSM08400','MATFRC08200','MATPRO08200','ENGVOC00985','ENGLET00020','ENGRHY00851','ENGVOC01610','ENGCOM01140','ENGPHO00010','ENGVOC02683','ENGCOM02301','ENGPHO02003','ENGGRA03007','ENGCOM03898','ENGFIG03914','ENGWRS04084','ENGGRA04624','ENGVOC04365','ENGCOM05358','ENGGRA05643','ENGFIG05005','ENGCOM06570','ENGGRA06076','ENGGRA06013','ENGCOM07867','ENGFIG07021','ENGFIG07090','ENGFIG08001','ENGCOM08180','ENGWRS08977'];
	url='Gadgets3/sampleLesson.php?Samplelesson='+aryId[url];
   // Internet Explorer
   try { req = new ActiveXObject("Msxml2.XMLHTTP"); }
   catch(e) {
      try { req = new ActiveXObject("Microsoft.XMLHTTP"); }
      catch(oc) { req = null; }
   }
   // Mozailla/Safari
   if (req == null && typeof XMLHttpRequest != "undefined") {
      req = new XMLHttpRequest();
   }
   // Call the processChange() function when the page has loaded
   if (req != null) {
      req.onreadystatechange = processChange;
      req.open("GET", url, true);
      req.send(null);
   }
  }

function processChange(evt) {
   // The page has loaded and the HTTP status code is 200 OK
   if (req.readyState == 4) {
      if (req.status == 200) {
window.open(req.responseText,'Samples','width=800,height=600,menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,resizable=yes,top=0,left=0');	
	 }
   }
 }


// for reports
function ssr()
{
window.open("sample/Sample_reports/SessionReport.php",'','width=800,height=600,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no,top=0,left=0');
 }
function spr()
{
window.open('sample/Sample_reports/ProgressReport.php','','width=800,height=600,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no,top=0,left=0');
 }
function dpr()
{
window.open('sample/Sample_reports/DetailedLearningReport.php','','width=800,height=600,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no,top=0,left=0');
 }
function dpr_eng()
{
window.open('sample/Sample_reports/DetailedLearningReport_eng.php','','width=800,height=600,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no,top=0,left=0');
 }
function gperform()
{
window.open('sample/Sample_reports/Group_performanceReport.php','','width=800,height=600,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no,top=0,left=0');
 }
function gprogress()
{
window.open('sample/Sample_reports/Group_progressReport.php','','width=800,height=600,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no,top=0,left=0');
 }
function assess()
{
window.open('sample/Sample_reports/AssessmentReport.php','','width=800,height=600,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no,top=0,left=0');
 }
function schoolrept()
{
window.open('sample/Sample_reports/School_report.php','JumpGrades','width=800,height=600,menubar=no,scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no,top=0,left=0');
 }