

/*==============================================================================

ConvertExternalLinks - External Links covered with substitute for target="blank" by rel="external"

*/

function ConvertExternalLinks() {
	if (!document.getElementsByTagName) {
		return;
	} else {
		var anchors = document.getElementsByTagName("a");
		for (var i=0; i<anchors.length; i++) {
			var anchor = anchors[i];
			if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
				anchor.target = "_blank";
			}
		}
	}
}



/*==============================================================================

UncryptMailto - for unencrypting mailto addresses (the encrypting function is not available on this site)

*/

function UnCryptMailto(s){var n=0;var r="";for(var i=0;i<s.length;i++){n=s.charCodeAt(i);if(n>=8364){n=128}r+=String.fromCharCode(n-1)}return r}function linkTo_UnCryptMailto(s){location.href=UnCryptMailto(s)}
	


$(function() {
	$('#datepicker').datepicker({
		changeMonth: true,
		changeYear: true,
		yearRange: '1900:2010',
		dateFormat: 'MM d, yy'
	});
	
});


function clearForms()
{
  var i;
  for (i = 0; (i < document.forms.length); i++) {
    document.forms[i].reset();
  }
}	




