// JavaScript Document
//**城市多选
document.writeln('<iframe id=\"City\" Author=\"wayx\" class=\"Ware\" frameborder=\"0\" scrolling=\"no\" style="position: absolute;  width: 80px; z-index: 	9998; display: none"></iframe>');
window.frames.City.document.writeln("<body topmargin=\"0\" leftmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\"><script src='Include/checkMallChild.js' type='text/javascript'></script><table width=\"120\" border=\"0\" cellpadding=\"0\"  cellspacing=\"1\" bgcolor=\"#ffffff\"><tr><td height=\"100%\" align=\"left\" valign=\"top\" bgcolor=\"#FFFFFF\" id=\"showCity\"></td></tr></table></body>");
//window.frames.City.document.close();
//**库房多选
document.writeln('<iframe id=\"SmallWare\" Author=\"wayx\" class=\"Ware\"   frameborder=\"0\" scrolling=\"no\" style="position: absolute;  width: 100px; z-index: 	9998; display: none"></iframe>');
window.frames.SmallWare.document.writeln("<body topmargin=\"0\" leftmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\"><script src='Include/checkMallChild.js' type='text/javascript'></script><table width=\"120\" border=\"0\" cellpadding=\"0\"  cellspacing=\"1\" bgcolor=\"#ffffff\"><tr><td height=\"100%\" align=\"left\" valign=\"top\" bgcolor=\"#FFFFFF\" id=\"showCity\"></td></tr></table></body>");
//window.frames.SmallWare.document.close();
//**动态定位城市可多选列表
function ShowCheckSmallCity(L,T)
{
	var DataLaySty = document.all.City.style;
	DataLaySty.top = T;
	DataLaySty.display = "";
	DataLaySty.left = L;
	DataLaySty.height = (CheckSmallCityID.length+1)*25>150?150-8:(CheckSmallCityID.length+1)*25-8;
	document.all.City.focus();
	InSertCheckSmallCity();//**填冲城市数据
}

//**填冲城市数据
function InSertCheckSmallCity()
{
	innerCityTD = "";
	var TrueFalse;
	CityDiv = window.frames.City.document.all.showCity;
	
	for(var C=0;C<CheckSmallCityID.length;C++)
	{
		
		innerCityTD = innerCityTD+"<tr><td><input type='checkbox' onclick='CityIDitem(this)' value1='"+CheckSmallCityName[C]+"' id='CityID_"+C+"' value='"+CheckSmallCityID[C]+"'></td><td><font style='font-size: 12px;font-weight: normal;color: #000000;	text-decoration: none;'>"+CheckSmallCityName[C]+"</font></td></tr>"
	}
	CityDiv.innerHTML = innerHTMLStart+innerCityTD+innerHTMLEnd;
}



//end填冲城市数据
//**动态定位库房可多选列表
function ShowCheckSmallWare(L,T)
{
	var DataLaySty = document.all.SmallWare.style;
	DataLaySty.top = T;
	DataLaySty.display = "";
	DataLaySty.left = L;
	DataLaySty.height = (kh_array_id.length+1)*25>150?150-8:(kh_array_id.length+1)*25;
	document.all.SmallWare.focus();
	InSertCheckSmallWare();//**填冲库房数据
}
//**填冲库房数据
//
//填冲库房时，因为库房列表是随着城市的选择而改变的，因此要注意库房数据的填冲选择
//SmallWareID,,选择城市后的库房ID,SmallWareName,,选择城市后的库房名称
//
function InSertCheckSmallWare()
{
	innerCityTD = "";
	
	var SmallWareID = new Array();
	var SmallWareName = new Array();
	
	if(CheckSmallWareID.length>0)
	{
		SmallWareID = CheckSmallWareID;
		SmallWareName = CheckSmallWareName;
	}
	else
	{
		SmallWareID = kh_array_id;
		SmallWareName = kh_array_name;
	}
	//**因库房列表改变，因此要动态更新库房列表的显示高度
	document.all.SmallWare.style.height = (SmallWareID.length+1)*22;
	
	//**
	WareDiv = window.frames.SmallWare.document.all.showCity;
	for(var C=0;C<SmallWareID.length;C++)
	{
		innerCityTD = innerCityTD+"<tr><td><input type='checkbox' onclick='CityNameitem(this)' value1='"+SmallWareName[C]+"' id='WareID_"+C+"' value='"+SmallWareID[C]+"'></td><td><font style='font-size: 12px;font-weight: normal;color: #000000;	text-decoration: none;'>"+SmallWareName[C]+"</font></td></tr>"
	}
	WareDiv.innerHTML = innerHTMLStartWare+innerCityTD+innerHTMLEnd;
}




