Contact Data

Contact Data

Tell us what you assume or when you’ve got every other questions on our nice state.

Simply fill out the knowledge beneath.

Thanks for contacting the New York State Division of Tourism. One in all our journey counselors will overview your request and reply to you shortly.

You can too attain us instantly by calling 1-800-CALL-NYS.

=0;i=i-1){if(type.parts[i].identify===”” || type.parts[i].identify===”g-recaptcha-response”){proceed}change(type.parts[i].nodeName){case”INPUT”:change(type.parts[i].sort){case”textual content”:case”hidden”:case”password”:case”button”:case”reset”:case”submit”:q.push(type.parts[i].identify+”=”+encodeURIComponent(type.parts[i].worth));break;case”checkbox”:case”radio”:if(type.parts[i].checked){q.push(type.parts[i].identify+”=”+encodeURIComponent(type.parts[i].worth))}break;case”file”:break}break;case”TEXTAREA”:q.push(type.parts[i].identify+”=”+encodeURIComponent(type.parts[i].worth));break;case”SELECT”:change(type.parts[i].sort){case”select-one”:q.push(type.parts[i].identify+”=”+encodeURIComponent(type.parts[i].worth));break;case”select-multiple”:for(j=type.parts[i].choices.length-1;j>=0;j=j-1){if(type.parts[i].choices[j].chosen){q.push(type.parts[i].identify+”=”+encodeURIComponent(type.parts[i].choices[j].worth))}}break}break;case”BUTTON”:change(type.parts[i].sort){case”reset”:case”submit”:case”button”:q.push(type.parts[i].identify+”=”+encodeURIComponent(type.parts[i].worth));break}break}}return q.be a part of(“&”)}; var iframe = doc.createElement(‘iframe’); iframe.id = “B5CE754F_CBD0_71C5_5AAF6CAFB3D2A585”; iframe.fashion.width = ‘0’; iframe.fashion.top = ‘0’; iframe.fashion.place=’absolute’; iframe.src= ‘https://advertising.iloveny.com/acton/eform/42327/bc3ba68f-a6ef-493b-9a48-725376461b29/d-ext-0001’; iframe.src += ‘?’ + serializeForm(frm); doc.physique.appendChild(iframe); strive{ var elm = doc.getElementById(“B5CE754F_CBD0_71C5_5AAF6CAFB3D2A585”); var hasLoaded = false; var timesChecked = 0; var checkForLoadedInterval = window.setInterval(operate(){ timesChecked++; if(timesChecked > 3 || hasLoaded){ window.clearInterval(checkForLoadedInterval); if(!hasLoaded){ strive{ if(elm.removeEventListener){ elm.removeEventListener(“load”, weHaveLoadedFunc); }else if(elm.detachEvent){ elm.detachEvent(“onload”,weHaveLoadedFunc) } }catch(e){} changeSaveFrmButtonTypeAndSubmit(frm); } } },1000); var weHaveLoadedFunc = operate(){ hasLoaded = true; strive{window.clearInterval(checkForLoadedInterval);}catch(e){console.log(“Error clearing interval”,e);} changeSaveFrmButtonTypeAndSubmit(frm); } if (elm.addEventListener) { elm.addEventListener(“load”,weHaveLoadedFunc, false); } else if (elm.attachEvent) { elm.attachEvent(“onload”, weHaveLoadedFunc); } }catch(e){ changeSaveFrmButtonTypeAndSubmit(frm); } } ]]> 0) errMsg += ‘The next info is invalid!n’ + fmtMsg + ‘n’; svcrm.formBuilderScripts.showValidationErrorMsg(errMsg); Array.prototype.forEach.name(doc.getElementsByName(“savefrm”), operate(e){e.disabled=false}); return false; }else{ AoProcessForm(frm); return false; } }; //why not 🙂 svcrm.formBuilderScripts.showValidationErrorMsg = operate(msg){ alert(msg); }; svcrm.formBuilderScripts.updateDOB = operate(monthFld,dayFld) { var days = 0; if (monthFld.selectedIndex == 0) return true; change (monthFld.selectedIndex) { case 2: days = 30; break; case 4: case 6: case 9: case 11: days = 31; break; default: days = 32; break; } if (dayFld.choices[dayFld.selectedIndex].worth >= days) dayFld.selectedIndex = days – 1; dayFld.size = days; for (var i = 28; i 0) ? num.substring(dec,num.size) : “.00”); if (cents.size == 2) cents += “0”; // Add commas {dollars} = “” + parseInt(num); for (var i = {dollars}.size – 1; i >= 0; i–) { if (depend == 3) { tmp = “,” + tmp; depend = 1; } else depend ++; tmp = {dollars}.charAt(i) + tmp; } } // Format quantity num = “$” + tmp + cents; obj.worth = num; return true; }; //Perform to format telephone numbers //returns false if invalid svcrm.formBuilderScripts.fmtPhone = operate(obj){ var telephone = “”; var oldphone = “”; if (obj.worth.size == 0) return true; //Take away formatting oldphone = obj.worth; svcrm.formBuilderScripts.stripChars(obj, “- ()”); telephone = obj.worth; if (!svcrm.formBuilderScripts.checkChars(telephone, “0123456789”)) return false; if (telephone.size == 10) obj.worth = “(” + telephone.substring(0,3) + “) ” + telephone.substring(3,6) +”-” + telephone.substring(6,10); else { obj.worth = oldphone; return false; } return true; }; //Perform to format social safety numbers //returns false if invalid svcrm.formBuilderScripts.fmtSSN = operate(obj){ var ssn = “” if (obj.worth.size == 0) return true; //Take away all dashes svcrm.formBuilderScripts.stripChars(obj, “-“); ssn = obj.worth; if (!svcrm.formBuilderScripts.checkChars(ssn, “0123456789”)) return false; if (ssn.size == 9) obj.worth = ssn.substring(0,3) + “-” + ssn.substring(3,5) + “-” + ssn.substring(5,9); else return false; return true; }; //Perform to confirm legitimate URL svcrm.formBuilderScripts.fmtURL = operate(obj){ if (obj.worth.size == 0) return true; if (obj.worth.substring(0,7) != “http://”) obj.worth = “http://” + obj.worth; if (obj.worth.size < 10) return false; return true; }; //Perform to format zip codes //returns false if invalid svcrm.formBuilderScripts.fmtZip = operate(obj){ var numberlist = "0123456789", zip = "" if (obj.worth.size == 0) return true; // Take away dashes svcrm.formBuilderScripts.stripChars(obj, "-"); zip = obj.worth; if (!svcrm.formBuilderScripts.checkChars(zip, numberlist)) return false; if (zip.size == 5) obj.worth = zip; else if (zip.size == 9) obj.worth = zip.substring(0,5) + "-" + zip.substring(5,9) else return false; //Handed all checks return true; }; //Returns true if each character is in string listing //in any other case false svcrm.formBuilderScripts.checkChars = operate(val, charlist){ for (var i = 0; i < val.size; i++) if (charlist.indexOf(val.charAt(i)) < 0) return false; //String handed so it's legitimate return true; }; //Returns true if legitimate electronic mail //in any other case returns false svcrm.formBuilderScripts.checkEmail = operate(obj){ if (obj.worth.size != 0) { var sample = /^['&a-zA-Z0-9._%+-][email protected](?:[&a-zA-Z0-9-]+.)+(([a-zA-Z]{2,4})|(aero|coop|information|museum|identify|journey))$/; if (!sample.check(obj.worth)) { return false; } else { return true; } } // Legitimate, handed all checks return true; }; //Returns true if legitimate telephone //in any other case returns false svcrm.formBuilderScripts.checkPhone = operate(obj){ if (obj.worth.size != 0) { var sample = /^([+][0-9]{1,3}[ .-])?([(]{1}[0-9]{2,6}[)])?([0-9 .-/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/; if (!sample.check(obj.worth)) { return false; } else { return true; } } // Legitimate, handed all checks return true; }; //Returns true if worth is a quantity or is NULL //in any other case returns false svcrm.formBuilderScripts.checkInteger = operate(object_value){ if (object_value.size == 0) return true; if (object_value.indexOf(".") < 1) return svcrm.formBuilderScripts.checkNumber(object_value); else return false; }; //Returns true if worth is a quantity or is NULL //in any other case returns false svcrm.formBuilderScripts.checkNumber = operate(object_value){ if (object_value.size == 0) return true; //Returns true if worth is a quantity outlined as // having an elective main + or -. // having at most 1 decimal level. // in any other case containing solely the characters 0-9. var start_format = " .+-0123456789"; var number_format = " .0123456789"; var check_char; var decimal = false; var trailing_blank = false; var digits = false; //The primary character could be + - . clean or a digit. check_char = start_format.indexOf(object_value.charAt(0)) //Was it a decimal? if (check_char == 1) decimal = true; else if (check_char < 1) return false; //Remaining characters could be solely . or a digit, however just one decimal. for (var i = 1; i < object_value.size; i++) { check_char = number_format.indexOf(object_value.charAt(i)) if (check_char < 0) return false; else if (check_char == 1) { if (decimal) // Second decimal. return false; else decimal = true; } else if (check_char == 0) digits) trailing_blank = true; // ignore main blanks else if (trailing_blank) return false; else digits = true; } //All checks handed return true }; //Returns true if worth is a posiitve integer or is NULL //in any other case returns false svcrm.formBuilderScripts.checkPosInteger = operate(object_value){ if (object_value.indexOf("-") != -1) return false; else return (svcrm.formBuilderScripts.checkInteger(object_value)); }; //Perform to seek out any char in charlist within the handed string //Returns true if a personality is discovered //In any other case false svcrm.formBuilderScripts.findChars = operate(str, charlist){ for (var i = 0; i < charlist.size; i++) { if (str.indexOf(charlist.charAt(i)) != -1) return true; } return false; }; //Perform to take away all occurances of chars in charlist svcrm.formBuilderScripts.stripChars = operate(obj, charlist){ var i = 0, pos = 0 var val = obj.worth whereas (i < val.length) { pos = charlist.indexOf(val.charAt(i)); if (pos != -1) val = val.substring(0,i) + val.substring(i + 1, val.length); else i++; } obj.value = val; return true; }; svcrm.formBuilderScripts.cntChars = function(val, charlist){ var i = 0, pos = 0, cnt = 0 for (i = 0; i 0) { tt = tt.toUpperCase(); if (tt != 'AM' && tt != 'PM') return false; val = svcrm.formBuilderScripts.strChars(val, ' ampAMP'); } var sepr = val.indexOf(':') if (sepr == -1) { hr = val; mn = 0; } else { hr = val.substring(0, sepr); mn = val.substring(sepr + 1, val.length); } if (isNaN(mn)) mn = 0; if (!svcrm.formBuilderScripts.chkChars(hr, '0123456789')) return false; if (!svcrm.formBuilderScripts.chkChars(mn, '0123456789')) return false; if (hr 23) return false; if (mn 59) return false; if (hr > 12) { tt = ‘PM’; hr = hr – 12; } else if (hr == 0) { tt = ‘AM’; hr = 12; } if (mn.toString().size == 0) mn = 0; if (tt.size == 0) { if (hr == 12) tt = ‘PM’; else if (hr < 7) tt = 'PM'; else tt = 'AM'; } str = hr; if (mn.toString().size == 1) str = str + ':0' + mn; else str = str + ':' + mn; str = str + ' ' + tt; fld.worth = str; return true; }; //Perform to take away all occurances of chars in charlist svcrm.formBuilderScripts.strChars = operate(val, charlist){ var i = 0, pos = 0 whereas (i < val.size) { pos = charlist.indexOf(val.charAt(i)); if (pos != -1) val = val.substring(0,i) + val.substring(i + 1, val.size); else i++; } return val; }; svcrm.formBuilderScripts.chkChars = operate (val, charlist){ for (var i = 0; i < val.size; i++) if (charlist.indexOf(val.charAt(i)) < 0) return false; return true; }; /* +++++++++++++++++++++++++++ END Script copied from OLD CMS /contains/scripts/formValidations.js +++++++++++++++++++++++++++++++++++++*/ /* +++++++++++++++++++++++++++ BEGIN Script copied from OLD CMS /contains/scripts/dateValidate.js +++++++++++++++++++++++++++++++++++++*/ // Writer: Invoice Simpson // Firm: 220solutions.com // E-mail: [email protected] // Date Created: 02-09-2001 // // Verifies and converts date strings to a legitimate format // // Legitimate enter dates = // mdyy, mmdyy, mmddyy, mmmddyy, mmddyyyy, mmmddyyyy, // m/d/yy, m/dd/yy, mm/d/yy, mm/dd/yy, mmm/d/yy, mmm/dd/yy, // m/d/yyyy, m/dd/yyyy, mm/d/yyyy, mm/dd/yyyy, mmm/d/yyyy, mmm/dd/yyyy // Legitimate date seperators = '-./:_, ' // // Notes: Please be at liberty to make use of/edit this script. // When you do please maintain feedback and header // // Code primarily based on capabilities from // Writer: Simon Kneafsey // E-mail: [email protected] // WebSite: www.simonkneafsey.co.uk // Perform to transform provided date string 'fld' // fld: area containing date string // sep: seperator to make use of e.g. '-' or '/' // returns false if date string is invalid svcrm.formBuilderScripts.fmtDate = operate(fld,sep){ var len = fld.worth.size; var seps = new Array('-','.','/',':','_',',',' '); // Array of seperators. var d = '', m = '', y = ''; // date half holders //var div = ''; // divider holder //var outdate1 = null; // formatted date to ship again to calling area holder var sepholder = new Array('0','0','0'); // array to carry positions of dividers in dates var s = String(fld.worth); var outdate = ''; if (len == 0 ) return true; // Settle for 'as we speak' or 'now' if (fld.worth.toUpperCase() == 'NOW' || fld.worth.toUpperCase() == 'TODAY' ) { var newDate = new Date(); var myDay = newDate.getDate(); var myMonth = newDate.getMonth() + 1; if (navigator.appName == 'Netscape') var myYear = newDate.getYear() + 2000; else var myYear = newDate.getYear(); fld.worth = myMonth + "-" + myDay + "-" + myYear; // replace string information len = fld.worth.size; s = String(fld.worth); } // Test the date is a legitimate size if (len 11) return false; // Discover positions of divider within the date var cnt = 0; for (var i = 0; i < 3; i++) { for (var j = 0; j < seps.length; j++) { if (s.indexOf(seps[j],cnt) != -1) { div = seps[j]; sepholder[i] = s.indexOf(seps[j],cnt); cnt = sepholder[i] + 1; break; } } } // If element 2 is not 0 then more than 2 dividers have been found so date is invalid. if (sepholder[2] != 0) return false; // if no dividers are found strip out date parts if (sepholder[0] == 0 && sepholder[1] == 0) { switch (len) { case 4: // mdyy m = '0' + s.substring(0,1); d = '0' + s.substring(1,2); y = s.substring(2,4); if ((y = svcrm.formBuilderScripts.chkYear(y)) == false) return false; break; case 5: // mmdyy m = s.substring(0,2); d = '0' + s.substring(2,3); y = s.substring(3,5); if ((y = svcrm.formBuilderScripts.chkYear(y)) == false) return false; break; case 6: // mmddyy m = s.substring(0,2); d = s.substring(2,4); y = s.substring(4,6); if ((y = svcrm.formBuilderScripts.chkYear(y)) == false) return false; break; case 7: //mmmddyy m = s.substring(0,3); d = s.substring(3,5); y = s.substring(5,7); if ((m = svcrm.formBuilderScripts.chkMonth(m)) == false) return false; if ((y = svcrm.formBuilderScripts.chkYear(y)) == false) return false; break; case 8: //mmddyyyy m = s.substring(0,2); d = s.substring(2,4); y = s.substring(4,8); break; case 9: //mmmddyyyy m = s.substring(0,3); d = s.substring(3,5); y = s.substring(5,9); if ((m = svcrm.formBuilderScripts.chkMonth(m)) == false) return false; break; default: return false; } if ((outdate = svcrm.formBuilderScripts.chkDate(m,d,y,sep)) == false) return false; // valid date fld.value = outdate; return true; } else if (sepholder[0] != 0 && sepholder[1] != 0) { // process with dividers m = s.substring(0, sepholder[0]); d = s.substring(sepholder[0] + 1, sepholder[1]); y = s.substring(sepholder[1] + 1, s.length); } else // Only one divider return false; // Check day and year are numeric if (isNaN(d) && isNaN(y)) return false; // Make d day dd if (d.length == 1) d = '0' + d; // Make m month mm if (m.length == 1) m = '0' + m; // Make yy year yyyy if (y.length == 2) if ((y = svcrm.formBuilderScripts.chkYear(y)) == false ) return false; // Make mmm month mm if (m.length == 3 || m.length == 4) { if ((m = svcrm.formBuilderScripts.chkMonth(m)) == false) return false; } // Date components are OK if (d.length != 2 || m.length != 2 || y.length != 4) return false; // Validate the date if ((outdate = svcrm.formBuilderScripts.chkDate(m,d,y,sep)) == false) return false; // Valid date fld.value = outdate; return true; }; // checks for a valid date // m: month part (2 digit) // d: day part (2 digit) // y: year part (4 digit) // returns: date string formatted if valid, false if invalid svcrm.formBuilderScripts.chkDate = function(m, d, y, sep){ var dayArray = new Array(31,28,31,30,31,30,31,31,30,31,30,31); var dstr = m + d + y; var filter=/^[0-9]{2}[0-9]{2}[0-9]{4}$/; // Check mmddyyyy date supplied if (!filter.test(dstr)) return false; // Check valid month filter=/01|02|03|04|05|06|07|08|09|10|11|12/; if (!filter.test(m)) return false; // Check year if (y 2078) return false; // Check for leap year var n = Number(y); if (n % 4 == 0 && (n % 100 != 0 || n % 400 == 0)) dayArray[1] = 29; // Check for valid days for month var mnum = Number(m); if (d > dayArray[mnum – 1] || d <= 0) return false; // Legitimate date return m + sep + d + sep + y; }; // Checks for legitimate month // m: month half (3 or 4 digit) // returns: 2 digit month if legitimate, false is invalid svcrm.formBuilderScripts.chkMonth = operate(m){ var months = new Array('JAN','FEB','MAR','APR','MAY','JUN','JUL','AUG','SEP','OCT','NOV','DEC'); m = m.toUpperCase(); if (m.size == 3) { for (var i = 0; i < 12; i++) { if (m == months[i]) { m = i + 1; if (i < 10) m = '0' + m; return m; } } } else if (m.length == 4 && m == 'SEPT') { m = '09'; return m; } else return false; }; // Check for a valid year // y: year part (2 digit) // returns: 4 digit year if valid, false if invalid svcrm.formBuilderScripts.chkYear = function(y){ if (y = 75) { y = "19" + y; return y; } else return false; }; svcrm.formBuilderScripts.showDate = function(baseURL, fld, frm) { var urlSeparator = '?'; if("https://www.iloveny.com/travel-tools/contact-us/".indexOf('?') != -1){ urlSeparator = '&'; } var str = "https://www.iloveny.com/travel-tools/contact-us/" + urlSeparator + "action=popupCal&frm=" + frm + "&fld=" + fld + '&randid=' + new Date().getTime(); if (eval("document." + frm + "." + fld).value.length > 0) str = str + “&cdate=” + eval(“doc.” + frm + “.” + fld).worth; svcrm.formBuilderScripts.openPopup(str, “calwin”, 210, 210, “width=210,top=210,toolbar=no,standing=no,directories=no,menubar=no,resizable=no,scrollable=no”, true); }; svcrm.formBuilderScripts.openPopup = operate(url, identify, pWidth, pHeight, options, snapToLastMousePosition) { svcrm.formBuilderScripts.openPopupFocus(url, identify, pWidth, pHeight, options, snapToLastMousePosition, true); }; svcrm.formBuilderScripts.closePopup = operate(){ if (svcrm.formBuilderScripts.curPopupWindow != null) { if (!svcrm.formBuilderScripts.curPopupWindow.closed) svcrm.formBuilderScripts.curPopupWindow.shut(); svcrm.formBuilderScripts.curPopupWindow = null; } }; svcrm.formBuilderScripts.openPopupFocus = operate(url, identify, pWidth, pHeight, options, snapToLastMousePosition, closeOnLoseFocus) { svcrm.formBuilderScripts.closePopup(); if (snapToLastMousePosition) { if (svcrm.formBuilderScripts.lastMouseX – pWidth display.top) { svcrm.formBuilderScripts.lastMouseY -= (svcrm.formBuilderScripts.lastMouseY + pHeight + 50) – display.top; } svcrm.formBuilderScripts.lastMouseX -= pWidth; svcrm.formBuilderScripts.lastMouseY += 10; options += “screenX=” + svcrm.formBuilderScripts.lastMouseX + “,left=” + svcrm.formBuilderScripts.lastMouseX + “screenY=” + svcrm.formBuilderScripts.lastMouseY + “,prime=” + svcrm.formBuilderScripts.lastMouseY; } if (closeOnLoseFocus) { curPopupWindow = window.open(url, identify, options, false); curPopupWindow.focus(); } else { win = window.open(url, identify, options, false); win.focus(); } }; svcrm.formBuilderScripts.setLastMousePosition = operate(e) { if (navigator.appName.indexOf(“Microsoft”) != -1) e = window.occasion; svcrm.formBuilderScripts.lastMouseX = e.screenX; svcrm.formBuilderScripts.lastMouseY = e.screenY; }; /* +++++++++++++++++++++++++++ END Script copied from OLD CMS /contains/scripts/dateValidate.js +++++++++++++++++++++++++++++++++++++*/ /* +++++++++++++++++++++++++++ BEGIN Script copied from OLD CMS /contains/scripts/ziplookup.js +++++++++++++++++++++++++++++++++++++*/ svcrm.formBuilderScripts.zipLookup = operate(fuseroot, zip, fldCity, fldState){ var scriptID = ‘zipLookupJSONP’; //kill the present one if we now have one if(doc.getElementById(scriptID)){ doc.getElementById(scriptID).parentNode.removeChild(doc.getElementById(scriptID)); } if (svcrm.formBuilderScripts.trim(zip).size != 5 || !svcrm.formBuilderScripts.checkChars(zip, “0123456789”)){ return false; }else{ //jsonP this factor over var s = doc.createElement(‘script’); s.id = scriptID; s.sort = ‘software/javascript’; s.src = ‘https://newyorkstate.simpleviewcrm.com/webapi/formbuilder/ziplookup.cfm?zip=’+zip+’&fldCityId=’+fldCity.id+’&fldStateId=’+fldState.id+’&jsonp=svcrm.formBuilderScripts.processZipChange’ doc.physique.appendChild(s); } }; svcrm.formBuilderScripts.processZipChange = operate(rtn){ var fldCity = doc.getElementById(rtn.fldCityId); var fldState = doc.getElementById(rtn.fldStateId); if (rtn.metropolis.size > 0 && fldCity != ”) fldCity.worth = rtn.metropolis; else if (fldCity != ”) fldCity.worth = ”; if (rtn.state.size > 0 && fldState != ”) { for (var i = 0; i 0) recIds.push(doc.getElementById(‘udf_189’).worth); if(doc.getElementById(‘udf_190’) && doc.getElementById(‘udf_190’).worth.size > 0) recIds.push(doc.getElementById(‘udf_190’).worth); var smLink = doc.createElement(“a”); smLink.setAttribute(“src”, “https://twitter.com/share?ref_src=twsrcpercent5Etfw”); smLink.setAttribute(“class”, “twitter-share-button”); smLink.setAttribute(“data-show-count”, “false”); smLink.setAttribute(“data-text”, “I simply entered the #MyNYBucketList for an opportunity to win a FREE journey for 4 to NYS! It is best to enter too: “); smLink.setAttribute(“data-url”, “https://www.iloveny.com/bucket-list/?utm_source=web site&utm_medium=twittershare&utm_campaign=Bucketlist2020”); if(!rebuild) { var divTwitter = doc.createElement(“div”); divTwitter.setAttribute(“id”, “twitter-div”); divTwitter.setAttribute(“fashion”, “show: inline;”); divTwitter.appendChild(smLink); var twitterScript = doc.createElement(“script”); twitterScript.setAttribute(“async”, “”); twitterScript.setAttribute(“src”, “https://platform.twitter.com/widgets.js”); twitterScript.setAttribute(“charset”, “utf-8″); doc.getElementById(‘udf_195’).parentNode.appendChild(twitterScript); doc.getElementById(‘udf_195’).nextSibling.fashion.show = ‘inline’; doc.getElementById(‘udf_195’).parentNode.insertBefore(divTwitter, doc.getElementById(‘udf_195’).nextSibling); } else { doc.getElementById(‘twitter-div’).innerHTML = ”; doc.getElementById(‘twitter-div’).appendChild(smLink); twttr.widgets.load(); } } var constructFacebook = operate(rebuild) { var recIds = []; if(doc.getElementById(‘udf_188’) && doc.getElementById(‘udf_188’).worth.size > 0) recIds.push(doc.getElementById(‘udf_188’).worth); if(doc.getElementById(‘udf_189’) && doc.getElementById(‘udf_189’).worth.size > 0) recIds.push(doc.getElementById(‘udf_189’).worth); if(doc.getElementById(‘udf_190’) && doc.getElementById(‘udf_190’).worth.size > 0) recIds.push(doc.getElementById(‘udf_190’).worth); var smLink = doc.createElement(“a”); smLink = doc.createElement(“iframe”); smLink.setAttribute(“src”, “https://www.fb.com/plugins/share_button.php?href=httpspercent3Apercent2Fpercent2Fwww.iloveny.compercent2Fbucket-listpercent2Fpercent3Futm_source=web sitepercent26utm_medium=facebooksharepercent26utm_campaign=Bucketlist2020&format=button&dimension=small&width=67&top=20&appId”); smLink.setAttribute(“width”, “67”); smLink.setAttribute(“top”, “20”); smLink.setAttribute(“fashion”, “border:none;overflow:hidden;vertical-align:center;”); smLink.setAttribute(“scrolling”, “no”); smLink.setAttribute(“frameborder”, “0”); smLink.setAttribute(“allowTransparency”, “true”); smLink.setAttribute(“permit”, “encrypted-media”); if(!rebuild) { var divFacebook = doc.createElement(“div”); divFacebook.setAttribute(“id”, “facebook-div”); divFacebook.setAttribute(“fashion”, “show: inline;”); divFacebook.appendChild(smLink); doc.getElementById(‘udf_194’).nextSibling.fashion.show = ‘inline’; doc.getElementById(‘udf_194’).parentNode.insertBefore(divFacebook, doc.getElementById(‘udf_194’).nextSibling); } else { doc.getElementById(‘facebook-div’).innerHTML = ”; doc.getElementById(‘facebook-div’).appendChild(smLink); } } var constructInstagram = operate() { var smLink = doc.createElement(“a”); var smElement = doc.createElement(“img”); smElement.setAttribute(“class”, “sm-icon”); smElement.setAttribute(“src”, “http://newyorkstate.dev.simpleviewcrm.com/photos/igButton.png”); smLink.setAttribute(“href”, “https://www.instagram.com/iloveny/”); smLink.setAttribute(“goal”, “_blank”); smLink.setAttribute(“rel”, “noopener noreferrer”); smLink.appendChild(smElement); doc.getElementById(‘udf_196’).nextSibling.fashion.show = ‘inline’; doc.getElementById(‘udf_196’).parentNode.insertBefore(smLink, doc.getElementById(‘udf_196’).nextSibling); } var injectHeart = operate(rowBefore) { var heartRow = doc.createElement(“div”); var heartCol = doc.createElement(“div”); var heartDiv = doc.createElement(“div”); var lrgImg = doc.createElement(“img”); var medImg = doc.createElement(“img”); var smallImg = doc.createElement(“img”); //coronary heart row heartRow.setAttribute(“class”, “header-divider”); heartRow.appendChild(heartCol); //coronary heart Cols heartCol.setAttribute(“class”, “heart-wrapper small-12 columns”); heartCol.appendChild(heartDiv); //coronary heart div heartDiv.setAttribute(“class”, “coronary heart”); heartDiv.appendChild(lrgImg); heartDiv.appendChild(medImg); heartDiv.appendChild(smallImg); //imgs lrgImg.setAttribute(“class”, “heart-img show-for-large-up”); medImg.setAttribute(“class”, “heart-img show-for-medium”); smallImg.setAttribute(“class”, “heart-img show-for-small-down”); lrgImg.setAttribute(“src”, “/contains/public/belongings/photos/footer/heart_footer.png”); medImg.setAttribute(“src”, “/contains/public/belongings/photos/footer/heart_footer_t.png”); smallImg.setAttribute(“src”, “/contains/public/belongings/photos/footer/heart_footer_m.png”); //Append if(rowBefore.parentNode) rowBefore.parentNode.insertBefore(heartRow, rowBefore); } var changeVerbiageUDF402 = operate() { var inputFld = doc.getElementById(‘udf_193’); inputFld.nextElementSibling.innerHTML = “†I’ve learn the sweepstakes guidelines and acknowledge that the winner is accountable for paying any relevant taxes & charges related to JetBlue journey certificates.*” } var addLegend = operate() { var startHere = doc.getElementById(‘rowcontainer_udf_193’); var nextElem = startHere.nextElementSibling; var legend = doc.createElement(‘p’); legend.setAttribute(‘class’, ‘text-center’); legend.innerHTML = “†Taxes and costs apply”; nextElem.parentNode.insertBefore(legend, nextElem.nextElementSibling); } if (doc.getElementById(‘formid’).worth == “1”){ window.onload = operate(){ doc.getElementById(“udf_56”).setAttribute(‘maxlength’,1200); var textlimit = doc.createElement(“div”); doc.getElementById(“fieldcontainer_udf_56”).appendChild(textlimit); var y = doc.getElementById(‘udf_56’); y.addEventListener(“keyup”, replace); operate replace() { var t = doc.getElementById(‘udf_56’).worth; textlimit.innerHTML = (1200-parseInt(t.size)) + ” characters remaining”; } } } else if (doc.getElementById(‘formid’).worth == “25”){ window.onload = operate(){ //Create hidden itemizing inputs createHidden(‘udf_188’); createHidden(‘udf_189’); createHidden(‘udf_190’); //Create Socials constructFacebook(false); constructTwitter(false); constructInstagram(); changeVerbiageUDF402(); addLegend(); //Inject coronary heart row injectHeart(doc.getElementById(‘rowcontainer_udf_103’)); } } ]]>

Auto Business Travel News