'spafinder.About.Inquiry'.namespace();Object.extend(spafinder.About.Inquiry,{validateAboutInquiryForm:function(){if($('name').value.trim().length<=0){alert("Please provide your Name");$('name').focus();return false;}
if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test($('email').value)==false){alert("Please provide valid email address");$('email').focus();return false;}
if($('company').value.trim().length<=0){alert("Please provide your company name");$('company').focus();return false;}
if($('website').value.trim().length<=0){alert("Please provide your website URL");$('website').focus();return false;}
if(!($('buy-advertising-yes').checked)&&!($('buy-advertising-no').checked)){alert('Please indicate if "You Currently Buy Online Advertising"');$('buy-advertising-yes').focus();return false;}
if(!($('email-interest-yes').checked)&&!($('email-interest-no').checked)){alert('Please indicate if you are "Interested In Email Opportunities"');$('email-interest-yes').focus();return false;}
return true;}});if(typeof(Shadowbox)!='undefined'){Shadowbox.loadSkin('classic','/assets/javascripts/library/shadowbox/skin/');}
Event.observe(window,"load",function(){if(typeof(Shadowbox)!='undefined'){Shadowbox.init();}});