// JavaScript Document
<!--
function cellHeightIndex()
{
	var cellHeight1;
	var cellHeight2;
	var td1 = 'report';
	var td2 = 'health';
	if (document.all) 
	{
		cellHeight1 = document.all[td1].clientHeight;
		cellHeight2 = document.all[td2].clientHeight;
		document.all[td2].height = cellHeight1;
	}
	if(!document.all && document.getElementById)
	{
		cellHeight1 = document.getElementById(td1).offsetHeight ;
		cellHeight2 = document.getElementById(td2).offsetHeight ;
		document.getElementById(td2).height = cellHeight1;
	}
}

function Vote()
{
	var len = document.vote.vote.length;
	var check = 0;
	var value = '';
	for (i = 0; i < len; i++)
	{
		if (document.vote.vote[i].checked)
		{
			check = 1;
			value = document.vote.vote[i].value;
		}
	}
	if (check == 0)
	{
		alert ("Please, selecte first an answer before clicking on the button \"Vote\"");
		return false;
	}

	var heigh = 100 + len*30;
	w = (screen.availWidth - 10 - 550)/2;
	h = (screen.availHeight - 20 - heigh)/2;
	features = "width=550,height="+heigh;
	features += ",scrollbars=0,resizable=0,location=0";
  	features += ",menubar=0,toolbar=0,status=0";
	features += ",left="+w+",top="+h+",screenX="+w+",screenY="+h;
	window.open('/votes/vote_question.php?aid='+value, '', features);
}
//-->