// JavaScript Document
function enlargeFont (divID) {
	if (document.getElementById(divID).style.fontSize == '11px') {
			document.getElementById(divID).style.fontSize = '15px';
			document.getElementById(divID).style.lineHeight = '18px';
		}
	else {
			document.getElementById(divID).style.fontSize = '11px';
			document.getElementById(divID).style.lineHeight = '16px';
		}
}


function bookmarkUrl(strUrl, strTitle) {
	
if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { 
		window.external.addfavorite(strUrl, strTitle); 
	} 

else  {	window.sidebar.addPanel(strTitle, strUrl, ""); 	} 

}

function emailURL() {
	window.open("mailto:?subject=" + document.title + "&body=Here's an URL that may be of interest to you: " + location.href);
}




function switchCheckboxRadio (chkBox, field) {
var exists = eval(chkBox);
if (exists) {
	if (field != '') {
		var splitfield = field.split(", ");
		for (i=0;i<chkBox.length;i++) {
			for (j=0;j<splitfield.length;j++) {
				if (chkBox[i].value == splitfield[j]) chkBox[i].checked = true;
			}
		}
	}
 }
}

// Get Query Variable
function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
		return unescape(pair[1]);
    }
  } 
}