var grade = 0;

function t(rb)
{
if (rb.checked==true && rb.value==0)
{
	alert("incorrect...please select another answer");
	rb.checked=false;
}
else
{
 	alert("Correct!");
}
}//end function


function g()
{
var i;

for(i = 0; i < test.length-2; i++)
{
	if (test[i].checked==true)
	{
	grade+=eval(test[i].value);
	}//end if
}//end for

grade*=10;

showG();
document.test.disabled=true;
alert("Score: "+grade+"% Please Print this screen and give a copy to Seth Becker");
grade = 0;
}

function showG()
{
grades.innerHTML = grade + "%";

}

function d()
{

var thisDate=new Date();
var thisYear=thisDate.getYear();

	if (thisYear < 1000)
	{		
		thisYear+=1900;
	}

var thisDay=thisDate.getDay();

var thisMonth=thisDate.getMonth()+1;

	if (thisMonth<10)
	{
		thisMonth="0"+thisMonth;
	}
var thisDayMonth=thisDate.getDate();

	if (thisDayMonth<10)
	{
		thisDayMonth="0"+thisDayMonth;
	}

document.write("<font color='000000' size='4'>"+thisMonth+"/"+thisDayMonth+"/"+thisYear+"</font>");
}


function printTest(){  
if (window.print) {
    window.print() ;  
} else {
    var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
    WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = "";  
}
}

