function clearField(thisField) {

                thisField.value="";

}

                

 

function readCookie(name) {

                var nameEQ = name + "=";

                var ca = document.cookie.split(';');

                for(var i=0;i < ca.length;i++) {

                                var c = ca[i];

                                while (c.charAt(0)==' ') c = c.substring(1,c.length);

                                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);

                }

                return null;

}

 

var splashValue = readCookie('overlaySplash3');

 

                if (splashValue!='overlayVisit') {

                                document.getElementById('overlaySplash').style.visibility='visible';

                                document.getElementById('overlaySplashinner').style.visibility='visible';              

                                document.getElementById('overlaySplash').style.display='inline';

                                document.getElementById('overlaySplashinner').style.display='inline';

                }

                if (splashValue=='overlayVisit')  {

                                document.getElementById('overlaySplash').style.visibility='hidden';

                                document.getElementById('overlaySplashinner').style.visibility='hidden';

                                document.getElementById('overlaySplash').style.display='none';

                                document.getElementById('overlaySplashinner').style.display='none';

                }

 

 

//You MUST replace beaconfire.com with the correct domain

function hideSplash() {

                document.getElementById('overlaySplash').style.visibility='hidden';

                document.getElementById('overlaySplashinner').style.visibility='hidden';            

                document.getElementById('overlaySplash').style.display='none';

                document.getElementById('overlaySplashinner').style.display='none';

                document.cookie='overlaySplash3=overlayVisit;path=/;expires=Thu, 01-Jan-2030 00:00:01 GMT; host=www.aft.org;';

}

//You MUST replace beaconfire.com with the correct domain

function remindSplash() {

                document.getElementById('overlaySplash').style.visibility='hidden';

                document.getElementById('overlaySplashinner').style.visibility='hidden';            

                document.getElementById('overlaySplash').style.display='none';

                document.getElementById('overlaySplashinner').style.display='none';

                document.cookie='overlaySplash3=overlayVisit;path=/; host=www.aft.org;';

}

