// JavaScript Document
function multi_over(divid,cid,overcss,outcss,itotal)
{
	var i;
	try
	{	
		document.getElementById("nav_"+ divid +"_"+cid).className=overcss;		
		document.getElementById("navcontent_"+ divid +"_"+cid).style.display='block';
		for (i=1;i<=parseInt(itotal);i++)
		{
			if (i!=cid)
			{
				document.getElementById("nav_"+ divid +"_"+i).className=outcss;
				document.getElementById("navcontent_"+ divid +"_"+i).style.display='none';
			
			}
		}
	}
	catch(e)
	{
		return;
	}
}
function showImg(viewvalue,path){
var HTML;
switch (viewvalue)
	{
		case view1:
				HTML="<img src='"+path+"' border=1 width='80' height='90'>"
				window.document.all.view1.innerHTML=HTML;
				break;
		case view2:	
				HTML="<img src='"+path+"' border=1 width='80' height='90'>"
				window.document.all.view2.innerHTML=HTML;
				break;	
		case view3:	
				HTML="<img src='"+path+"' border=1  width='80' height='90'>"
				window.document.all.view3.innerHTML=HTML;
				break;	
		case view4:	 
				HTML="<img src='"+path+"' border=1 width='80' height='90'>"
				window.document.all.view4.innerHTML=HTML;
				break;	
		case view5:	 
				HTML="<img src='"+path+"' border=1 width='80' height='90'>"
				window.document.all.view5.innerHTML=HTML;
				break;		
	}
}
//上传多张图片
function CheckPicForm()
{
	if(document.picform.files1.value == "") 
	{
		alert("请上传您的照片文件!\n\n注意：上传JPG、GIF格式照片，单张文件大小不超过250KB");
		document.picform.files1.focus();
		return false;
	}
	document.all.esave.style.visibility = "visible";
	document.picform.SubmitPic.disabled = true;
	document.picform.SubmitClose.disabled = true;
}
//word文档
function CheckWordForm()
{
	if(document.wordform.wordfile.value=="")
	{
		alert("请上传文档！\n\n注意：上传doc格式文档，文件大小不超过200KB");
		document.wordform.wordfile.focus();
		return false;
		}
		document.all.esave.style.visibility = "visible";
		document.wordform.SubmitWord.disabled = true;
		document.wordform.SubmitCloseW.disabled = true;
	}
//电子表格	
function CheckExcelForm()
{
	if(document.excelform.excelfile.value=="")
	{
		alert("请上传Excel电子表格文档！\n\n注意：上传Excel电子表格文档，文件大小不超过200KB");
		document.excelform.excelfile.focus();
		return false;
		}
		document.all.esave.style.visibility = "visible";
		document.excelform.SubmitExcel.disabled = true;
		document.excelform.SubmitCloseE.disabled = true;
	}
//文本文件	
function CheckTxtForm()
{
	if(document.txtform.txtfile.value=="")
	{
		alert("请上传文本文档！\n\n注意：上传文本文档，文件大小不超过50KB");
		document.txtform.txtfile.focus();
		return false;
		}
		document.all.esave.style.visibility = "visible";
		document.txtform.SubmitTxt.disabled = true;
		document.txtform.SubmitCloseT.disabled = true;
	}
//BT
function CheckBTForm()
{
	if(document.btform.btfile.value=="")
	{
		alert("请上传影视下载文件BT！\n\n注意：影视下载文件BT，文件大小不超过200KB");
		document.btform.btfile.focus();
		return false;
		}
		document.all.esave.style.visibility = "visible";
		document.btform.SubmitBT.disabled = true;
		document.btform.SubmitCloseB.disabled = true;
	}
//压缩文件	
function CheckRarForm()
{
	if(document.rarform.rarfile.value=="")
	{
		alert("请上传压缩文件(*.rar或*.zip)！\n\n注意：上传压缩文件大小请不要超过4MB");
		document.rarform.rarfile.focus();
		return false;
		}
		document.all.esave.style.visibility = "visible";
		document.rarform.SubmitRar.disabled = true;
		document.rarform.SubmitCloseR.disabled = true;
	}













