function SubmitVote(obj,cid)
{
	l="index.php?cid="+cid+"&vote="+obj.options[obj.selectedIndex].value;
	window.document.location=l;
}

function VotingPic( obj , tf , id)
{
	var i=0;
	if(tf) 
		for(i==0;i<=id;i++)
		{
			o=document.getElementById("VotingPic" + i);
			o.src='images/star_full.png';
		}
	else
		for(i==0;i<5;i++)
		{
			o=document.getElementById("VotingPic" + i);
			o.src='images/star_empty.png';
		}
		
}

 function CreateBookmarkLink() 
{

 title = "The never ending QUIZ"; 
  // Blogger - Replace with <$BlogItemTitle$> 
  // MovableType - Replace with <$MTEntryTitle$>

 url = "http://www.quizchain.com";
  // Blogger - Replace with <$BlogItemPermalinkURL$> 
  // MovableType - Replace with <$MTEntryPermalink$>
  // WordPress - <?php bloginfo('url'); ?>

	if (window.sidebar) 
	{ // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} 
	else if( window.external ) 
	{ // IE Favorite
		window.external.AddFavorite( url, title); 
	}
	else if(window.opera && window.print) 
	{ // Opera Hotlist
		return true; 
	}
 }