function callPage()
{
	if (document.frmIndex.search.value == "")
		{
			alert('Enter the search keyword');
			document.frmIndex.focus();
			return false;
		}
     else
		{
			document.frmIndex.method = 'get';
			document.frmIndex.action= "googlesearch/searchhome_google.php";
		}
}
function hideread(){
document.getElementById("read").style.display = 'none';
document.getElementById("emailed").style.display = 'none';
document.getElementById("Searched").style.display = 'none';
}
function showRead(active_i){
hideread();
document.getElementById(active_i).style.display = "";
}
function hideread_1(){
document.getElementById("news_now").style.display = 'none';
document.getElementById("today_paper").style.display = 'none';
document.getElementById("opinion").style.display = 'none';
}
function showRead_1(active_i){
hideread_1();
document.getElementById(active_i).style.display = "";
}

function whtopeniop()
{
		window.open('/general/ipo/whtiop.htm','mywin',
		'left=150,top=0,bottom=10,width=720,height=550,toolbar=0,resizable=0, scrollbars=yes');
}
function dailyrt()
	{
		window.open('/general/ipo/dailyreport_test.php','mywin',
			'left=200,top=0,bottom=10,width=450,height=330,toolbar=0,resizable=0');
	}



function callPoll(nVal,nId)
{
	var nFlag=false;
	var cnt=0;
	var optVal="";
	var obj=document.frmpoll;
	var openWindow;
	
	for(i=0;i < document.frmpoll.length; i++)
	{ 
		if (document.frmpoll.elements[i].type == "radio" )
		{	
			if(document.frmpoll.elements[i].checked == true)
			{
				nFlag=true;
				optVal=document.frmpoll.elements[i].value
				break;
			}
			else
				nFlag=false;		
		}
	}
	
	if(nFlag == false)
	{
		alert("Please Select at least One option ");
		nFlag=false;
		return false;
	}

	if(nVal == "NA")
		nht=240;
	else
		nht=210;

	cnt++;	
	//if(cnt==1)
	//{			
		openWindow=window.open("/hin/common/submitpoll.php?idPoll="+nId+"&optVal="+optVal,"Poll","width=316,height="+nht+",scrollbars=no,left=250,top=100,no resize");
	//}	

}

