// JavaScript Document

function CheckAll(){
	for (var i=0;i<theForm.elements.length;i++){
		var e = theForm.elements[i];
		if (e.name != 'chkall')
		e.checked = theForm.chkall.checked;
	}
}

function UploadImg(){
	if (theForm.Img_Small_Checkbox.checked == true){
		theForm.File1.disabled = false
		Img_Small_Title.innerText="* ";
	}else{
		theForm.File1.disabled = true
		Img_Small_Title.innerText="";
	}
}

function Upload_Img(ID){
	if (ID == 1) {
		if (theForm.Img_Small_Checkbox.checked == true){
			Cue_1.style.display="";
			theForm.File1.disabled = false
		}else{
			Cue_1.style.display="none";
			theForm.File1.disabled = true
		}
	}else{
		if (theForm.Img_Big_Checkbox.checked == true){
			Cue_2.style.display="";
			theForm.File2.disabled = false
		}else{
			Cue_2.style.display="none";
			theForm.File2.disabled = true
		}
	}
}

function openWin(theURL,winName,width,height) {
	window.open(theURL,winName,'width='+width+',height='+height+',toolbar=0,location=0,status=1,menubar=0,scrollbars=0,resizable=0');
}

function checkdata(){
	if (document.theForm.title.value==""){
		alert("对不起，请输入文章标题！")
		document.theForm.title.focus()
		return false
	}
	if (document.theForm.viewhtml.checked == true){
		alert("对不起，请取消“查看HTML源代码”后再添加！")
		document.theForm.viewhtml.focus()
		return false
	}
	document.theForm.Content.value = frames.message.document.body.innerHTML;
}

function WebHead(Url){
	document.write("<table width='770' border='0' align='center' cellpadding='0' cellspacing='0'>");
	document.write("  <tr align='right'>");
	document.write("    <td height='30' background='"+Url+"images/menu_bg_0.gif'><table border='0' cellspacing='0' cellpadding='0'>");
	document.write("        <tr align='center'>");
	document.write("          <td width='3'><img src='"+Url+"images/menu_bg_1.gif' width='3' height='20'></td>");
	document.write("          <td width='80'><a href='../' style='color: #FFFF00'><strong>返回首页</strong></a></td>");
	document.write("          <td width='5'><img src='"+Url+"images/menu_bg_2.gif' width='5' height='20'></td>");
	document.write("          <td width='80'><a href='../home.asp' style='color: #FFFF00'><strong>侯杰画室</strong></a></td>");
	document.write("          <td width='5'><img src='"+Url+"images/menu_bg_2.gif' width='5' height='20'></td>");
	document.write("          <td width='80'><a href='../exhibit.asp' style='color: #FFFF00'><strong>作品展厅</strong></a></td>");
	document.write("          <td width='5'><img src='"+Url+"images/menu_bg_2.gif' width='5' height='20'></td>");
	document.write("          <td width='80'><a href='../funds.asp' style='color: #FFFF00'><strong>师资力量</strong></a></td>");
	document.write("          <td width='5'><img src='"+Url+"images/menu_bg_2.gif' width='5' height='20'></td>");
	document.write("          <td width='80'><a href='../club.asp' style='color: #FFFF00'><strong>师生剪影</strong></a></td>");
	document.write("          <td width='5'><img src='"+Url+"images/menu_bg_2.gif' width='5' height='20'></td>");
	document.write("          <td width='80'><a href='../about.asp' style='color: #FFFF00'><strong>招生简章</strong></a></td>");
	document.write("          <td width='5'><img src='"+Url+"images/menu_bg_2.gif' width='5' height='20'></td>");
	document.write("          <td width='80'><a href='../bbs/' style='color: #FFFF00'><strong>BBS论坛</strong></a></td>");
	document.write("          <td width='3'><img src='"+Url+"images/menu_bg_3.gif' width='3' height='20'></td>");
	document.write("          <td><img src='"+Url+"images/blank.gif' width='10' height='1'></td>");
	document.write("        </tr>");
	document.write("      </table></td>");
	document.write("  </tr>");
	document.write("  <tr>");
	document.write("    <td background='"+Url+"images/line_1.gif'><img src='images/line_1.gif' width='3' height='3'></td>");
	document.write("  </tr>");
	document.write("  <tr>");
	document.write("    <td bgcolor='#990000'><img src='"+Url+"images/blank.gif' width='1' height='3'></td>");
	document.write("  </tr>");
	document.write("</table>");
}

function Copyright(WebName,WebUrl,ImgUrl){
	document.write("<table width='770' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='#FF0000'>");
	document.write("  <tr>");
	document.write("    <td bgcolor='#990000'><img src='"+ImgUrl+"images/blank.gif' width='1' height='3'></td>");
	document.write("  </tr>");
	document.write("  <tr>");
	document.write("    <td height='50' align='center'>［<a href='../' style='color: #333333'>画室首页</a>　<a href='contact.asp' style='color: #333333'>联系我们</a>］<br>");
	document.write("      "+WebName+"　"+WebUrl+"</td>");
	document.write("  </tr>");
	document.write("</table>");
}