document.writeln('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onContextMenu="return false;">');
document.writeln('<table width="980" border="0" align="center" cellpadding="0" cellspacing="0" id="keepalive_page" style="display:;">');
document.writeln('  <tr>');
document.writeln('    <td bgcolor="#ffffff"><iframe src="../keepalive.asp" name="keepalive" id="keepalive" height="15" width="100%" marginwidth="1" marginheight="1" frameborder="0" align="right" scrolling="no"></iframe></td>');
document.writeln('  </tr>');
document.writeln('</table>');
document.writeln('<table width="980" height="110" border="0" align="center" cellpadding="0" cellspacing="0" id="title_page" style="display:;" style="background: url(/images/title_bg_back_tail.jpg) repeat-x bottom">');
document.writeln('  <tr>');
document.writeln('    <td style="background: url(../images/title_bg.jpg) no-repeat left;" width="770" height="110"><img src="/images/blank.gif" width="770" height="110">');
document.writeln('    </td>');
document.writeln('    <td style="background: url(/images/title_bg_back.jpg) no-repeat left bottom;" width="100%"></td>');
document.writeln('  </tr>');
document.writeln('</table>');

document.write("<div id=\"showLayer1\" style=\"position:absolute; width:166; height:60px; z-index:1; left: 0px; top: 100px;visibility: hidden;z-index:10\"> ");
document.write("  <table width=\"100%\" border=\"0\" style=\"background-color: #FFFFFF\">");
document.write("    <tr>");
document.write("      <td valign=\"top\"> ");
document.write("        <img src=\"../images/loading.gif\" width=\"166\" height=\"60\">");
document.write("      </td>");
document.write("    </tr>");
document.write("  </table>");
document.write("</div>");
/*显示认证码 o start1*/
function get_Code() {
	var Dv_CodeFile = "Dv_GetCode.asp";
	if(document.getElementById("imgid"))
		document.getElementById("imgid").innerHTML = '<img src="'+Dv_CodeFile+'?t='+Math.random()+'" alt="点击刷新验证码" style="cursor:pointer;border:0;vertical-align:middle;" onclick="this.src=\''+Dv_CodeFile+'?t=\'+Math.random()" />'
}
/*o end*/
function MM_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { 
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
function okclick(){
MM_showHideLayers('showLayer1','','show');
}
function pagestart(){
MM_showHideLayers('showLayer1','','show');
}
function pageend(){
MM_showHideLayers('showLayer1','','hidden');
}
var objdiv=MM_findObj('showLayer1');
objdiv.style.top=Math.floor((document.body.clientHeight-objdiv.clientHeight)/2);
objdiv.style.left=Math.floor((document.body.clientWidth-objdiv.clientWidth)/2);
//pagestart();
//==================================

day=new Date();
myhour=day.getHours();
if(myhour<6)
welcomestring="凌晨好！还在学习和工作吗,要注意身体哦! ";
else if(myhour<9)
welcomestring="早上好！新的一天从现在开始！";
else if(myhour<12)
welcomestring="上午好！看看新的消息吧！";
else if(myhour<14)
welcomestring="中午好！不午休？";
else if(myhour<17)
welcomestring="下午好！！";
else if(myhour<19)
welcomestring="傍晚好！辛苦了一天了吧！";
else if(myhour<23)
welcomestring="晚上好！！";
else
welcomestring="夜里好！早点休息吧！";

//====================
function crml(nid) 
{ 
try 
{ 
nid=new ActiveXObject("Agent.Control.2"); 
nid.Connected = true; 
nid.Characters.Load(""); 
return nid; 
} 
catch (err) 
{ 
return false; 
} 
} 

function chplay0 () 
{ 
if (ml=crml ("ml")) 
{ 
var MerlinID; 
var MerlinACS; 
//MERLIN、GINIE、ROVER  MerlinID
Merlin = ml.Characters.Character(MerlinID); 
Merlin.MoveTo(750,150);
Merlin.Show(); 
Merlin.Play("Announce"); 
Merlin.Play("Gestureright"); 
//Merlin.Play("Explain"); 
Merlin.Speak("欢迎您进入中考报名后台管理系统"); 
//Merlin.Play("Gestureright"); 
Merlin.Play("Pleased");
Merlin.Play("Idle1_4");

Merlin.Hide();
Merlin.MoveTo(300,400);
Merlin.Show();
Merlin.Play("Read")
Merlin.Speak("请看看左边，是功能菜单！");
Merlin.Play("Idle1_2");
Merlin.Play("Read")
Merlin.Speak("右上角进入修改密码、退出系统！");

//Merlin.Speak("我们的网址: http://zhongkao.gzzk.cn/gzzk/ "); 
Merlin.Play("Idle1_1");
//Merlin.Hide();
Merlin.MoveTo(700,500);
Merlin.Show();
Merlin.Play("Surprised"); 
Merlin.Play("GestureUp");
Merlin.Speak("为安全起见……"); 
Merlin.Play("GestureUp");
Merlin.Speak("记得修改您的密码啊!"); 
Merlin.Play("DontRecognize");
Merlin.Speak("希望您在这里用得开心！");
//Merlin.Play("DontRecognize"); 
//Merlin.Play("Greet");
Merlin.Play("DontRecognize");
Merlin.Speak("有什么建议联系我们吧！");
Merlin.Play("Read")
Merlin.Play("Greet");
Merlin.Speak("下次再见！");
//Merlin.Play("Greet");
Merlin.Hide(); 
} 
} 

function chplay2 () 
{ 
if (ml=crml ("ml")) 
{ 
var MerlinID; 
var MerlinACS; 
//MERLIN、GINIE、ROVER  MerlinID
Merlin = ml.Characters.Character(MerlinID); 
Merlin.MoveTo(750,150);
Merlin.Show(); 
//Merlin.Play("Announce"); 
Merlin.Play("Gestureright"); 
//Merlin.Play("Explain"); 
Merlin.Speak(welcomestring); 
//Merlin.Play("Gestureright"); 
Merlin.Play("Pleased");
Merlin.Play("Idle1_4");
Merlin.Hide();
Merlin.MoveTo(700,500);
Merlin.Show();
Merlin.Play("DontRecognize");
Merlin.Speak("有什么建议联系我们吧！技术支持联系电话：85530345");
Merlin.Play("Greet");
Merlin.Speak("下次再见！");
//Merlin.Play("Greet");
Merlin.Hide(); 
} 
} 


function chplay_ks1 () 
{ 
if (ml=crml ("ml")) 
{ 
var MerlinID; 
var MerlinACS; 
//MERLIN、GINIE、ROVER  MerlinID
Merlin = ml.Characters.Character(MerlinID); 
Merlin.MoveTo(750,150);
Merlin.Show(); 
Merlin.Play("Announce"); 
Merlin.Play("Gestureright"); 
//Merlin.Play("Explain"); 
Merlin.Speak("您好，欢迎进入中考报名系统！"); 
//Merlin.Play("Gestureright"); 
Merlin.Play("Pleased");
Merlin.Hide();
Merlin.MoveTo(300,400);
Merlin.Show();
Merlin.Play("Read")
Merlin.Speak("记住，报名共分四步！");
//Merlin.Play("Idle1_2");
Merlin.Play("Read")
Merlin.Speak("第一步认真填写基本资料！");

Merlin.Play("Idle1_1");
//Merlin.Hide();
Merlin.MoveTo(700,500);
Merlin.Show();
Merlin.Play("Surprised"); 
Merlin.Play("GestureUp");
Merlin.Speak("填写完以后，按最下面的“保存”按钮！"); 
Merlin.Play("GestureUp");
Merlin.Speak("保存成功就会自动进入第二步!"); 
//Merlin.Play("DontRecognize"); 
//Merlin.Play("Greet");
Merlin.Play("DontRecognize");
Merlin.Speak("认真填写和检查啊！");
//Merlin.Play("Read")
Merlin.Play("Greet");
Merlin.Speak("再见！");
//Merlin.Play("Greet");
Merlin.Hide(); 
} 
} 

function chplay_ks2 () 
{ 
if (ml=crml ("ml")) 
{ 
var MerlinID; 
var MerlinACS; 
//MERLIN、GINIE、ROVER  MerlinID
Merlin = ml.Characters.Character(MerlinID); 
Merlin.MoveTo(700,500);
Merlin.Show();
Merlin.Play("Surprised"); 
Merlin.Speak("哈哈，我来啦！");
Merlin.Play("Read")
Merlin.Play("Read")
Merlin.Speak("请认真核对资料阿，避免影响以后的考试！"); 
//Merlin.Play("GestureUp");
Merlin.Play("Idle1_1");
Merlin.Play("Idle1_1");
Merlin.Play("Gestureright"); 
Merlin.Speak("确认资料没有错误了吗？"); 
//Merlin.Play("DontRecognize"); 
Merlin.Speak("发现有问题，请先修正哦~~"); 
Merlin.Play("Idle1_1");
Merlin.Speak("按下面的“填写完毕”按钮完成这次报名！！！"); 
Merlin.Play("Idle1_1");
Merlin.Play("Idle1_1");
Merlin.Play("Greet");
//Merlin.Play("Read")
Merlin.Play("bye");
Merlin.Speak("谢谢您使用我们的中考网上报名系统。再见！");
//Merlin.Play("Greet");
Merlin.Hide(); 
} 
} 
