// JavaScript Document 		
function poll_frm_submit(x)
			{
	 
			c=0;
			for (i=0;i<document.poll_frm.poll.length;i++)
				{ 
 				if (document.poll_frm.poll[i].checked)
				{   pval= document.poll_frm.poll[i].value
					c=1;
					break;
				}
 			}
 			if (c==1)
				{
				//alert(pval)
				//alert("pollid="+x)
				//location='poll_result.asp?pid='+x+"&poll="+pval
				fnpopup('poll_result.asp?pid='+x+"&poll="+pval,'320','270');
				//poll_frm.submit();
				//return true
				}
				else
				{
				alert('Please Select Your Option')
				return false;
				}
			}
			
			function fnpopup(detailpage,iwidth,iheight)
{
	iLeft = parseInt(screen.width)/2-parseInt(iwidth)/2
	iTop = parseInt(screen.height)/2-parseInt(iheight)/2
	window.open(detailpage, "b", "toolbars=0, menubar=0, noresize, scrollbars=yes, left=" + iLeft + ",top=" + iTop + ", width=" + iwidth + ", height=" + iheight)
}
function poll_frm_submit_category(x,r)
			{
	 
			c=0;
			for (i=0;i<document.poll_frm_cat.poll.length;i++)
				{ 
 				if (document.poll_frm_cat.poll[i].checked)
				{   pval= document.poll_frm_cat.poll[i].value
					c=1;
					break;
				}
 			}
 			if (c==1)
				{
				//alert(pval)
				//alert("pollid="+x)
				//location='poll_result.asp?pid='+x+"&poll="+pval
				fnpopup('cat_poll_result.asp?pid='+x+"&poll="+pval+"&cat="+r,'320','270');
				//poll_frm.submit();
				//return true
				}
				else
				{
				alert('Please Select Your Option')
				return false;
				}
			}
			function fnDetails(detailpage,iwidth,iheight)
{
	iLeft = parseInt(screen.width)/2-parseInt(iwidth)/2
	iTop = parseInt(screen.height)/2-parseInt(iheight)/2
	window.open(detailpage, "w", "toolbars=0, menubar=0, noresize, scrollbars=yes, left=" + iLeft + ",top=" + iTop + ", width=" + iwidth + ", height=" + iheight)
}
			
