/**
 * @author Administrator
 * @encode UTF-8
 */
//window.onload=setPos;
function setPos(id)
{
	var cID;

	if(id==undefined)	
	{
		//alert(id);
		id='contBox';
		//alert(id);
	}

		cID=document.getElementById(id);
	//alert(document.documentElement.scrollTop);
	//alert(parseInt(cID.style.height));
	//alert(document.body.clientHeight);
	//alert(document.documentElement.scrollTop + document.body.clientHeight - parseInt(cID.style.height));
	//alert(document.documentElement.clientHeight);
	//cID.style.top=(document.documentElement.scrollTop + document.body.clientHeight - parseInt(cID.style.height)-640)+'px';
	cID.style.top= (document.documentElement.scrollTop + document.documentElement.clientHeight - parseInt(cID.style.height))+'px';
	/*注：设置元素的top属性后加上px是为了兼容firefox浏览器；document.documentElement.clientHeight高度是属于标准的属性，表示 文档可见高度，
	 * 而docment.body.clientHeigth一般 已经摈弃，返回的是
	 * 元素的整个高度
	 */
		setTimeout("setPos('contBox');",100);
}

