function mycode(){
	curl = window.parent.location.href;
	curl = curl.toLowerCase();
	cend = curl.indexOf(".html");
	if (cend == -1){
		cend = curl.length;
	}
	else{
		cend += 5;	
	}
	window.clipboardData.setData("text",document.title+"\n"+curl.substring(0, cend));
	alert("成功复制本页标题和网址!您可以直接发送给好友了!");
}
function Re_FontSize(n)
{document.getElementById("Content").style.fontSize=n+"px";}
function switchTag(tag,content,k,n,stylea,styleb){	 
	for(i=1; i <=n; i++){
		if (i==k){
      		document.getElementById(tag+i).className=stylea;
	  		document.getElementById(content+i).className="midlf";
	  	}
		else{
	     	document.getElementById(tag+i).className=styleb;
		 	document.getElementById(content+i).className="Hidebox";
		}
	}
}
function switchTag2(tag,content,k,classty)
{
	for(var i=1; i <=4; i++)
	{
		if (i==k)
		{
			document.getElementById(tag+i).className="l1";
			document.getElementById(content+i).className="box_show";
		}else{
			document.getElementById(tag+i).className="l2";
			document.getElementById(content+i).className="box_none";
		}
	}
}
function OpenWindow(Url)
{
  var iWidth=1024;                          //弹出窗口的宽度;
  var iHeight=768;                        //弹出窗口的高度;
  var iTop = (window.screen.availHeight-30-iHeight)/2;       //获得窗口的垂直位置;
  var iLeft = (window.screen.availWidth-10-iWidth)/2;           //获得窗口的水平位置;
  window.open(Url,'','toolbar=0,location=0,maximize=1,directories=0,status=1,menubar=0,scrollbars=0,resizable=1,top='+iTop+',left='+iLeft+',width='+iWidth+',height='+iHeight);
}
function selcheck(n){
	var chk=document.all("ids");
	for(i=0;i<4;i++){
		if(document.all("allcheck").checked==true){
			chk(i).checked=true;
		}else{
			chk(i).checked=false;
		}
		if (n==0) {chk(i).checked=false;}
	}	
}

function checkloginform(){
	if(logform.username.value==""){
		alert ("用户名不能为空！");
		return false;
	}
	if(logform.psw.value==""){
		alert ("密码不能为空！");
		return false;
	}
	if(logform.rnd.value==""){
		alert ("验证码不能为空！");
		return false;
	}
}

function getdate(){
    var timedate= new Date("Nov 07,2012");
    var now = new Date(); 
    var date = timedate.getTime() - now.getTime(); 
    var time = Math.floor(date / (1000 * 60 * 60 * 24)); 
	if (time <= 0){
		document.write("<font style='color:blue;'>2012年报关员考试时间预计</font>：<font style='color:#ff0000;'>11月6日</font>距考试还剩<font style='color:#ff0000; font-size:14px;'><b>0</b></font>天");
	}
	else{
		document.write("<font style='color:blue;'>2012年报关员考试时间预计</font>：<font style='color:#ff0000;'>11月6日</font>距考试还剩<font style='color:#ff0000; font-size:14px;'><b>"+time +"</b></font>天");
	}
}


document.writeln("<style>");
document.writeln("#bottomNav {");
document.writeln("background-image:url(http:\/\/www.bgyedu.com\/about\/images\/bg.jpg);");
document.writeln("z-index:999;");
document.writeln("position:fixed;");
document.writeln("bottom:0;");
document.writeln("right:0;");
document.writeln("width:620px;");
document.writeln("height:29px;");
document.writeln("_position:absolute;");
document.writeln("_top: expression(documentElement.scrollTop + documentElement.clientHeight-this.offsetHeight);");
document.writeln("overflow:visible;");
document.writeln("}");
document.writeln("#bottomNav a{font-size:14px;font-weight:bold; color:#006699;}");
document.writeln("<\/style>");
document.writeln("<div id=\"bottomNav\"><table width=\"100%\"><tr><td><a href=tencent:\/\/message\/?Menu=yes&uin=712931601 target=_blank><img src=http:\/\/www.bgyedu.com\/about\/images\/p.gif border=0 align=absmiddle>在线咨询<\/a><td><img src=http:\/\/www.bgyedu.com\/about\/images\/a.gif><td><a href=http://www.bgyedu.com/zhuce.html>新学员注册<\/a><td><img src=http:\/\/www.bgyedu.com\/about\/images\/a.gif><td><a href=http://www.bgyedu.com/school/136/ target=_blank>免费试听<\/a><td><img src=http:\/\/www.bgyedu.com\/about\/images\/a.gif><td><a href=http://myclass.edu24ol.com/classlist_bgy.asp>选课报名<\/a><td><img src=http:\/\/www.bgyedu.com\/about\/images\/a.gif><td><a href=http://www.bgyedu.com/about/pay.html>支付学费<\/a><td><img src=http:\/\/www.bgyedu.com\/about\/images\/a.gif><td><a href=http:\/\/www.bgyedu.com\/school\/>再次登陆学习<\/a><td><a href=\"javascript:void(null);\" target=\"_self\" onClick=\"bottomNav.style.visibility='hidden';\"><img src=http:\/\/www.bgyedu.com\/about\/images\/c.gif border=0><\/a><\/table><\/div>");
