// Powered By Mdjrcw.com Information Technology Logistics Inc 2009-01-16

function sltIndustry(show,value)
{form.hidIndustry.value=value;var strName=show;var lengthStr=GetLength(strName);if(lengthStr>16)strName=subStringPro(strName,16)+'..';if(document.getElementsByName("btnSltIndustry")[0]!=null){document.getElementsByName("btnSltIndustry")[0].value=strName;}
cancel();hiddenLayer("popupIndustry");}
function initIndustrytype()
{var bigindustry_ids=getBigIndustryIDs();var bigindustry_names=getBigIndustryNames();var bigindustry_map_ids=new Array();var bigindustry_map_names=new Array();var htmlDiv='';htmlDiv+='<table width="775" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">';htmlDiv+='<tr>';htmlDiv+='<td width="775" valign="top" style="height:41px; background:url('+IMGPATH+'/title_bg.gif) top left repeat-x;">';htmlDiv+='<table width="100%" height="28" border="0" cellpadding="0" cellspacing="0">';htmlDiv+='<tr>';htmlDiv+='<td width="5%" align="center" valign="middle"><img src="'+IMGPATH+'/01.gif"/></td>';htmlDiv+='<td width="88%" align="left" valign="middle" style="color:#FFFFFF;">请选择行业类别</td>';htmlDiv+='<td width="7%" align="center" valign="middle"><a onclick="javascript:cancel();hiddenLayer(\'popupIndustry\')" style="color:#FFFFFF;cursor:pointer;">[&nbsp;关闭&nbsp;]</a></td>';htmlDiv+='</tr>';htmlDiv+='</table>';htmlDiv+='</td>';htmlDiv+='</tr>';htmlDiv+='<tr>';htmlDiv+='<td width="775" align="left" style="color:#000000;font-weight:bold;">&nbsp;&nbsp;<span style="cursor:pointer" onmouseover="this.style.color=\'#ff7300\'" onmouseout="this.style.color=\'\'" onclick="sltIndustry(\'不限\',\'00\')">不限</span></td>';htmlDiv+='</tr>';htmlDiv+='<tr>';htmlDiv+='<td width="775" align="center" valign="top">';htmlDiv+='<table width="100%" border="0" cellpadding="3" cellspacing="0">';for(var i=0;i<bigindustry_ids.length;i++)
{bigindustry_map_ids=getBigIndustryMapIDs(bigindustry_ids[i]);bigindustry_map_names=getBigIndustryMapNames(bigindustry_ids[i]);if(i%2==0)
{htmlDiv+='<tr bgcolor="#F6F6F6">';}
else
{htmlDiv+='<tr>';}
htmlDiv+='<td width="1%"></td>';htmlDiv+='<td width="19%" align="left" valign="middle" class="title_bigcategory1">'+bigindustry_names[i]+'</td>';htmlDiv+='<td width="1%"></td>';htmlDiv+='<td width="79%">';htmlDiv+='<table width="100%" border="0" cellpadding="0" cellspacing="0" class="content_bigcategory">';htmlDiv+='<tr>';for(var j=0;j<bigindustry_map_ids.length;j++)
{if(j%3==2)
{htmlDiv+='<td width="34%" align="left"><span style="cursor:pointer" onmouseover="this.style.color=\'#ff7300\'" onmouseout="this.style.color=\'\'" onclick="sltIndustry(\''+bigindustry_map_names[j]+'\',\''+bigindustry_map_ids[j]+'\')">'+bigindustry_map_names[j]+'</span></td>';htmlDiv+='</tr>';htmlDiv+='<tr>';}
else
{htmlDiv+='<td width="33%" align="left"><span style="cursor:pointer" onmouseover="this.style.color=\'#ff7300\'" onmouseout="this.style.color=\'\'" onclick="sltIndustry(\''+bigindustry_map_names[j]+'\',\''+bigindustry_map_ids[j]+'\')">'+bigindustry_map_names[j]+'</span></td>';}}
if(j%3==0)
{htmlDiv=htmlDiv.substring(0,htmlDiv.length-4);}
var k=(3-j%3)==0?0:(3-j%3);if(k<3)
{for(var l=0;l<k;l++)
{htmlDiv+='<td width="33%">&nbsp;</td>';}
htmlDiv+='</tr>';}
htmlDiv+='</table>';htmlDiv+='</td>';htmlDiv+='</tr>';}
htmlDiv+='</table>';htmlDiv+='</td>';htmlDiv+='</tr>';htmlDiv+='<tr>';htmlDiv+='<td width="755" height="18" align="center" valign="top" style="background-color:#FF7400; height:4px;"></td>';htmlDiv+='</tr>';htmlDiv+='</table>';return htmlDiv;}
