document.domain="wtdirect.com";

function logoutWTDirect() { 
  if (document.forms.logout) 
    document.forms.logout.submit(); 
} 



function applyForDBSV() { navToSection("DBSV"); }

function showPrivacy() { navToSection("Privacy"); }

function showMyProfile() { navToFile("1149598035200"); }

function showPrivacyChoices() {
  navToFile("1149598035250");
}

function showInstantAccountOpen() {
  navToFile("1149598035251");
}

function navToSection(s) {
  var url = getPrefix() + "/wtdirect/index.jsp?section=" + s;
  top.location.href= url;
}

function navToFile(fid) {
  var url = getPrefix() + "/wtdirect/index.jsp?fileid=" + fid;
  top.location.href= url;
}

function getPrefix() {
  var addr = top.location.toString();
  return (addr.indexOf("http:") == 0)?"http://" + top.location.host: "https://" + location.host;
}
