﻿//Flash
//====================================================================//
function Swf(FlashSrc,FlashWidth,FlashHeight,br){
document.write("<embed src=\""+FlashSrc+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\""+FlashWidth+"\" height=\""+FlashHeight+"\" align=\"center\" wmode=\"transparent\"></embed>");
if (br=="1") {
document.write("<br>");
}
}
function Swf2(FlashSrc,FlashWidth,FlashHeight,br){
document.write("<embed src=\""+FlashSrc+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\""+FlashWidth+"\" height=\""+FlashHeight+"\" align=\"center\"></embed>");
if (br=="1") {
document.write("<br>");
}
}
function SwfLink(FlashSrc,FlashWidth,FlashHeight,FlashLink,br){
document.write("<table width=\""+FlashWidth+"\" height=\""+FlashHeight+"\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td>");
document.write("<div style=\"position:relative\">");
document.write("<embed style=\"position:absolute;z-index:0\" src=\""+FlashSrc+"\" quality=\"high\" width=\""+FlashWidth+"\" height=\""+FlashHeight+"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" wmode=\"transparent\"></embed>");
document.write("<div style=\"position:relative;filter:alpha(opacity=0);-moz-opacity:0;z-index:10;left:0;top:0;background:transparent !important;background:#cdeaf6;width:"+FlashWidth+";height:"+FlashHeight+"px;\">");
document.write("<a href=\""+FlashLink+"\" target=\"_blank\" style=\"cursor:pointer;display:block;width:"+FlashWidth+";height:"+FlashHeight+"px;\"></a>");
document.write("</div>");
document.write("</div>");
document.write("</td></tr></table>");
if (br=="1") {
document.write("<br>");
}
}
//====================================================================//
//NoCopy
//====================================================================//
function KeyDown()
{
 //屏蔽 F5 刷新键
  if (event.keyCode==116)
  { 
     event.keyCode=0;
     event.returnValue=false;
  } 
  //屏蔽 Ctrl
  if(event.ctrlKey)
  {  
     event.returnValue=false;
  }
}
//====================================================================//
//
//====================================================================//
var tID=0;
function ShowTabs(ID){
  if(ID!=tID){
    TabTitle[ID].className="title1";
	TabTitle[tID].className="title2";
	Tabs[ID].style.display="block";
    Tabs[tID].style.display="none";
    tID=ID;
  }
}
//====================================================================//
//
//====================================================================//
function showimg(imgsrc,Title_cn,Field001_cn,Field002_cn,Field006_cn,Field007_cn,Field008_cn,Field011_cn,Field013_cn,Field015_cn,Field016_cn){
document.getElementById("showimg").src=imgsrc;
document.getElementById("Title_cn").innerText=Title_cn;
document.getElementById("Field001_cn").innerText=Field001_cn;
document.getElementById("Field002_cn").innerText=Field002_cn;
document.getElementById("Field006_cn").innerText=Field006_cn;
document.getElementById("Field007_cn").innerText=Field007_cn;
document.getElementById("Field008_cn").innerText=Field008_cn;
document.getElementById("Field011_cn").innerText=Field011_cn;
document.getElementById("Field013_cn").innerText=Field013_cn;
document.getElementById("Field015_cn").innerText=Field015_cn;
document.getElementById("Field016_cn").innerText=Field016_cn;
}
//====================================================================//
function Open(Job) 
{ 
window.open("JobText.asp?Job="+Job,"","width=750,height=500,left=200,top=50,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");}
//====================================================================//
	function CheckForm()
	{
		if(document.UserLogin.UserName.value=="")
		{
			alert("请输入用户名！");
			document.UserLogin.UserName.focus();
			return false;
		}
		if(document.UserLogin.Password.value == "")
		{
			alert("请输入密码！");
			document.UserLogin.Password.focus();
			return false;
		}
	}
//====================================================================//
