function category1(){

	var code1a = document.form1.code1.value ;
    createXMLHttpRequest();
	xmlHttp.onreadystatechange=returncode1;
	xmlHttp.open("GET", "/category/getcategory2.asp?code1="+code1a, true);
	xmlHttp.send(null);

}

			
function returncode1(){
	if (xmlHttp.readystate==4){
		notFriend=true;
		if (xmlHttp.responseXML.xml!=""){
			var newChatXML=xmlHttp.responseXML;
			var listObj1=newChatXML.documentElement.selectNodes("//category2List");
			viewStr1="<select name=code2 style='width:140px;display:;' onchange='getmyprod();' class='select4_1'><OPTION VALUE=''>»óÇ°ºÐ·ù2</option>";

			for (var i=0;i<listObj1.length;i++)
			{	
				plusObj1=listObj1(i);

			viewStr1+="<option value='"+plusObj1.selectSingleNode("cate_code2").text+"'>"+plusObj1.selectSingleNode("cate_desc2").text+"</option>";

			}
			viewStr1+="	</select>";

			document.all["plus_div3"].innerHTML=viewStr1;


		}
	}


}
