//系统JS,Designed by 千秋学 QQ:13285235 Date 2008-7

//自适应高度-------------------------------
function zishiying(ID,Height1)
{
var target=document.getElementById(ID);
	if(target!=null && target!="undefine")
	{
	target.style.height=document.body.clientHeight-Height1;
	}
}
function SetHeight(ID,CMD)
{
var _designEditor=ID+"_designEditor";
var _previewPane=ID+"_previewPane";
var target=document.getElementById(ID);
var target1=document.getElementById(_designEditor);
var target2=document.getElementById(_previewPane);
var IcoSizeAdd=document.getElementById("IcoSizeAdd");
var IcoSizeJian=document.getElementById("IcoSizeJian");

	if(CMD=="add"){
		target.style.height=400;
		target1.style.height=399;
		target2.style.height=399;
		IcoSizeJian.style.display="block"
		IcoSizeAdd.style.display="none"
	}
	else{
		target.style.height=300;
		target1.style.height=299;
		target2.style.height=299;
		IcoSizeAdd.style.display="block"
		IcoSizeJian.style.display="none";
		
	}
}
//加入收藏
function fAddFavorite(){
		window.external.AddFavorite(top.location, document.title);
}
//获取参数
function Request(strName){
			
				var strHref = window.document.location.href;				
				var intPos = strHref.indexOf("?");
				var strRight = strHref.substr(intPos + 1);
				var arrTmp = strRight.split("&");				
				for(var i = 0; i < arrTmp.length; i++)
				{
					var arrTemp = arrTmp[i].split("=");
					if(arrTemp[0].toUpperCase() == strName.toUpperCase()){return arrTemp[1];}
				}
				return "";
}
function showCon(ID){
				var target=document.getElementById(ID);
				target.style.display="block";
}


