window.onload = checkJQuery; function checkJQuery(){ if(!window.jQuery) { var script = document.createElement('script'); script.type = "text/javascript"; script.src = "http://web.archive.org/web/20130123142231/http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(script); } } function isValidDateFormat(date){ return date.match(/^(?:\d{1,2}([\./-])\d{1,2}\1(?:\d{4}|\d{2})|(?:(?:jan(?:uary)?)|(?:feb(?:ruary)?)|(?:mar(?:ch)?)|(?:apr(?:il)?)|(?:may)|(?:jun(?:e)?)|(?:jul(?:y)?)|(?:aug(?:ust)?)|(?:sept?(?:tember)?)|(?:oct(?:ober)?)|(?:nov(?:ember)?)|(?:dec(?:ember)?))\.?\s+\d{1,2},?\s+\d{4})$/i) != null; } function isValidEmailFormat(email){ return email.match(/^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*(\+[a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$/) != null; } function isValidPhoneFormat(phone){ return phone.match(/^[a-z]+/) == null; } function clearClientID() { var date = new Date(); date.setTime(date.getTime() + (-1 * 864e5)); document.cookie = 'sessionclientid=; expires=' + date.toGMTString() + '; path=/'; document.cookie = 'client=; expires=' + date.toGMTString() + '; path=/'; } function showWebOverlay(response, closeBtn){ /*try closing overlay in the event that link was inadvertantly clicked multiple times.*/ if($('#overlayParent').length > 0) removeWebOverlay(closeBtn); var body = $('body'); var posTop = $('body').scrollTop(); if (posTop == 0) posTop = $(document.documentElement).scrollTop(); var content = $('
').css({zIndex:1001, background:'#FFF', position:'absolute', top:(posTop + 25) + 'px', left:0}).append(response).appendTo(body); var contentWidth = content.outerWidth(true); var contentHeight = content.outerHeight(true); content.css('left', ((body.outerWidth(true) - contentWidth) / 2) + 'px'); $('
').css({background:'#000', position:'fixed', zIndex:1000, opacity:.6, top:0, left:0, width:body.outerWidth(true) + 'px', height:body.outerHeight(true) + 'px'}).appendTo(body); if(closeBtn) { var close= $('').css({ position: 'absolute', right: '2px', top: '5px', zIndex: 1001, nowrap: 'nowrap', width: '50px', height: '16px', cursor: 'pointer' }).click(removeWebOverlay); content.append(close); } } function removeWebOverlay(closeBtn){ $("#overlayParent").remove(); $("#overlayMask").remove(); if(closeBtn) $("#overlayClose").remove(); }