<%@ page language="C#" autoeventwireup="true" inherits="hrsp4, GJ_YM" enableviewstatemac="false" enableEventValidation="false" %><html><head runat="server"><title>无标题页</title><style>body {margin: 0px;font-size:12px;padding:5px;}div,td{font-size:12px;}</style></head><script type="text/javascript">var URLParams = new Object() ;var aParams = document.location.search.substr(1).split('&') ;for (i=0 ; i < aParams.length ; i++){var aParam = aParams[i].split('=');URLParams[aParam[0]] = aParam[1];}
var oba;var obb="";function djxs(obj){var obj;oba = document.getElementById(obj);if(obb!=""){obb.style.color="#000000";}oba.style.color="#ff0000";obb=oba;}
var ssid=new Array();var ssname=new Array();var ss=new Array();//所有打开列表
ss.push("99");function checkform(idd,who){var obj = document.getElementById(who);if(ss.join("-").indexOf(who)==-1)//未在列表中
{ss.push(who);obj.style.display="";obj.innerHTML="请稍后，数据加载中......";var URL="get2.aspx?menu=js&id="+idd;if (window.ActiveXObject) {	var x = new ActiveXObject("Microsoft.XMLHTTP");}else if (window.XMLHttpRequest) {var x = new XMLHttpRequest();}var FormName=false;var ID = obj;x.open("POST",URL);x.setRequestHeader("REFERER", location.href);
x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");x.onreadystatechange = function(){if(x.readyState == 4 && x.status == 200 && ID){	
var stt=x.responseText;var b=stt.indexOf("<wwww>");var c=stt.indexOf("</wwww>");var oooo=stt.substring(b+6,c);ID.innerHTML=oooo;}}
var encodedData="";x.send(encodedData);
}else{arrayRemove(who,ss);obj.style.display="none";}try{document.hr.location="hr1.aspx?id="+idd;}catch(exp){}}function arrayRemove(ys,array){//检测要删除的元素(删除元素值为：7name)
for(var i=0; i<array.length; i++){if(array[i] == ys){array = removeElement(i,array);//删除方法
i=array.length;//只删同名第一个。
}}}function removeElement(index,array){if(index>=0&&index<array.length){for(var i=index; i<array.length; i++){array[i] = array[i+1];}array.length = array.length-1;}return array;}
function qk(){var b1=ssid.join("`").split("`");for(var cc=0;cc<b1.length;cc++){
try{window.frames['hr'].document.getElementById('div'+b1[cc]).style.background=''; 
}catch(exp){}}removeElement2(ssid);removeElement2(ssname);document.getElementById('g1').innerHTML=ssid;document.getElementById('g2').innerHTML=ssname;}function removeElement2(array){array[0] ="";array.length =0;return array;}
function qx(){removeElement2(ssid);removeElement2(ssname);var b1=window.frames['hr'].a1.split("`");var b2=window.frames['hr'].a2.split("`");for(var cc=0;cc<b1.length;cc++){ssid.push(b1[cc]);ssname.push(b2[cc]);try{window.frames['hr'].document.getElementById('div'+b1[cc]).style.background='#6BAaaa';}catch(exp){}}
document.getElementById('g1').innerHTML=ssid;document.getElementById('g2').innerHTML=ssname.join("<br>");}function ok(){try{opener.gg1=ssid;opener.gg2=ssname;opener.hr();opener.bmmm();}catch(exp){}window.close();}
</script><body><form id="form1" runat="server"><table border=0 cellpadding=0 cellspacing=0 style="padding:5px;" width="630px"><tr><td width="230px"><b>1、商品类别列表</b><br>注：点击类别可显示或隐藏该类别商品</td><td width="210px"><b>2、选择类别</b> [<a href="javascript:qx();">全部选择</a>]<br>注：点击商品可选择或取消</td><td width="210px"><b>3、已选定商品</b> [<a href="javascript:qk();">全部删除</a>]<br>注：点击确定可完成商品的选择</td></tr>
<tr><td valign=top ><asp:Label ID="Label1" runat="server" Text=""></asp:Label></td><td valign=top><iframe src="hr1.aspx" width="210px" height="50px" frameborder="10" hspace="0" vspace="0" scrolling="no" name="hr" id="hr" ></iframe> 
</td><td valign=top><span id="g2"></span><span id="g1" style="display:none;"></span><br /><br /> [ <a href="javascript:ok();">确定</a> ] [ <a href="javascript:window.close();">取消并关闭窗口</a> ]</td></tr></table>
<script language="javascript">function autoheight(sid){var gid=document.getElementById(sid);gid.height=document.documentElement.offsetHeight+20;}window.setInterval("autoheight(\"hr\")",10);</script></form></body></html>
