﻿var num=7;
function getObj(objName){return(document.getElementById(objName));}
function tag(c_name,id){
var keywords = document.getElementById("pform").keywords.value;

switch(id){
 		case 1:
		
		 document.pform.keywords.value='Please input your interest product';
		 getObj('which').value="productshow";break;
		case 2:
		 document.pform.keywords.value='Please input your interest product';
		 getObj('which').value="seller";break;
		case 3:
		 document.pform.keywords.value='Please input the company name';
		 getObj('which').value="corporation";break;
		case 4:
		 document.pform.keywords.value='Please input your interest product';
		 getObj('which').value="buy";break;
		case 5:
		 document.pform.keywords.value='Please input your interest OE number';
		 getObj('which').value="oem";break;
		case 6:
		 document.pform.keywords.value='Please input your interest product';
		 getObj('which').value="mulu";break;
		case 7:
		 document.pform.keywords.value='Please input Keywords';
		 getObj('which').value="expo";break;
	}

getObj("select_kid").innerHTML=c_name;
getObj("select_kid2").style.display="none";
getObj("searconrow2").innerHTML=getObj("produce"+id).innerHTML;
}


function s_over(){
	getObj("select_kid").className="h_19_hover";
}
function s_out(){
	getObj("select_kid").className=("h_19");
}
function s_click(){
	if(getObj("select_kid2").style.display=="none"){
	getObj("select_kid2").style.display="block";}else{
		getObj("select_kid2").style.display="none";
		}
}
function s_over2(id){

	getObj("kid_"+id).className="h_22";
	
}
function s_out2(id){
	
	getObj("kid_"+id).className="h_21";
}



function check(theForm)
{
	if (theForm.keywords.value == "")
	{
		alert("Please input a search term");
		theForm.keywords.focus();
		return false;
	}
	return true;
}
