function search_box() {
	document.getElementById("Search").value = '';
	document.getElementById("Search").style.color = "#000000"
	document.getElementById("Search").style.color = "#000000"
	//alert("thank you");
}

function newsrelease(url) {
	NewWindow = window.open (url, "newsrelease", "width=700, toolbar=1, resizable=1, scrollbars=1");
	NewWindow.focus();
	
}

function Other_Main()
{
	var ddlOtherMain = document.getElementById("ddlOtherMain");
	var intSelected = ddlOtherMain.options[ddlOtherMain.selectedIndex].value;
	var OpLength = document.getElementById("ddlOtherMain").options.length;
	
	for (i = 1; i < OpLength; i++) {
		document.getElementById("divOther" + i).style.display = "none";
	}
	
	if ((intSelected <= OpLength) && (intSelected > 0)){
		document.getElementById("divOther" + intSelected).style.display = "block";
		location.href = '#aOther' + intSelected;
	}
}

function GovDelivery(url) {
	window.open(url,'popup','width=725,height=500,left=25,top=25,location=no,resizable=yes,scrollbars=yes,status=yes');
}

function msb_gov() {
	window.open ('http://www.msb.gov');
}

function jsSrchMSBState() {

	if (document.getElementById("SrchMSBState").value == "ALL") {
		alert("Searching by \"All States and Territories\" may result in a slow return of data and may slow your computer system.\n\nWe encourage you to limit your query criteria as much as possible to improve your results.");
	}
}

function MSBsortData(order, col) {
	var param;
	param = "?sortCol="+col+"&sortOrder="+order;
	document.MSBRegistrationQuery.action = "/financial_institutions/msb/msbstateselector.html" + param;
	document.MSBRegistrationQuery.submit();	
}
