// Do not edit this compressed file. Download, rename & edit the master version of it.
function MailingListPreferences(){this.mailingListPreferences=new Array("General Interest","Beach Front Accommodations","Cottage Collection","Ultra Luxury Accommodations","Hawaii Yacht Vacations","Last Minute Specials or Rate Specials","Garden View Affordable Deluxe Accommodations","Hotel/Resort Listings","Christmas and New Years Holiday Season","New Listings Any Type","Lanai Island","Big Island of Hawaii","Kauai Island","Oahu Island","Exotic accommodations in the South Pacific, Asia and elsewhere","Rocky Mountain Retreats","Place_Holder: Do Not Edit");this.mailingListPreferences.length=this.mailingListPreferences.length-1;for(var i=0;i<this.mailingListPreferences.length;i++)this.mailingListPreferences[i]=this.mailingListPreferences[i].cleanIt();var MAX_OPTIONS=30;if(this.mailingListPreferences.length>MAX_OPTIONS){reportError("Mailing List Preferences Error","The Mailing List Preferences Data Array located at \"zzVillaSoftware/villa2.js\" contains more than "+MAX_OPTIONS+" members");}
this.writeCheckBoxesMLP=writeCheckBoxesMLP;}
function writeCheckBoxesMLP(){var HTML="<NOBR CLASS='fSize10'>So we may best serve you - let us know your areas of interest...</NOBR><BR>";for(var i=0;i<this.mailingListPreferences.length;i++){HTML+="<NOBR>&nbsp;&nbsp;<INPUT TYPE='checkbox' onClick='var mlp = new MailingListPreferences(); if( checked ) {  value = mlp.mailingListPreferences[ parseInt( this.name ) - 1 ]; self.status=\"I want to stay informed on \" + this.value; } else { this.value = \"\"; self.status=\"I DO NOT want to stay informed on \" + mlp.mailingListPreferences[ parseInt( this.name ) - 1 ]; }' NAME='"+(i+1)+"' VALUE='' TITLE='I want to stay informed on "+this.mailingListPreferences[i]+"'>&nbsp;"+this.mailingListPreferences[i]+"</NOBR><BR>";}
document.write(HTML);}
function emailAlert(fieldObj,errOnly){var eMail=fieldObj.value;if(eMail!=""){var theMsg='You provided "' + eMail + '" as your e-mail address. Please review it and make sure you entered it accurately!It\'s important because if you make a "typo" in your e-mail address you cannot be contacted by e-mail.';var eMsg="";var eMsg1='Sorry,but you have entered an invalid e-mail address!ALL e-mail addresses contain';var eMsg2='character. Here\'s some examples of valid e-mail addresses:"joe@hotmail.com" OR "sally@aol.com" etc.';if(eMail.indexOf('@')==-1)eMsg=eMsg1+' exactly one "@" '+eMsg2;else if(eMail.indexOf('@')==0||eMail.indexOf('@')==eMail.length-1)eMsg=eMsg1+' exactly one "@" but it\'s never the first or last '+eMsg2;else if(eMail.indexOf('.')==-1)eMsg=eMsg1+' at least one "." '+eMsg2;else if(eMail.indexOf('.')==0||eMail.indexOf('.')==eMail.length-1)eMsg=eMsg1+' at least one "." but it\'s never the first or last '+eMsg2;if(errOnly){if(eMsg!="")alert(eMsg);}
else alert(theMsg);}}
function section(sectionNum){sectionNum=document.getElementById(sectionNum);if(sectionNum.className=="off")sectionNum.className="on";else sectionNum.className="off";}
function promptForInfo(question,defVal,callingObj){if(eval('typeof document.theform.Comments')=='object'){var promptVal=prompt(question,defVal);if(promptVal==""||promptVal==null){self.status="Click again to provide the requested info";var delay=(MZ)?500:0;this.callingObj=callingObj;if(callingObj!=null)setTimeout('callingObj.checked=false',delay);return;}
var existingComments=document.theform.Comments.value
var lineBrk=(existingComments=='')?'':'\n';document.theform.Comments.value=question+' '+promptVal+'\n'+lineBrk+existingComments;}}
function formatZero(field){if(field.value=="0")field.value="0 ";}
var gClientInfo=null;function recordClientData(key,data){if(eval("typeof key")=="string"){key=key.replaceLiteral("&","and");key=key.replaceLiteral("=","is");}
if(eval("typeof data")=="string"){data=data.replaceLiteral("&","and");data=data.replaceLiteral("=","is");}
if(gClientInfo==null)gClientInfo=key+"="+data;else gClientInfo+="&"+(key+"="+data);}
function setFormFields(){if(gClientFormInfo!=null){var clientDataArray=gClientFormInfo.split('&');for(var k=0;k<clientDataArray.length;k++){var name=clientDataArray[k].split('=')[0];var val=clientDataArray[k].split('=')[1];var fieldObj=eval('document.theform.'+name);if(eval("typeof fieldObj")=='object'){if(fieldObj.type=='text'||fieldObj.type=='textarea')fieldObj.value=val;else if(fieldObj.type=='checkbox'){val=(val=="true")?true:false;fieldObj.checked=val;if(fieldObj.name=='Travel_Agent'&&val==true)section('travel_agent_portion');else if(fieldObj.name=='Work_Contact_Status'&&val==true){section('work_info0_portion');section('work_info1_portion');}}
else if(fieldObj.type=='select-one')fieldObj.selectedIndex=parseInt(val);}}}}