// JavaScript Document

			function selectedShow(obj, idName)
			{
				var show = document.getElementById(idName);
				
				$(show).parent().children().each(
					function()
					{
						$(this).css('display', 'none');
					}
				);
				
				$(obj).parent().children().each(
					function()
					{
						if ($(obj).html() != $(this).html())
						{
							$(this).removeAttr("class");
							$(this).css("color","#ffffff");
						}
						else if($(obj).html() == $(this).html())
						{
							$(this).attr("class","selected");
							$(this).css("color","#666666");
						}
					}
				);
				
				var regexp = /(.+)(\d+)\b/;
        		var m = idName.match(regexp);
				var link = document.getElementById(m[1]+"link");
				$(show).css('display','block');
				link.href = arr[m[1]][m[2]-1];
				
			}
			
function Check(event){
	if(event.keyCode==13) {
		document.getElementById("btnSearch").focus();
		return;
	}
}
function doSearch(){
	var kw = document.getElementById("souword").value;
	window.open ("http://so.yeshj.com/w/q/" + encodeURIComponent(kw), "_blank", "");
}
function doQuestion(){
	var kw = document.getElementById("souwords").value;
	if( kw != "")
		window.open("http://bulo.hjenglish.com/question/question_ask.aspx?kw=" + encodeURIComponent(kw));
	else
		window.open("http://bulo.hjenglish.com/question/new");
}
function Vote_Opener(domain){
	if(domain != "")
	{
		newWindow = window.open (domain,"_blank","toolbar,resizable,scrollbars,dependent,width=680,height=580,left=150,top=80");
		newWindow.focus();
	}else{
		document.votefrm.submit();
	}
	return false;
}