 function CreateBookmarkLink() {

 title = document.domain; 
  // Blogger - Replace with <$BlogItemTitle$> 
  // MovableType - Replace with <$MTEntryTitle$>

 url = "http://"+document.domain;
  // 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; }
 }


	function func_search_result(val,val2)
	{	
		var search_word = val.replace(/ /g,'+');
		//alert(val2);
		location.href=val2+'search_result.php?q='+search_word;	
	}	

function sortlist(val)
{
	document.getElementById('sortby').value = val;
	document.frmsearch.submit();

}
function sortnew(val)
{
	//alert(val);
	document.getElementById('sortbynew').value = val;
	document.frmnew.submit();

}
function sortpop(val)
{
		
	document.getElementById('sortbypop').value = val;
	document.frmpop.submit();

}

function trcolorchang(val)
{
	//alert(val);
	
	
	//var trval=document.getElementById("trcolor").value;
	//if(trval!="")
	//document.getElementById("row_"+trval).className="text odd";
	document.getElementById("row_"+val).className="marked";
	
	//document.getElementById("trcolor").value=val;
}