
function gotoAccount() {

 var loginwindow = null;
 logonns = (document.layers)? true:false;
 logonie = (document.all)? true:false;
 logonscrheight = (logonns)? screen.availHeight-160 : screen.availHeight-160;
 var logonscrwidth = window.screen.availWidth-10;
 var logonw = (screen.width);
 var logonh = (screen.height);
 var logonwinname = "";
 var logonwinprops = "height=" + logonscrheight + ",width=" + logonscrwidth + ",left=0,right=0,top=0,status=yes,toolbar=yes,menubar=yes,titlebar=yes,resizable=yes,scrollbars=yes,location=yes";
 var URL_AccountList = new Array(6);
 URL_AccountList[0] = '';
 URL_AccountList[1] = '/media/managed/htmlembed/pruonlinelogin_redirect.html?quadr=topright&name=insurancemfann';
 URL_AccountList[2] = '/media/managed/htmlembed/retirement_redirect.html?quadr=topright&name=401k';
 URL_AccountList[3] = 'http://www.prudential.com/prucosplitter?quadr=topright&name=brokerageaccounts'
 URL_AccountList[4] = URL_AccountList[0];
 URL_AccountList[5]   = 'http://www.prudential.com/globallogin?quadr=topright&name=allloginoptions'
 
 var i = document.frmAccount.selAccount.selectedIndex;
 document.frmAccount.selAccount.selectedIndex = 0;
 
 if ((i!=0)&&(i!=4)) {
  top.location.href = URL_AccountList[i];
 }
}

function mClk(src) {
 if(is.ie){
  if(event.srcElement.tagName=='TD') {src.children.tags('A')[0].click();} 
 }
}

function trim(value) {
   var temp = value;
   var obj = /^(\s*)([\W\w]*)(\b\s*$)/;
   if (obj.test(temp)) { temp = temp.replace(obj, '$2'); }
   return temp;
}

function checkQueryTopband() {
 var query;
 query = document.frmSearchTopBand.QueryTextHome.value;
 query = trim(query);
 if (query == "") {
  alert ("Please enter one or more search terms.");
  return false;
 } 
 else {
  return true;
 }
}

function submitSearchQuery() {
 if (checkQueryTopband()) {
  document.frmSearchTopBand.submit();
 } 
}


