
	
function init() {
	if (!document.getElementsByTagName) return;
	if (document.all) {
		divsColl = document.getElementsByTagName('div');
		for (var i=0; i<divsColl.length; i++) {
			if (divsColl[i].className && divsColl[i].className=='transBox' ||
				divsColl[i].className && divsColl[i].className=='transBoxContentBox') {
				elm = divsColl[i];
				
				var transBox = document.createElement("div");
				transBox.style.position = 'absolute';
				transBox.style.zIndex = '-1';
				transBox.style.top = myGetComputedStyle(elm,'top')+'px';
				transBox.style.left = myGetComputedStyle(elm,'left')+'px';
				transBox.style.width = myGetComputedStyle(elm,'width')+'px';
				transBox.style.height = myGetComputedStyle(elm,'height')+'px';
				
				if (navigator.appVersion.toLowerCase().indexOf("mac") != -1) { // MAC IE
					var transImg = document.createElement("img");
					transImg.width = myGetComputedStyle(elm,'width')+'';
					transImg.height = myGetComputedStyle(elm,'height')+'';
					transBox.appendChild(transImg);
					transImg.src = '/img/trans.png';
				} else { //PC IE
					transBox.style.backgroundColor = 'white';
					transBox.style.filter = 'alpha(opacity=45)';
				}
					
				elm.appendChild(transBox)
				transBox.parentNode.style.background = 'transparent';
			}
		}
	}
}


function info(characterId) {
window.open("character_info.gne?characterid=" + characterId ,"popup","resizable=no,scrollbars=yes,menubar=no,status=no,directories=no,width=468,height=340");
}

function myGetComputedStyle(obj,prop) {
	if (document.all) {
		if (prop=='top') return obj.offsetTop//+document.body.scrollTop;
		if (prop=='left') return obj.offsetLeft;
		if (prop=='height') return obj.offsetHeight;
		if (prop=='width') return obj.offsetWidth;
	} else {
		if (prop=='top') return (parseInt(document.defaultView.getComputedStyle(obj,'').getPropertyValue('top')));
		if (prop=='left') return parseInt(document.defaultView.getComputedStyle(obj,'').getPropertyValue('left'));
		if (prop=='height') return parseInt(document.defaultView.getComputedStyle(obj,'').getPropertyValue('height'));
		if (prop=='width') return parseInt(document.defaultView.getComputedStyle(obj,'').getPropertyValue('width'));
	}
}

// used in /hubs/
function showDesc(addy) {
	if (!document.getElementById) return;
	document.getElementById('descsDiv').innerHTML=document.getElementById('lot'+addy).innerHTML;
}

function pollWriteInFieldFocus(theForm) {
	theForm.writeinradio.click();
}
function pollClickRadio(theForm) {
	theForm.writein.value='';
}
function pollFormValidate(theForm) {
	if (theForm.writein) {
		if (theForm.writein.value !='' && theForm.writeinradio.checked==false) {
			alert('You\'ve written something in, but not selected the "write in vote" option. Correct yourself please.');
			return false;
		} else if (theForm.writein.value =='' && theForm.writeinradio.checked==true) {
			alert('You\'ve selected the "write in vote" option, but haven\'t written anything in.');
			return false;
		}
	}
	answered = false
	for (var i=0;i<theForm.answer.length;i++) {
		if (theForm.answer[i].checked) return true;
	}
	alert('You must select an option.');
	return false;
}













