	if (navigator.appName == "Microsoft Internet Explorer") {
		document.write('<link href="ie.css" rel="stylesheet" type="text/css" />')
	}



	function OpenServiceWindow(docname, width, height)
	{
		//alert("In OpenServiceWindow");
		self.name = "main"
	
		var windowprops = 'toolbar=no,location=no,directories=no,status=no,' +
			'menubar=no,scrollbars=yes,resizable=no,width=' + width + ',height=' + height;

		OpenWindow = window.open(docname, 'remote', windowprops);
	}


	function targetopener(mylink, closeme, closeonly)
	{
		//alert("In targetopener");
		
		if (! (window.focus && window.opener))
			return true;
		
		//alert("We're going to try changing the focus");
		window.opener.focus();
		
		if (! closeonly)
		{
			//alert("We're opening the link in the opener window");
			window.opener.location.href=mylink.href;
		}
			
		if (closeme)
		{
			//alert("We're closing the popup window");
			window.close();
		}
			
		return false;
	}

	function ansExpand(divTarget)
	{
		document.getElementById("interior2").style.height = "1075px";
		//alert("The element height is: " + document.getElementById("interior2").clientHeight);
		
		if (document.getElementById(divTarget).style.display == "block")
		{
			document.getElementById(divTarget).style.display = "none";
			return false;
		}
		
		for (i = 1; i <= 31; i++)
		{
			//ansContract("answer" + i)
			document.getElementById("answer" + i).style.display = "none";
		}
		
		document.getElementById(divTarget).style.display = "block";
		//alert("The height of the selected answer block is: " + document.getElementById(divTarget).scrollHeight);
		//alert("The IE height of the selected answer block is: " + document.getElementById(divTarget).scrollHeight);
		varNewHeight = document.getElementById("interior2").clientHeight + document.getElementById(divTarget).scrollHeight + "px";
		//alert("The value of varNewHeight is: " + varNewHeight);
		document.getElementById("interior2").style.height = varNewHeight;
		//alert("The new element height is: " + document.getElementById("interior2").clientHeight);

		return false;
	}
	
	function checkTerms()
	{
		if (document.getElementById("cbAgreement").checked)
		{
			return true;
		}
		else
		{
			alert("You must agree to the terms of registration. Please check the box to indicate your agreement");
			return false;
		}
	}
	
	function increasePage()
	{
		if (!document.getElementById("interior2").style.height)
		{
			//alert("Setting initial height");
			document.getElementById("interior2").style.height = "508px";
		}
		
		//alert("Current height is " + document.getElementById("interior2").style.height);
		varNewHeight = document.getElementById("interior2").clientHeight + 200 + "px";
		//alert("The value of varNewHeight is: " + varNewHeight);
		document.getElementById("interior2").style.height = varNewHeight;
	}
	