// JavaScript Document
function winpopup(urlx,param,twidth,theight)
{
	var strurl= urlx + '?param=' + param;
	var tposx= (screen.width- twidth)/2
	var tposy= (screen.height- theight)/2;

	var newWin=window.open(strurl,"moi","toolbar=no,width="+ twidth+",height="+ theight+ ",directories=no,status=no,scrollbars=yes,resizable=no, menubar=no")
	newWin.moveTo(tposx,tposy);
	newWin.focus();
}
//Vote Submit
function Vote_submit(fForm)
{
	var i;
	var itemvalue;
	
	itemvalue="";
	for (i=0;i<fForm.VoteItem.length;i++)
	{	
		if (fForm.VoteItem[i].checked)
		{
			itemvalue+= fForm.VoteItem[i].value + " ";
			fForm.VoteItem[i].checked = false;
		}
	}
	window.open("/vote.asp?param=" + itemvalue + "&VoteId=" + fForm.VoteID.value, "Ket_Qua_Tham_Do", "toolbar=no,location=no,directories=no, status=no, menubar=no, scrollbars=yes,resizable=no,copyhistory=yes,width=400,height=300")
}
function Vote_view(fForm)
{
	window.open("/vote.asp?VoteId=" + fForm.VoteID.value, "Ket_Qua_Tham_Do", "toolbar=no,location=no,directories=no, status=no, menubar=no, scrollbars=yes,resizable=no,copyhistory=yes,width=400,height=300")
}
//doClick Chuong trinh giai tri
function doClick(id)
{	if (document.all(id,0).style.display == "none")
	{ document.all(id,0).style.display = ""; }
	else { document.all(id,0).style.display = "none";}
}

if (window != top) {
//top.location.href = location.href;
}

