

function assignResults(){
	names=(document.forms[0].student.value);
	result = " ";
	for (incKy = 1; incKy<100; incKy++){
	seth = eval(incKy);
		incKyCheck = eval('document.forms[0].q'+seth)
		if (incKyCheck){
			tempKy = eval('document.forms[0].q'+seth+'.value');
			tempAnsKy = eval('document.forms[0].a'+seth+'.value');
			result=(result+tempKy)+'<br><b>'+(tempAnsKy)+'</b><br><br>';
		}
		else {
			incKy=1000;
		}
	}
//	window.open('../../resultpass.htm','resultWindow','width=300px,height=400px,scrollbars=1');
	 var resultw = open ('', 'resultWindow', 'width=300px,height=400px,scrollbars=1');
  	resultw.document.open();
  	resultw.document.write(
		'<HTML><HEAD><TITLE>Preguntas y respuestas</TITLE><script language="javascript">var da = (document.all) ? 1:0;' + 'var pr = (window.print) ? 1 : 0;' + 'var mac = (navigator.userAgent.indexOf("Mac") != -1);' + 'function printThis(){if (pr) {window.print();' + '} else if (da && !mac) {  vbPrintPage();' + '} else {alert("Sorry, your browser does not support this feature.");' + '}}</script></HEAD><BODY onLoad="window.focus()"><font face="times new roman, times" size="4" color="#000000">' + names + '<BR><BR>' + result + '</font><form><input type = "button"  value = "print" onClick="printThis();"></form></BODY></HTML>');
  	resultw.document.close();
}

function assignResult(){
	names=(document.forms[0].student.value);
	result = " ";
	for (incKy = 1; incKy<100; incKy++){
	seth = eval(incKy);
		incKyCheck = eval('document.forms[0].q'+seth)
		if (incKyCheck){
			tempKy = eval('document.forms[0].q' + seth + '.value');
			if (eval('document.forms[0].a' + seth + '[0]')){
	                  for (i = 0; i < eval('document.forms[0].a'+seth+'.length'); i++) {
			    if (eval('document.forms[0].a' + seth + '['+ i + '].checked')) {
			tempAnsKy = eval('document.forms[0].a'+seth+'[' + i + '].value');
				break;
					}
				}
			}
			else{
				tempAnsKy = eval('document.forms[0].a' + seth + '.value');
			}
			result=(result+tempKy)+'<br><b>'+(tempAnsKy)+'</b><br><br>';
		}
		else {
			incKy=1000;
		}
	}
	 var resultw = open ('', 'resultWindow', 'width=300px,height=400px,scrollbars=1');
  	resultw.document.open();
  	resultw.document.write(
		'<HTML><HEAD><TITLE>Preguntas y respuestas</TITLE><script language="javascript">var da = (document.all) ? 1:0;' + 'var pr = (window.print) ? 1 : 0;' + 'var mac = (navigator.userAgent.indexOf("Mac") != -1);' + 'function printThis(){if (pr) {window.print();' + '} else if (da && !mac) {  vbPrintPage();' + '} else {alert("Sorry, your browser does not support this feature.");' + '}}</script></HEAD><BODY onLoad="window.focus()"><font face="times new roman, times" size="4" color="#000000">' + names + '<BR><BR>' + result + '</font><form><input type = "button"  value = "print" onClick="printThis();"></form></BODY></HTML>');
  	resultw.document.close();
}

function buynotes(){
	buy1 = window.open(' ', 'buy1', 'width=450,height=350');
	buy1.location.href='buyinfo.html';
	buy1.focus();
}

function openDL(){
	buy1 = window.open(' ', 'dl', 'width=450,height=350');
	buy1.location.href='dl.html';
	buy1.focus();
}

function openPhoto(place){
	photo = window.open('', "photopage", "width=550px,height=500px");
	photo.location.href = place;
}

function openPhotoDr(place,wid,hei,winName){
	dims = "width=" + wid + "px,height=" + hei + "px" ;
	photo = window.open('', winName, dims);
	photo.location.href = place;
}

function openAnything(place){
	photo = window.open('', "anything", "width=550px,height=500px,scrollbars=1");
	photo.location.href = place;
}


