<!--
function init(){var loops = overStates.length
for(var i=0;i<loops;i++){MM_preloadImages(overStates[i]);}}

function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
//alert(a[i]);
}}}

function RollImage(objImage, strImage){var objStr,obj;
if(document.images){objStr = 'document.' + objImage;
obj = eval(objStr);obj.src = strImage;}}

function ClearField(formName,fieldName,fieldValue){
var Field = eval("document." + formName+ "." + fieldName)
if (Field.value	== fieldValue){Field.value = '';}}

function doGrantsPopup(documentID){var w; var h;
if(document.layers){w = 350; h = 200;}
else {w = 345; h = 190;}
window.open("grantsPopup.aspx?documentID=" + documentID,'Grants','width=' + w + ',height=' + h + ',scrollbars=yes');}

function doFAQsPopup(url,question,answer,loc){
var EncodeQuestion = replace(question,' ','^');
EncodeQuestion = replace(EncodeQuestion,'&#39;','\u0027');
var EncodeAnswer = replace(answer,' ','^');
EncodeAnswer = replace(EncodeAnswer,'&#39;','\u0027');
var windowURL = url + "?question=" + EncodeQuestion + "&answer=" + EncodeAnswer + "&loc=" + loc
var w; var h;
if(document.layers){w = 520; h = 290;}
else {w = 515; h = 280;}
window.open(windowURL,'FAQs','width=' + w + ',height=' + h + ',scrollbars=yes');}

function doHowToApplyPopup(windowURL){var w; var h;
if(document.layers){w = 520; h = 290;}
else {w = 515; h = 280;}
window.open(windowURL,'FAQs','width=' + w + ',height=' + h + ',scrollbars=yes');}

function doNewsletterPopup(windowURL){var w; var h;
if(document.layers){w = 800; h = 390;}
else {w = 795; h = 380;}
window.open(windowURL,'Newsletter','width=' + w + ',height=' + h + ',scrollbars=yes,resizable=yes');}


function doEmailPagePopup(documentID){var w; var h;
if(document.layers){w = 410; h = 515;}
else {w = 405; h = 510;}
window.open('/emailPage.aspx?documentID=' + documentID,'EmailPage','width=' + w + ',height=' + h + ',scrollbars=yes,resizable=yes');}

function doEmailReminderPopup(documentID){var w; var h;
if(document.layers){w = 410; h = 515;}
else {w = 405; h = 510;}
window.open('/emailReminder.aspx?eventID=' + documentID,'EmailReminder','width=' + w + ',height=' + h + ',scrollbars=yes,resizable=yes');}

function doPrintVersionPopup(documentID){var w; var h;
if(document.layers){w = 410; h = 515;}
else {w = 405; h = 510;}
window.open('/printVersion.aspx?documentID=' + documentID,'PrintVersion','width=' + w + ',height=' + h + ',scrollbars=yes,resizable=yes');}

function doSignupPopup(){
	if(document.layers)
		{w = 410; h = 515;}
	else 
		{w = 405; h = 510;}
	if(document.frmPage.SiteFooter_txtEmail.value){
		var user_email
			if(document.frmPage.SiteFooter_txtEmail.value == ' your email address'){user_email = '%20your%20email%20address'}
			else {user_email = document.frmPage.SiteFooter_txtEmail.value}
		window.open('/newsletterSignup.aspx?email=' + user_email,'NewsletterSubscribe','width=' + w + ',height=' + h + ',scrollbars=yes,resizable=yes');
	}
}

function doFeedbackPopup(the_target){var w; var h;
if(document.layers){w = 410; h = 200;} else {w = 405; h = 195;}
window.open('/feedback.aspx', the_target,'width=' + w + ',height=' + h + ',scrollbars=yes,resizable=yes');
return true;
}

function doFooterPopUp(url){
var w; var h;
if(document.layers){w = 410; h = 200;} else {w = 405; h = 195;}
window.open(url,'popwin','width=' + w + ',height=' + h + ',scrollbars=yes,resizable=yes');
}

function printPage() {
var IE4 = (document.all && !document.getElementById)?1:0;
var PR = (window.print)?1:0;
var Mac = (navigator.userAgent.indexOf("Mac") != -1); 
if (PR) {window.print();}
else if (IE4 && !Mac) {vbPrintPage();}
else {alert("To print this page please select 'Print' from the 'File' menu.");}}

function move_to(URL){if (URL != ""){
//alert('This javascript function will take you to page: ' + URL);
self.location=URL;
}}

function replace(string,text,by) {
var strLength = string.length, txtLength = text.length;
if ((strLength == 0) || (txtLength == 0)) return string;
var i = string.indexOf(text);
	if ((!i) && (text != string.substring(0,txtLength))) return string;
	if (i == -1) return string;
	var newstr = string.substring(0,i) + by;
	if (i+txtLength < strLength)
	newstr += replace(string.substring(i+txtLength,strLength),text,by);
return newstr;
}

function readApplication(message){
alert(message);
}
//-->