function checkans(qno,let,ans) {
    if (ans == 'true') {
	  evalcmd='document.thequiz.B'+qno+let+'.src="../../images/check.gif"'
      eval(evalcmd);
    } else {
	  var outtext;
	  evalcmd='document.thequiz.B'+qno+let+'.src="../../images/wrong.gif"'
      eval(evalcmd);
	}  
}
function showfeed(feedhtml) {
	  window.open(feedhtml,'feedbackFrame',"width=390, height=400, location=no, menubar=no, status=no, toolbar=no, scrollbars=yes, resizable=yes");
}
function preloadChecks() {
	document.MM_preloadImages('images/blank.gif','images/check.gif','images/wrong.gif');
} 

//DHTML Window script

function loadwindow(url){
   src= new String(document.location);
   //var myNewLeft = ((pos-735)/2)+328;
   var myNewTop = 150;
   myNewTop += document.documentElement.scrollTop;
//   alert("ScrollTop = "+myNewTop);
   document.getElementById("dwindow").style.display='';
   document.getElementById("dwindow").style.width="390px";
   document.getElementById("dwindow").style.height="400px";
 //  document.getElementById("dwindow").style.left="10px";

   

   /*document.getElementById("dwindow").style.left=pos;*/
  document.getElementById("dwindow").style.top=myNewTop+"px";
  // document.getElementById("dwindow").style.top=myNewTop;
  document.getElementById("cframe").src=url;
}

/* function loadwindow2(url,pos){
   src= new String(document.location);
   myNewLeft = ((pos-735)/2)+328;

   document.getElementById("dwindow").style.display='';
   document.getElementById("dwindow").style.width="400px";
   document.getElementById("dwindow").style.height="500px";
   document.getElementById("dwindow").style.left=myNewLeft;
   document.getElementById("dwindow").style.top="200";
   document.getElementById("cframe").src=url;
}*/

function closeit(){
   document.getElementById("dwindow").style.display='none';
//   document.getElementById("back").style.display='none';
   src= new String(document.location);
   document.location=src;
}