// JavaScript Document
function mouseOver(obj){
	obj.style.background="#F3F3F3";
}
function mouseOut(obj){
	obj.style.background="";
}
//iframe自适应高度
function SetCwinHeight(ifrm){
	var bobo=document.getElementById(ifrm); //iframe id
	if (document.getElementById){
		if (bobo && !window.opera){
			if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
				bobo.height = bobo.contentDocument.body.offsetHeight;
			}else if(bobo.Document && bobo.Document.body.scrollHeight){
				bobo.height = bobo.Document.body.scrollHeight;
			}
		}
	}
}
//Comment box
function clearobj(obj){
	if(obj.value=="----此处填写想说的话----"){
		obj.value="";
	}
}
//Check comment info
function checkform(){
	if(document.form1.MusicUserName.value==""){
		alert("请填写您的昵称。");
		document.form1.MusicUserName.focus();
		return false;
	}
	if(document.form1.MusicUserName.value.length>7){
		alert("您的昵称过长。");
		document.form1.MusicUserName.focus();
		return false;
	}
	if(document.form1.MusicUserCom.value=="" || document.form1.MusicUserCom.value=="----此处填写想说的话----"){
		alert("请填写您想说的话。");
		document.form1.MusicUserCom.focus();
		return false;
	}
	else return true;
}

//Check search
function checksearch(){
	if(document.searchform.keyword.value==""){
		alert("请输入搜索关键字");
		document.searchform.keyword.focus();
		return false;
	}
	else return true;
}

//Add face
function addface(face){
	if(document.form1.MusicUserCom.value=="----此处填写想说的话----"){
		document.form1.MusicUserCom.value="";
	}
	document.form1.MusicUserCom.value+=face;
}

//鼠标经过翻页按钮
function pageOver(objName,btnName){
	objName.src=btnName;
}
//鼠标移出
function pageOut(objName,btnName){
	objName.src=btnName;
}
//预先加载翻页按钮
window.onload=function(){
	image1= new Image(100,50);
	image1.src = "pagebackover.gif";
	image2 = new Image(100,50);
	image2.src = "pageendover.gif";
	image3 = new Image(100,50);
	image3.src = "pagehomeover.gif";
	image4 = new Image(100,50);
	image4.src = "pagenextover.gif";
	image5 = new Image(100,50);
	image5.src = "pagebackover1.gif";
	image6 = new Image(100,50);
	image6.src = "pagenextover1.gif";
}

