// JavaScript Document

//////////////////////////////index
function index(){
	window.location.href="index.aspx"
	}	
	
//////////////////////////////IndustryShow
function IndustryShow(){
	window.location.href="industry_show_index.aspx"
	}
	
//////////////////////////////IndustryDirectory
function IndustryDirectory(){
	window.location.href="industry_directory_index.aspx"
	}
	
//////////////////////////////brand
function brand(){
	window.location.href="brand_index.aspx"
	}
	
//////////////////////////////news
function news(){
	window.location.href="news.aspx"
	}
	
//////////////////////////////IndustryShow2
function IndustryShow2(){
	window.location.href="industry_show.aspx"
	}
	
//////////////////////////////IndustryDirectory2
function IndustryDirectory2(){
	window.location.href="industry_directory_index.aspx"
	}
	
//////////////////////////////brand2
function brand2(){
	window.location.href="brand_index.aspx"
}
	
//////////////////////////////news2
function news2(){
	window.location.href="news_index.aspx"
}

function search_key()
{
	var searchkeyword=document.getElementById("keyword").value;
	if(checkspace(searchkeyword))
	{
		alert("ÇëÊäÈëËÑË÷¹Ø¼ü×Ö");
		document.getElementById("keyword").focus();
	}
	else
	   location.href="search.aspx?keyword="+escape(searchkeyword);
}

function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

	
//////////////////////////////pageNumHtml
function pageNumHtml(nums){
	window.document.myFlash.SetVariable("pageNum",nums);
	}