
var ie5 = (document.all && document.getElementById) ? true : false;
var ns6 = (!document.all && document.getElementById) ? true : false;

function getMenuCoords(element) {
	var coords = {x:0,y:0};
	while (element) {
		coords.x += element.offsetLeft;
		coords.y += element.offsetTop;
		element = element.offsetParent;
	}
	return coords;
}
function do_onload(){
	var x,y,x1,y1;
	var coor = getMenuCoords(document.getElementById('access'));

if (coor.x == 0 && coor.y == 0) return;

	if (ie5) {
		x = document.getElementById('access_promo').style.left = coor.x+337+"px";
		y = document.getElementById('access_promo').style.top = coor.y+210+"px";
	}
	else if (ns6){
		x = document.getElementById('access_promo').style.left = coor.x+337+"px";
		y = document.getElementById('access_promo').style.top = coor.y+170+"px";
	}
	document.getElementById('access_promo').style.display = "block";
}

function submitme(cont) {
		document.getElementById('cont').value = cont;
		if (document.getElementById('agree').checked == false) {
			alert("You cannot proceed unless you agree to use this test for personal purposes only.");
			return;
		}
		document.act.submit();
		return;
}

/////////////////////////////////////////////////////
		if (window.addEventListener)
			window.addEventListener("load", do_onload, false)
		else if (window.attachEvent)
			window.attachEvent("onload", do_onload)
		else if (document.getElementById)
			window.onload=do_onload;
		window.onresize= do_onload;
