// JavaScript Document
// This document by bianca.net.cn

<!--
//ShowPage
function DisplayPageNum(PageNumID,CountNum){
	for(var i=0;i<CountNum;i++){	//<?=$CountNum?>
		PageNum = "PageNum"+i;
		document.getElementById(PageNum).style.display="none";
	}
	PageNumID = PageNumID-1;
	DisplayPage = "PageNum"+PageNumID;
	document.getElementById(DisplayPage).style.display="block";
	document.getElementById("NowPage").value=PageNumID;
	for(var i=0;i<=CountNum;i++){	//<?=$CountNum?>
		var ListPage = "ListPage"+i;
		var ListPageII = "ListPageII"+i;
		//alert(ListPage);
		document.getElementById(ListPage).style.backgroundColor='';
		document.getElementById(ListPageII).style.backgroundColor='';
		if(i==PageNumID){
			document.getElementById(ListPage).style.backgroundColor="#ff90be";
			document.getElementById(ListPageII).style.backgroundColor="#FF90BE";
		}
	}
}
function ChangePage(Action,CountNum){
	var NowPage = document.getElementById("NowPage").value;
	//alert(NowPage);
			
	if(Action=="ActionPav"){
		if(Number(NowPage)!=0){
			var PavPage = Number(NowPage)-1;
			document.getElementById("NowPage").value=PavPage;
			
			for(var i=0;i<CountNum;i++){	//<?=$CountNum?>
				var ListPage = "ListPage"+i;
				var ListPageII = "ListPageII"+i;
				document.getElementById(ListPage).style.backgroundColor='';
				document.getElementById(ListPageII).style.backgroundColor='';
				if((Number(NowPage)+0)==i){
					document.getElementById("ListPage"+PavPage).style.backgroundColor="#ff90be";
					document.getElementById("ListPageII"+PavPage).style.backgroundColor="#ff90be";
				}
			}
			
			PavPage = "PageNum"+PavPage;
			for( var i=0;i<CountNum;i++){	//<?=$CountNum?>
				PageNum = "PageNum"+i;
				document.getElementById(PageNum).style.display="none";
			}
			document.getElementById(PavPage).style.display="block";
		}
		//alert(NowPage);
	}
	if(Action=="ActionNext"){
		if(Number(NowPage)!=(CountNum-1)){	//<?=$CountNum?>
			var NextPage = Number(NowPage)+1;
			document.getElementById("NowPage").value=NextPage;

			for(var i=0;i<CountNum;i++){	//<?=$CountNum?>
				var ListPage = "ListPage"+i;
				var ListPageII = "ListPageII"+i;
				document.getElementById(ListPage).style.backgroundColor='';
				document.getElementById(ListPageII).style.backgroundColor='';
				if((Number(NowPage)+1)==i){
					document.getElementById("ListPage"+NextPage).style.backgroundColor="#ff90be";
					document.getElementById("ListPageII"+NextPage).style.backgroundColor="#ff90be";
				}
			}
			
			NextPage = "PageNum"+NextPage;
			for( var i=0;i<CountNum;i++){	//<?=$CountNum?>
				PageNum = "PageNum"+i;
				document.getElementById(PageNum).style.display="none";
			}
			document.getElementById(NextPage).style.display="block";
		}
	}
}
//-->

function ShowPageFormat(CountNum){
	var StartPageNum="ff";
	//alert(CountNum);
	if(StartPageNum=="ff"){
		document.getElementById("ListPage0").style.backgroundColor="#ff90be";
		document.getElementById("ListPageII0").style.backgroundColor="#ff90be";
		for(var i=1;i<CountNum;i++){
			var PageNum = "PageNum"+i;
			document.getElementById(PageNum).style.display="none";
			//alert(i);
		}
	}
}


//如果单元页内容字数超过限制，给定对象赋高度值并显示滚动条
function ShowPageFormat_Text(CountNum){
	for(var i=0;i<CountNum;i++){
		var HEIGHT = document.getElementById("ConText"+i).innerText.length;
		//alert(HEIGHT);
		if(Number(HEIGHT)>=230){
			//alert(">");
			document.getElementById("ConText"+i).style.height="260px";
		}
		if(Number(HEIGHT)==0){
			document.getElementById("ConText"+i).style.display="none";
		}
	}
}



<!--
//copy url
function CopyURL(Title){
var myHerf=top.location.href;
var title="Bianca时尚资讯 >> " + Title;	//<?=$PicNews[Title]?>
if(window.clipboardData){
var tempCurLink=title + "\n" + myHerf;
var ok=window.clipboardData.setData("Text",tempCurLink);
if(ok) alert("页面地址复制成功，按Ctrl + V ，粘贴到MSN、QQ上发给你的好友们吧 ！");
}else{alert("对不起，目前此功能只支持IE，请直接复制地址栏的地址！");}
}
//-->


//showRemark
function InputRemark(){
	var OnOff = document.getElementById("RemarkStatus").style.display;
	//alert(OnOff);
	if(OnOff=="block"){
		document.getElementById("RemarkStatus").style.display="none";
		//alert("1");
		return;
	}
	if(OnOff=="none"){
		document.getElementById("RemarkStatus").style.display="block";
		//alert("2");
		return;
	}
}

