$(document).ready(function(){

	
	$("a#textsmaller").click(function(){
		$("div.coursepageleftcol p").css("font-size","10px");
		$("div.coursepageleftcol p").css("line-height","14px");
		return false;
	});
	
	$("a#textbigger").click(function(){
		$("div.coursepageleftcol p").css("font-size","14px");
		$("div.coursepageleftcol p").css("line-height","20px");
		return false;
	});
	
	
	$("a#contentvalidation").click(function(){
		$("ol#validationstatements").toggle();
		return false;
	});
	
	
	
	
	$("input[@name='FinishNow']").click(function(){
		err=false;
		questionnum="";
		$("div.question").each(function(){
			if(!$(this).find("input[@type=radio]:checked").size()){
				m=$("div.question").index(this)+1;
				questionnum=questionnum+m+", ";
				err=true;
			};
			
		});
		
		if(err){
				alert("You must answer these questions: "+questionnum);
				return false;
		}
		
	});
	
	
	
	
});

	



function check_radio()
{
	x = document.form1.certify;
	counter = 0
	for(var i=0; i<x.length; i++)
	{ 
		if(document.form1.certify[i].checked)
		{
			counter++;
		}
	}
	if(counter==0)
	{
		alert("Please choose one of the options.");
		return false;
	}	
	return true;
}

function check_radio2(fElement)
{
	x = document.getElementById[fElement];
	alert(x);
	counter = 0
	for(var i=0; i<x.length; i++)
	{ 
		if(x[i].checked)
		{
			counter++;
		}
	}
	if(counter==0)
	{
		alert("Please choose one of the options.");
		return false;
	}	
	return true;
}

function popWin(url) {
	pw = window.open(URL, "popUp", strOptions);
}