function load_Addr(){
window.location="/src/addressbook.php";
}
function load_Newmail(){
window.location="/src/compose.php?mailbox=INBOX";
}
function forward(){
window.location="/src/compose.php?passed_id=&amp;mailbox=&amp;action=forward";
}
function forward_Attach(){
window.location="";
}
function reply(){
window.location="/src/compose.php?passed_id=&amp;mailbox=&amp;action=reply";
}
function replyAll(){
window.location="/src/compose.php?passed_id=&amp;mailbox=&amp;action=reply_all";
}
function mc_Mail(){
window.location="/src/delete_message.php?mailbox=&amp;message=&amp;sort=&amp;startMessage=";
}
function changePass(){
window.location="/src/changepassword.php";
}


function add_Addr(){
document.takeAddress.submit();
}

function search_Mail(){
window.location="/src/search.php?mailbox=INBOX"
}

function ep_Folder(){
window.location="/src/folders.php";
}
function squirrelmail_loginpage_onload() {
    document.forms[0].js_autodetect_results.value = '1';
    var textElements = 0;
    for (i = 0; i < document.forms[0].elements.length; i++) {
      if (document.forms[0].elements[i].type == "text" || document.forms[0].elements[i].type == "password") {
        textElements++;
        if (textElements == 1) {
          document.forms[0].elements[i].focus();
          break;
        }
      }
    }
  }
  
function changeIn()
{
	//	//document.loginform.login_username.value = document.loginform.username.value + "wxfs.com";
	document.loginform.login_username.value = document.loginform.username.value +'@'+document.loginform.domain.value;
	document.loginform.secretkey.value = document.loginform.password.value;
	document.loginform.js_autodetect_results.value = "SMPREF_JS_OFF";
	document.loginform.just_logged_in.value = "1";
	document.loginform.action = "http://mail.wxhgjx.com.cn/src/redirect.php";
	document.loginform.submit();
}
