<!--
function LTrim(string) 
{
  for (i=0; i<string.length; i++) {
    if (string.charAt(i) != " ") {
       string = string.substring(i,string.length)
       return(string);
    }
  }
  return("");
}

function RTrim(string) 
{
  for (i=string.length; i>0; i--) {
    if (string.charAt(i-1) != " ") {
       string = string.substring(0,i)
       return(string);
    }
  }
  return("");
}

function Trim(string) {
	S1 = LTrim(string);
	S2 = RTrim(S1);
    return(S2);
}
function IsVote()
{
	var l=document.forms.frmVote.elements.length;
	var selflag=0;
	for(i=0;i<l;i++)
	{
		if(document.forms.frmVote.elements[i].checked)
		{
			selflag=selflag+1;
			break;	
		}	
	} 
	if(selflag==0)
	{
		alert("Your choice is.....");
		return false;
	}else
	{
		//document.forms.frmVote.submit();
		}
	
}
function OpenVote(voteid)
{
	//window.open('VoteResult.asp?voteid='+voteid,'vote','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=630,height=380,top=50,left=50');
	href="VoteResult.asp?voteid="+voteid;
	var newwin=window.open(href,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=796,height=560,top=10,left=0");
	newwin.focus();
	return;
}

function IsVoteHome()
{
	var l=document.forms.frmVote.elements.length;
	var selflag=0;
	for(i=0;i<l;i++)
	{
		if(document.forms.frmVote.elements[i].checked)
		{
			selflag=selflag+1;
			break;	
		}	
	} 
	if(selflag==0)
	{
		alert("Your choice is.....");
		return false;
	}
	else
		{
			//strHref=thefrm.action;
			strHref="";
			//h=350;
			//w=442;
			//window.open(strHref,"Vote","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=442,height=350,top=0,left=0");
			window.open(strHref,"Vote","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=796,height=560,top=10,left=0");
			document.forms.frmVote.target="Vote";
			//document.forms.frmVote.submit();
			}
}

function OpenNewWin(href)
{
	//window.open('VoteResult.asp?voteid='+voteid,'vote','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=630,height=380,top=50,left=50');
	//href="VoteResult.asp?voteid="+voteid;
	var newwin1=window.open(href,"","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=650,height=400,top=50");
	newwin1.focus();
	return;
}

function TestCharCount()
{
	var l;
	l=document.all.GuestWord.value.length;
	document.all.countcharacters.value=l;
}
function CheckSearch(thefrm)
{
			thefrm.submit();
	
}
-->
