// JavaScript Document
function getWinHeight() {
	var winHt = 0;
	if (window.innerHeight) winHt = window.innerHeight-18;
	else if (document.documentElement && document.documentElement.clientHeight) 
		winHt = document.documentElement.clientHeight;
	else if (document.body && document.body.clientHeight) 
		winHt = document.body.clientHeight;
	return winHt;
}	
function getScrollY() {
	var sy = 0;
	if (document.documentElement && document.documentElement.scrollTop)
		sy = document.documentElement.scrollTop;
	else if (document.body && document.body.scrollTop) 
		sy = document.body.scrollTop; 
	else if (window.pageYOffset)
		sy = window.pageYOffset;
	else if (window.scrollY)
		sy = window.scrollY;
	return sy;
}
function position_layer (element_id) {
	//var coordY = document.getElementById('work_experience_fieldset').offsetTop;
	var coordY = getScrollY();
  	//alert(coordY);
	if (navigator.appName == "Microsoft Internet Explorer") {
		document.getElementById(element_id).style.top = coordY + 20;
	}
	else {
		document.getElementById(element_id).style.position = 'fixed';	
	}
	//document.getElementById('select_industries_layer').style.left = tempX
	//document.getElementById('select_industries_layer').style.top = coordY + 20;	
}
