function login(intno)
{
var objForm = document.forms[intno];
//document.write("this is");
//document.write(objForm.elements[1].value);
 //var objEle = objForm.elements[0];

loji=false;
visitorname= objForm.elements[0].value;
password=objForm.elements[1].value;
//visitorname=prompt("请输入用户名（请注意大小写）:","");
//password=prompt("请输入密码（请注意大小写）：","");
if (visitorname=="sky"&&password=="skyeyes")
{
loji=true;
window.location="./index.html";
}

// 
if (visitorname=="sxsqxt"&&password=="sxsqxt1")
{
loji=true;
window.location="./broadcast.htm";
}

//市委、市政府网页 
if (visitorname=="swszf"&&password=="swszf123")
{
loji=true;
window.location="./yh1/ld.htm";
}

if (visitorname=="t"&&password=="t")
{
loji=true;
window.location="./yh1/ld.htm";
}

//朝阳民政局
if (visitorname=="mzj"&&password=="mzj")
{
loji=true;
window.location="./zyyh/mzj.htm";
}

//朝阳民航
if (visitorname=="cymh"&&password=="cymhhhq")
{
loji=true;
window.location="./zyyh/mhxx.htm";
}

//白石水库
if (visitorname=="cyjj"&&password=="cyjj")
{
loji=true;
window.location="./zyyh/Highway.html";
}


//防汛指挥部
if (visitorname=="csfxzhb"&&password=="csfxzhblh")
{
loji=true;
window.location="./zyyh/fxzhb.htm";
}

//交通文艺广播
if (visitorname=="jtdt"&&password=="jtdt4000")
{
loji=true;
window.location="./zyyh/jtgb.htm";
}

//市林业局
if (visitorname=="slyj"&&password=="slyj588")
{
loji=true;
window.location="./zyyh/fxzhb.htm";
}

//高速公路
if (visitorname=="dyj"&&password=="dyj")
{
loji=true;
window.location="./zyyh/fxzhb.htm";
}

//朝阳广电报
if (visitorname=="gx"&&password=="gx123")
{
loji=true;
window.location="./byh/gx.doc";
}

//辽宁轮胎
if (visitorname=="ccdt"&&password=="ccdt123")
{
loji=true;
window.location="./byh/ccdt.txt";
}

//朝阳生活晨报
if (visitorname=="shcb"&&password=="shcb123")
{
loji=true;
window.location="./byh/shcb.txt";
}

//
if (visitorname=="sxwb1"&&password=="sxwb1123")
{
loji=true;
window.location="./byh/sxwb1.txt";
}

//
if (visitorname=="sxwb2"&&password=="sxwb2123")
{
loji=true;
window.location="./byh/sxwb2.txt";
}

//
if (visitorname=="sxsb"&&password=="sxsb123")
{
loji=true;
window.location="./byh/sxsb.txt";
}

//
if (visitorname=="lhjt"&&password=="lhjt123")
{
loji=true;
window.location="./byh/lhjt.xls";
}

//
if (visitorname=="zgwt"&&password=="zgwt123")
{
loji=true;
window.location="./byh/zgwt.txt";
}

if (loji==false)
{
alert("您的密码不正确，请核实后重新输入……")
//history.back()
loji=true;
window.location="http://www.cyqxt.com/";
}
}
  


