function ShowDIV(id,divHead,divContent,ParDIV_ID,DIV_ID,Widths,Heights,Tops,Lefts,BgColors,BgImage,IsBorders,BorderColors,AutoClose){
	var bOnWin;
	if (document.getElementById(DIV_ID)){
		document.body.removeChild(document.getElementById(DIV_ID));
		//return false;
	}
	//取得父DIV位置
	ParDIV_ID = document.getElementById(ParDIV_ID);
	//alert(ParDIV_ID);
	var offset = Offset(ParDIV_ID);
	//alert('Width='+offset.width+' , Height='+offset.height+' , TOP='+offset.top+' , Left='+offset.left);return false;
	//虚拟一个DIV
	var iDiv = document.createElement('div');
	iDiv.id = DIV_ID;
	iDiv.style.position = 'absolute';
	if (Widths != null){iDiv.style.width = Widths + 'px';}else{iDiv.style.width = (offset.width - 2) + 'px';}
	if (Heights != null){iDiv.style.height = Heights + 'px';}
	if (Tops != null){iDiv.style.top = Tops + 'px';}else{iDiv.style.top = (offset.top + offset.height) + 'px';}
	if (Lefts != null){
		iDiv.style.left = Lefts + 'px';
	}
	else{
		if((offset.left + Widths) > document.body.clientWidth){
			iDiv.style.left = (offset.left - Widths) + 'px';
		}
		else {
			iDiv.style.left = offset.left + 'px';
		}
	}
	if (BgColors != null){iDiv.style.backgroundColor = BgColors;}else{iDiv.style.backgroundColor = '#ffffff';}
	if (BgImage != null){iDiv.style.backgroundImage = BgImage;}
	//alert(BgImage);
	/*
	*/
	//iDiv.style.backgroundRepeat = 'repeat-y';
	if (IsBorders != null){
		if (BorderColors != null){iDiv.style.border = '1px solid '+BorderColors;}else{iDiv.style.border = '1px solid #0093D9';}
	}
	else {
		iDiv.style.border = '0px';
	}
	iDiv.style.zIndex = '1000';
	//iDiv.style.overflow = 'auto';

	//iDiv.style.padding = '2px';
	//iDiv.style.lineHeight = offset.height + 'px';
	//iDiv.style.textIndent = '4px';
	document.body.appendChild(iDiv);
	///*
	if (AutoClose != 1){
		str = '<div style="padding:3px;background:#FFD60D;height:16px;border-bottom:1px solid #0093D9;"><span style="float:left;">■ <strong>'+divHead+'</strong></span><span style="float:right;cursor:pointer;" onclick="CloseDIV(\''+DIV_ID+'\')" title="关闭">[<strong>X</strong>]</span></div><div id="divcontent" style="clear:both;padding:3px;">'+divContent+'</div>';
	}
	else {
		iDiv.onmouseover = function() {bOnWin = 1;}
		iDiv.onmouseout = function() {bOnWin = null;}
		str = divContent;
		document.documentElement.onmousedown= function() {
			var iDiv = document.getElementById(DIV_ID);
			if (!bOnWin && iDiv){document.body.removeChild(iDiv)}; 
		}
	}
	iDiv.innerHTML = '加载中, 请稍候...';
	iDiv.innerHTML = str;
	return iDiv;
}

function CloseDIV(nDIV) {
	var nDIV = document.getElementById(nDIV);
	if (nDIV){document.body.removeChild(nDIV);}
}