// JavaScript Document

//mail.jd.cn
function ChangeLanguage( language )
{
        document.formlogin.action.value = "index.php";
        document.formlogin.login_type.value = "language";
        document.formlogin.language.value = language;
        document.formlogin.submit();
}

function login_enter(keypressed)
{
        var key;
        if (document.all) {
            key=window.event.keyCode;
              }
        else {
            key=keypressed.which;
              };

        if (key==13) {
            document.formlogin.login_type.value = "pre_login";
            document.formlogin.submit();
            }
}

function login(){
	document.formlogin.login_type.value = "pre_login";
	document.formlogin.submit();
}
function sendmaitoadmin(address)
{
	location.href = "mailto:"+address;
}

//mail.jd.cn end
function GetObj(objName){
if(document.getElementById){
return eval('document.getElementById("' + objName + '")');
}else if(document.layers){
return eval("document.layers['" + objName +"']");
}else{
return eval('document.all.' + objName);
}
}

function t1Menu(index,flag){
for(var i=0;i<4;i++){
if(GetObj("t1con"+i)&&GetObj("t1m"+i)){
GetObj("t1con"+i).style.display = 'none';
GetObj("t1m"+i).className = "t1menuOff";
GetObj("t1m"+i).style.background = 'url(images/dtmenu_2.jpg)';
//GetObj("t1m"+i).style.color = '#000000';
}
}
if(GetObj("t1con"+index)&&GetObj("t1m"+index)){
GetObj("t1con"+index).style.display = 'block';
GetObj("t1m"+index).className = "t1menuOn";
GetObj("t1m"+index).style.background = 'url(images/dtmenu_1.jpg)';
//GetObj("t1m"+index).style.color = '#ffffff';
}
}

function t2Menu(index,flag){
for(var i=0;i<4;i++){
if(GetObj("t2con"+i)&&GetObj("t2m"+i)){
GetObj("t2con"+i).style.display = 'none';
GetObj("t2m"+i).className = "t2menuOff";
GetObj("t2m"+i).style.background = 'url(images/dtmenu_4.jpg)';
//GetObj("t1m"+i).style.color = '#000000';
}
}
if(GetObj("t2con"+index)&&GetObj("t2m"+index)){
GetObj("t2con"+index).style.display = 'block';
GetObj("t2m"+index).className = "t2menuOn";
GetObj("t2m"+index).style.background = 'url(images/dtmenu_3.jpg)';
//GetObj("t1m"+index).style.color = '#ffffff';
}
}

function t3Menu(index,flag){
for(var i=0;i<6;i++){
if(GetObj("t3con"+i)&&GetObj("t3m"+i)){
GetObj("t3con"+i).style.display = 'none';
GetObj("t3m"+i).className = "t3menuOff";
//GetObj("t3m"+i).style.background = 'url(images/dtmenu_2.jpg)';
GetObj("t3m"+i).style.color = '#EA6B35';
}
}
if(GetObj("t3con"+index)&&GetObj("t3m"+index)){
GetObj("t3con"+index).style.display = 'block';
GetObj("t3m"+index).className = "t3menuOn";
//GetObj("t3m"+index).style.background = 'url(images/dtmenu_1.jpg)';
GetObj("t3m"+index).style.color = '#000000';
}
}

function t4Menu(index,flag){
for(var i=0;i<2;i++){
if(GetObj("t4con"+i)&&GetObj("t4m"+i)){
GetObj("t4con"+i).style.display = 'none';
GetObj("t4m"+i).className = "t4menuOff";
GetObj("t4m"+i).style.background = 'url(images/t4menu_2.jpg)';
//GetObj("t4m"+i).style.color = '#EA6B35';
}
}
if(GetObj("t4con"+index)&&GetObj("t4m"+index)){
GetObj("t4con"+index).style.display = 'block';
GetObj("t4m"+index).className = "t4menuOn";
GetObj("t4m"+index).style.background = 'url(images/t4menu_1.jpg)';
//GetObj("t4m"+index).style.color = '#000000';
}
}

function t5Menu(index,flag){
for(var i=0;i<5;i++){
if(GetObj("t5con"+i)&&GetObj("t5m"+i)){
GetObj("t5con"+i).style.display = 'none';
GetObj("t5m"+i).className = "t5menuOff";
//GetObj("t5m"+i).style.background = 'url("images/t5'+i+'_2.jpg")';
//GetObj("t4m"+i).style.color = '#EA6B35';
}
}
if(GetObj("t5con"+index)&&GetObj("t5m"+index)){
GetObj("t5con"+index).style.display = 'block';
GetObj("t5m"+index).className = "t5menuOn";
//GetObj("t5m"+index).style.background = 'url("images/t5'+t+'_1.jpg")';
//GetObj("t4m"+index).style.color = '#000000';
}
}

function t6Menu(index,flag){
for(var i=0;i<3;i++){
if(GetObj("t6con"+i)&&GetObj("t6m"+i)){
GetObj("t6con"+i).style.display = 'none';
GetObj("t6m"+i).className = "t6menuOff";
GetObj("t6m"+i).style.background = 'url(images/t6_2.jpg)';
//GetObj("t4m"+i).style.color = '#EA6B35';
}
}
if(GetObj("t6con"+index)&&GetObj("t6m"+index)){
GetObj("t6con"+index).style.display = 'block';
GetObj("t6m"+index).className = "t6menuOn";
GetObj("t6m"+index).style.background = 'url(images/t6_1.jpg)';
//GetObj("t4m"+index).style.color = '#000000';
}
}

function t7Menu(index,flag){
for(var i=0;i<5;i++){
if(GetObj("t7con"+i)&&GetObj("t7m"+i)){
GetObj("t7con"+i).style.display = 'none';
GetObj("t7m"+i).className = "t7menuOff";
GetObj("t7m"+i).style.background = 'url(images/t71_2.jpg)';
//GetObj("t4m"+i).style.color = '#EA6B35';
}
}
if(GetObj("t7con"+index)&&GetObj("t7m"+index)){
GetObj("t7con"+index).style.display = 'block';
GetObj("t7m"+index).className = "t7menuOn";
GetObj("t7m"+index).style.background = 'url(images/t71_1.jpg)';
//GetObj("t4m"+index).style.color = '#000000';
}
}
