var cm=null;
document.onclick = new Function("show(null)")
function getPos(el,sProp) {
	var iPos = 0
	while (el!=null) {
		iPos+=el["offset" + sProp]
		el = el.offsetParent
	}
	return iPos;
}

function show(el,m) {
	if (m) {
		m.style.display='';
		m.style.marginLeft = "124px";
		m.style.top = (getPos(el,"Top") - 230 + ($("#Poll_pollID").length > 0?-72:0)) + el.offsetHeight + "px";
	}
	if ((m!=cm) && (cm)) cm.style.display='none'
	cm=m
}

function handleEnter(inField, e) {
	var charCode;

	if(e && e.which){
		charCode = e.which;
	}else if(window.event){
		e = window.event;
		charCode = e.keyCode;
	}

	if(charCode == 13) {
		//alert("Enter was pressed on " + inField.id);
		document.forms[0].action = searchPath + 'search.aspx';
		document.forms[0].__VIEWSTATE.name = 'search';
		if(typeof vsSignin != 'undefined') vsSignin.showmessagebox = "False";
		if(typeof ctl03 != 'undefined') ctl03.showmessagebox = "False";
		if(typeof vs != 'undefined') vs.showmessagebox = "False";
		document.forms[0].submit();
	}
}
function classExists(c) {
    return typeof(c) == "function" && typeof(c.prototype) == "object" ? true : false;
}
function disableEnterKey(e){
     var key;

     if(window.event)
          key = window.event.keyCode;     //IE
     else
          key = e.which;     //firefox

     if(key == 13)
          return false;
     else
          return true;
}
