// JavaScript Document

function ClearText() {
    var aTextBox;
    aTextBox = document.getElementById('q')
    aTextBox.value = "";
    aTextBox.focus();
    aTextBox.defaultValue = "Search Water Banking"
    aTextBox.blur();
    return true;
}



function resizeText_BODY(multiplier) {
  if (document.body.style.fontSize == "") {
	document.body.style.fontSize = "1.0em";
  }
  document.body.style.fontSize = parseFloat(document.body.style.fontSize) + (multiplier * 0.2) + "em";
}

var m1 = "";
function resizeText(multiplier) {
    m1 = document.getElementById("main1").style;
    if (m1.fontSize == "") {
        m1.fontSize = "1.0em";
    }
    m1.fontSize = parseFloat(m1.fontSize) + (multiplier * 0.2) + "em";
}

var DocTitle = "empty";
var DocURL = "empty";
var myValue = "";
function GetDocTitle()
{
	DocTitle = document.title;
	DocURL = document.URL;
	myValue = "mailto:?Subject=An%20Excellent%20Arizona%20Water%20Banking%20Authority%20page.%20Take%20a%20look!&Body=The page title is '" + DocTitle + "'. The URL is " + DocURL
	document.location.href=myValue;
}
function GetDeptSectionDocTitle(pToWhom)
{
	DocTitle = document.title;
	DocURL = document.URL;
	myValue = "mailto:" + pToWhom + "?Subject=I%20would%20like%20to%20discuss%20this%20page&Body=The page title is '" + DocTitle + "'. The URL is " + DocURL
	document.location.href=myValue;
}


var urlAddress = document.URL; 
var pageName =  document.title; 
function addToFavorites() { 
	if (window.external) { 
		window.external.AddFavorite(urlAddress,pageName) 
	} else {
		alert("Sorry! Your browser doesn't support this function."); 
	} 
} 

/* PopUp window - use this for PopUps */
/* use: 
	<a class="l2" href="/Ledger/" onclick="Javascript:PopDef('/Ledger/');return false;">Bank Deliveries (pop up)</a>
*/
function PopDef() { 
	cat=window.open(PopDef.arguments[0] ,"cat",	"location=0,status=1,scrollbars=1,resizable=1,width=775,height=500;top=25,left=25" )
	if (typeof(cat) != "undefined") {
		if (!cat.closed) {			
			window['cat'].focus();
			/* cat.moveTo(50,50); */	
		}
	}
	return false;
}

