PageSourceSearch

https://monarchdunes.com/sites/includes/globalscript.min.js

js monarchdunes.com collected 2026-10-04 05:21:21 UTC 8,295 bytes, 1 lines download raw bytes

1function CG_validateForm(e,t,n){t=t?t:0,n=n?n:"fade";var o=!0,a=[{type:"required",re:/\w/,description:{onEmpty:"This is mandatory field.",onError:"Please complete this mandatory field!"}},{type:"email",re:/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,15})+$/,description:{onEmpty:"Please enter email address.",onError:"Please enter valid email address!"}},{type:"phone",re:/^[0-9]{3}[\- ]?[0-9]{3}[\- ]?[0-9]{4}$/,description:{onEmpty:"Please enter phone number.",onError:"Please enter valid phone number format! (Ex:123-123-1234)"}},{type:"number",re:/\d/,description:{onEmpty:"Please enter number.",onError:"Please enter numeric number!"}},{type:"strCAPTCHA",re:/\w/,description:{onEmpty:"Please Enter Secure Code.",onError:"Please Enter Secure Code!"}}],r=[{name:"border",value:"1px solid #ff0000"},{name:"backgroundColor",value:"#fff"},{name:"fontFamily",value:"arial"},{name:"fontSize",value:"11px"},{name:"color",value:"#ff0000"},{name:"padding",value:"4px"},{name:"lineHeight",value:"normal"},{name:"borderRadius",value:"5px"},{name:"boxShadow",value:"0 0 5px #ff0000"}],i=function(e,t,n){var i=!1,l="",d=document.createElement("div");d.id="msg_"+t,d.className="CG_validator";for(var u=0;u<r.length;u++)d.style[r[u].name]=r[u].value;var p,m,y=f(e);p=""!==e.style.left?parseInt(e.style.left):y[0],m=""!==e.style.top?parseInt(e.style.top):y[1],theWidth=""!==e.style.width?parseInt(e.style.width):e.clientWidth,d.style.position="absolute",d.style.zIndex=2,d.style.left=p+theWidth+15+"px",d.style.top=m+"px",l+="radio"===e.type?"Please choose one from list.":"checkbox"===e.type?"Please choose at least one from list.":""===e.value?a[n].description.onEmpty:a[n].description.onError,o&&(l+="<img src=https://www2.cybergolf.com/sites/courses/validator_close.png border=0 style='cursor:pointer;"),isHTML5&&(l+=" float:right;"),l+="' onClick=CG_removeElement('"+d.id+"');>",d.innerHTML=l;var h=document.body||document.getElementsByTagName("body")[0];h.appendChild(d),s(d),i&&setTimeout(function(){c(d)},5e3)},s=function(e){switch(n){case"fade":u(e,0),l(e)}},l=function(e){var t=d(e);100>t&&(u(e,t+10),setTimeout(function(){l(e)},70))},c=function(e){var t=d(e);t>0?(u(e,t-10),setTimeout(function(){c(e)},70)):CG_removeElement(e.id)},d=function(e){return"undefined"==typeof e.style.opacity?""===e.style.filter?0:parseInt(e.style.filter.substring(e.style.filter.indexOf("opacity=")+8,e.style.filter.length-1)):100*e.style.opacity},u=function(e,t){"undefined"==typeof e.style.opacity?e.style.filter="alpha(opacity="+t+")":e.style.opacity=t/100},p=function(e){var t=document.getElementById("msg_"+e);t&&t.parentNode.removeChild(t)},f=function(e){var t=curtop=0;if(e.offsetParent)do t+=e.offsetLeft,curtop+=e.offsetTop;while(e=e.offsetParent);return[t,curtop]},m=function(){for(var n,o,r,s,l=0,c=0,d=e.length;d>c;c++){n=e.elements[c];for(var u=0,f=a.length;f>u;u++)if(a[u].type===n.id||a[u].type===n.className){if("select-one"===n.type)o=n.options[n.selectedIndex].value;else if("checkbox"===n.type||"radio"===n.type){o="",s=document.getElementsByName(n.name);for(var m=0,y=s.length;y>m;m++)s[m].checked&&(o=s[m].value)}else o=n.value;if(p(c),a[u].re.test(o))n.style.boxShadow="none";else if(n.style.boxShadow="0 0 5px #ff0000",l++,i(n,c,u),1===l&&(r=n),t)return n.focus(),!1}}return l?(r.focus(),!1):!0};return m()}function CG_validateForm2(e){var t;for(i=0;i<e.length;i++){if(t=e.elements[i],"required"==t.id)if("select-one"==t.type){if(""==t.options[t.selectedIndex].value)return alert("Please Select "+t.name+"."),t.focus(),!1}else if(""==t.value)return alert("Please Enter "+t.name+"."),t.focus(),!1;if("email"==t.id&&!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(t.value))return alert("Please enter valid email format!"),t.focu
1s(),!1;if("phone"==t.id&&!/^[0-9]{3}[\- ]?[0-9]{3}[\- ]?[0-9]{4}$/.test(t.value))return alert("Please enter valid phone number format! (Ex:123-123-1234)"),t.focus(),!1;if("strCAPTCHA"==t.id&&""==t.value)return alert("Please Enter Secure Code."),t.focus(),!1}return!0}function CG_CalPop(e){window.open("https://www2.cybergolf.com/appointments/calendar/Calendar.asp?birthday=yes&hidedate=yes&N="+escape(e)+"&DT="+escape(window.eval(e).value),"CalPop","toolbar=0,width=378,height=225")}function CG_popup(e,t,n,o){var a=window.screen.width,r=(a-t)/2,i=window.screen.height,s=(i-n)/2;""==t?open(e,"newWindow","toolbar=yes,location=yes,directiries=yes,location=yes,menubar=yes,scrollbars=yes,resizable=yes,status=yes"):(o=o?"yes":"no",open(e,"newWindow","width="+t+",height="+n+",left="+r+",top="+s+",status=yes,scrollbars="+o))}function CG_selectDate(e,t,n,o){var a="selectDate.asp?fieldName="+e,r=180,i=235,s=window.screen.width,l=window.screen.height,c=(s-r)/2,d=(l-i)/2;t&&(a+="&year="+t),n&&(a+="&month="+n),o&&(a+="&formName="+o);window.open(a,"date","width="+r+",height="+i+",left="+c+",top="+d)}function CG_encryptedEmail(e){for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);document.location.href="mailto:"+t}function CG_numberOnly(e){var t,n;if(window.event)t=window.event.keyCode;else{if(!e)return!0;t=e.which}return n=String.fromCharCode(t),null==t||0==t||8==t||9==t||13==t||27==t?!0:"0123456789".indexOf(n)>-1?!0:!1}function CG_requestURL(e){for(var t=window.location.search.substring(1),n=t.split("&"),o=0;o<n.length;o++){var a=n[o].split("=");if(a[0]==e)return a[1]}}function CG_displayVideo(e,t,n,o,a){var r=["mp4","webm","ogg","mov","flv"],i="",s="",l=!1;"string"==typeof e&&(e=e.split(","));for(var c=0;c<r.length;c++)for(var d=0;d<e.length;d++)if(i=e[d].substring(e[d].lastIndexOf(".")+1).toLowerCase(),r[c]==i)switch(r[c]){case"mp4":isHTML5&&(s+='<source src="'+e[d]+'" type="video/mp4" />\n',l=!0);break;case"webm":isHTML5&&(s+='<source src="'+e[d]+'" type="video/webm" />\n',l=!0);break;case"ogg":isHTML5&&(s+='<source src="'+e[d]+'" type="video/ogg" />\n',l=!0);break;case"mov":s+='<OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="'+t+'" height="'+(n+15)+'" codebase="https://www.apple.com/qtactivex/qtplugin.cab">\n',s+='<param name="src" value="'+e[d]+'">\n',s+='<param name="autoplay" value="'+(o?"true":"false")+'">\n',s+='<param name="controller" value="true">\n',s+='<param name="loop" value="false">\n',s+="</OBJECT>\n";break;case"flv":if(flv_count++,"undefined"==typeof flowplayer){var u=document.getElementsByTagName("head")[0],p=document.createElement("script");p.type="text/javascript",p.async="async",p.charset="utf-8",p.src="https://www2.cybergolf.com/sites/js/flowplayer/flowplayer-3.2.11.min.js",u.appendChild(p),isIE?p.onreadystatechange=function(){f()}:p.onload=function(){f()}}s+='<a href="'+e[d]+'" style="display:block;width:'+t+"px;height:"+n+'px" id="player'+flv_count+'"></a>\n'}isHTML5&&l&&(s='<video width="'+t+'" height="'+n+'" controls="controls" autoplay="'+(o?"autoplay":"")+'">'+s+"</video>"),document.write("<div class=CG_video>"+s+"</div>");var f=function(){for(var e=1;flv_count>=e;e++)"undefined"!=typeof flowplayer&&flowplayer("player"+e,{src:"https://www2.cybergolf.com/sites/js/flowplayer/flowplayer-3.2.12.swf",wmode:"transparent"},{clip:{autoPlay:o?!0:!1,autoBuffering:!0,onBeforeFinish:function(){return a?!1:void 0}}})}}function CG_openVideo(e,t,n,o){var a=window.screen.width,r=(a-t)/2,i=window.screen.height,s=(i-n)/2;e="string"==typeof e?e:e.join(),url=encodeURI("displayVideo.asp?src="+e+"&w="+t+"&h="+n+"&autoplay="+o),open(url,"video","width="+t+",height="+n+",left="+r+",top="+s+",status=yes,scrollbars=no")}function popupBox(e,t,n){new cg.apps.PopupBox({width:t,height:n,innerHTML:e,start:!0})}function ON(name){document[name].src=eval(name+"on.src")}function OFF(name){document[name].src=eval(name+".src")}function mOver(e){document.all[e].style.cursor="pointer",document.all[e].style.backgroundColor=""}function mOut(e){document.all[e].style.backgroundColor=""}function reloadCaptchaImage(){var e=new Date,t=document.getElementById("captchaImage");t.src="captcha.asp?"+e.getTime()}var ua=navigator.userAgent,isIpad=/iPad/i.test(ua)||/iPhone OS 3_1_2/i.test(ua)||/iPhone OS 3_2_2/i.test(ua),isHTML5=!!window.HTMLCanvasElement,isIE,isIE7=!1,flv_count=0;-1!=navigator.appVersion.indexOf("MSIE")&&(isIE=!0,7===parseFloat(navigator.appVersion.split("MSIE")[1])&&(isIE7=!0));var CG_removeElement=function(e){var t=document.getElementById(e);t&&t.parentNode.removeChild(t)};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.