	function comments()
	{
		window.open("/New-Jersey-online-defensive-driving/src/English/comments.html", "comments", "left=50, top=50, width=730, height=550, resizable=yes, scrollbars=yes");
	}	
	function faq()
	{
		window.open("/New-Jersey-online-defensive-driving/src/English/faq.html", "faq", "left=50, top=50, width=730, height=550, resizable=yes, scrollbars=yes");
	}
	function osupport()
	{
		window.open("http://support.onlinetraffic.com/ots.html", "osupport", "left=50, top=50, width=550, height=625, resizable=no, scrollbars=no");
	}
function SSL_Encrypted_Secured()
{
	window.open("https://registration.onlinetraffic.com/thawte/SSL/SSL_Encrypted_Secured.html", "secured", "left=50, top=50, width=500, height=585, resizable=no, scrollbars=no");
}


function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'imgover') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_ovr'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_ovr'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}
function enlargeText()
{
	x = document.getElementById('reading');
	x.style.fontSize = '1.5em';
	
	textsize = document.getElementById('textsize_btn');
	textsize.innerHTML = '<a href=javascript:standardText()>Standard Text</a>';
}

function standardText()
{
	x = document.getElementById('reading');
	x.style.fontSize = '1em';
	
	textsize = document.getElementById('textsize_btn');
	textsize.innerHTML = '<a href=javascript:enlargeText()>Enlarge Text</a>';
}
function enlargeText1()
{
	x = document.getElementById('textarea');
	x.style.fontSize = '1em';
}
function enlargeText2()
{
	x = document.getElementById('textarea');
	x.style.fontSize = '1.5em';
}
function enlargeText3()
{
	x = document.getElementById('textarea');
	x.style.fontSize = '2em';
}