function Navigate() {
/*	alert("inside here");*/
var number = document.favoritesJump.favorites.selectedIndex;
location.href = document.favoritesJump.favorites.options[number].value;
 }

function NavigateBanking() {
/*	alert("inside here");*/
var number = document.onlineBank.online.selectedIndex;
location.href = document.onlineBank.online.options[number].value;
 }
 
/* var hWindow; */
function closeWindow() 	{
		self.close();
 }
 
 function noenter() {
  return !(window.event && window.event.keyCode == 13); }
 
function checkSearchEntry(thisForm) {
    location.href = 'http://www.gsb.com/aspgsb/search.aspx?' +
                    'find=' + escape(myForm.txtSearchField.value);

	 
 }

/* for rates display of xml file */
function loadXMLDoc(dname)
{
if (window.XMLHttpRequest)
  {
  xhttp=new XMLHttpRequest();
  }
else
  {
  xhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }
xhttp.open("GET",dname,false);
xhttp.send("");
return xhttp.responseXML;

}

function displayResult()
{
	//alert('in display here');
xml=loadXMLDoc("xml/mb.xml");
xsl=loadXMLDoc("xml/mbXSLinJS.xsl");
// code for IE
if (window.ActiveXObject)
  {
  ex=xml.transformNode(xsl);
  document.getElementById("example").innerHTML=ex;
  }
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation && document.implementation.createDocument)
  {
  xsltProcessor=new XSLTProcessor();
  xsltProcessor.importStylesheet(xsl);
  resultDocument = xsltProcessor.transformToFragment(xml,document);
  document.getElementById("example").appendChild(resultDocument);
  }
}

// 01/2011 toggle.js - all for FAQ needs
// start by getting all the questions and answers
// these will be put into arrays
// 

var questions = document.getElementsByTagName('dt');
var answers = document.getElementsByTagName('dd');


// function for the link that turns them all off
function toggleAllOff(){
	for (var i = 0; i < answers.length; i++) { 
		answers[i].className = 'hide';
	}
}

// function for the link that turns them all on
function toggleAllOn(){
	for (var i = 0; i < answers.length; i++) { 
		answers[i].className = 'show';
	}

}


function toggleNext(el) {
 var next=el.nextSibling;

 next.style.display=((next.style.display=="none") ? "block" : "none");
}


//makes the definition lists click-able
function displayToggle(){
	
	toggleAllOff(); // calls the toggle all off function to turn all the answers off when the page is loaded	
	 
	 for (i=0; i<questions.length; i++) { // loops through the questions a
		 questions[i].onclick=function() { // shows the answers onclick
		 	var next = this.nextSibling;
			while(next.nodeType != 1) next=next.nextSibling; // if it gets to a non-element node, go to the next one
			next.className=((next.className=="hide") ? "show" : "hide");
		}
	 }
}

// initiates the click-able dt's when the page loads
window.onload=function() {
	displayToggle();
	}
//end toggle.js FAQs
