'; var default source = ''; var formSuccess = false; var international property = 'false'; var country code = 'USA. USA'; var disabledReferralTracking = 'False'; var hideContactRefer = 'True'; var timeoutValue = 120000; var googleAnalyticsId = ''; var pagename = 'General'; var cmsSiteId = '56777'; var widgetName = 'rpWebpart_GoogleRecaptcha'; var enableRecaptcha = 'true'; var captchaToken; var o = {};var kpv = { "studio+" : { "key" : 192, "bed" : 0, "bath" : 0 },"S bed/1 bath" : { "key" : 192, " bed" : 5, "bath" : 1 }, "S bed/1.5 bath" : { "key" : 192, "bed" : 5, "bath" : 1.5 },"1 bed/1 bath " : { " key" : 193, "bed" : 1, "bath" : 1 }, "1 bed/1.5 bath" : { "key" : 193, "bed" : 1, "bath" : 1.5 }, "1 bed/2 bath" : { "key" : 194, "bed" : 1, "bath" : 2 }, "1 bed/2.5 bath" : { "key" : 194, "bed" : 1 , "bath" : 2.5 }, "2 bed/1 bath": { "keys": 195, "bed": 2, "bath": 1 }, "2 bed/1.5 bath": { " keys": 195, "bed": 2 , "bath" : 1.5 },"2 beds/2 baths" : { "keys" : 196, "bed" : 2, "bath" : 2 }, "2 beds/ 2, 5 Bath" : { "keys" : 196 , "bed" : 2, "bath" : 2.5 }, "3 bed/1 bath" : { "key" : 197, "bed" : 3," bath" : 1 }, "3 bed/1.5 bath " : { "key" : 197, "bed" : 3, "bath" : 1.5 }, "3 bed/2 bath" : { "key" : 198 , "bed" : 3, "bath" : 2 }, "3 beds / 2.5 baths" : { "key" : 198, "bed" : 3, "bath" : 2.5 }, "3 ca more/3 baths": { "key": 199, "bed": 3, "bath": 3 }, "3 bedrooms/3.5 baths" : { "keys": 199, "bed": 3, " baths" : 3, 5 } , "4 bed/1 bath" : { "keys" : 200, "bed" : 4, "bath" : 1 }, “4 bed/1.5 bath”: { “key” : 200, “bed”: 4, “bath”: 1.5 }, “4 bed/2 bath”: { “key”: 201, “bed": 4, "bath" : 2 }, "4 bed/ 2.5 bath" : { "key" : 201, "bed" : 4, "bath" : 2.5 }, "4 bed/3 bath" : { 'key' : 202, 'bed' : 4, ' bath' : 3 } , '4 beds / 3.5 bath' : { 'key' : 202, 'bed' : 4, 'bath' : 3.5 } }; $(document). ready(function() { $.function(data) { $rpdata = data; $.ajax({ type: 'GET', url: 'CmsSiteManager/callback.aspx?act=Proxy/GetFloorPlans', datatype: ' json', timeout: timeoutValue, success: function(data) { $rpunits = null; $rpdata.floorplans = data; f_afterDataLoad(); }, error: function(response) { if (response.statusText === " timeout") { $('#widget_contact_us_2'). html("
timeout error.
Please refresh the page or try again later
"); } } }); }, error: function (repost) { if (response.statusText === "timeout") { $('#widget_contact_us_2').html("
timeout error.
Please refresh the page or try again later
"); } } }); }); function sendContactV1() { if (enableRecaptcha == "true") { o['cmsSiteId'] = cmsSiteId; o['pageName'] = pageName; o['widgetName']; = WidgetName; } googleAnalyticsId = f_getCookie('_ga'); o['googleAnalyticsId'] = googleAnalyticsId; var a = $('#widget_contact_us_2 .form-item').serializeArray(); var t = ""; $(' form - item ' ) { if ( this . name == ' usersource ' ) { t = $ ( ' option : s selected ' , this ). text ( ) { else if ( internationalProperty = = 'true' && this.name == 'moveddate') { t = this.value.substring(3, 5) + '-' + this.value.substring(0, 2) + '-' + this. value .substring(6, 10);} else {t=this.value;}t=t.replace(/"/g,""");t=encodeURIComponent(t); if(o[this.name); ! == undefined) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o[this.name].push(t || '' ) ; } else { o[this.name] = t ||''; }});o['speed'] = $('input[name="speed"]:checked').val();o [ 'responsemedium'] = $('input[name="responsemedium o"]:marked').val();if ($('#widget_cont act_us_2 #e-mail').val().length == 0) {var id = $("#widget_contact_us_2 #bedbathid option: selected").val(); try { //Format var CombinePhone = $('#widget_contact_us_2 #dayPhone1').val() + $('#widget_contact_us_2 #dayPhone2').val() + $('#widget_contact_us_2 #dayPhone3').val(); var formatPhone = rptracker.formatPhoneNumber(combinePhone, countryCode);//Hash all as previous matching entity for RPTracker.var first_name = rptracker.hash($('#widget_contact_us_2 #firstname').val());var last_name = rptracker .hash ($('#contact_us_2 widget #lastname').val()); //var phone = rptracker.hash($('#widget_contact_us_2 #dayPhone1').val() + $('#widget_contact_us_2 #dayPhone2').val() + $('#widget_contact_us_2 #dayPhone3').val(); ); var phone = rptracker . hash ( Phone format ) ; var email = rptracker . hash ( $ ( ' # contact_us_2 widget # email ' ) . val () ); ( ). (item.key === parseInt(id)) {bed = item.bed;bath = item.bath;break;}}//Send a Volta-Information for RPTracker.rptracker.track('Submitted Form', { first_name : First_name, Last name: First name, E-mail: E-mail, Phone number: Phone, Better: Better, Bath: Bathroom, Single date: $('#widget_contact_us_2 #movedate').val(), Quelle: Quelle, Comments: $('#widget_contact_us_2 #msg').val()});}catch(err) {console.log("RPTracker failed, but it is not a dependency for the contact form. Please Continue.");} $ .ajax({ Type: "POST", DateType: "json", Cache: false, Timeout: timeoutValue, URL: "CMSSiteManager/Callback.aspx?act=set_contact", Date: o, Accomplishment: Function (jso n) { if ( json . ErrorNumber ) { formSuccess = false ; $ ( " # widget_contact_us_2 .btn - txt2 " ). html ( ' Error ao submit ! ' ) ; } else { try { ga ( ' set ' , { ' dimension15 ' : json .LeaseStarLeadId }); if ( json . Lead2LeaseLeadId != 0 ) if ( ' set ' , { ' dimension17 ' : json . LeaseStarLeaseLeadId }); f_analyticsSendEvent ( ' Contact ' , ' Order from information ão', 'Obrigado'); ga('set', { 'dimension15': null, 'dimension17': null }); } catch (e) { } try { _gaq.push(['_trackEvent', 'Contact', 'Request for information', 'Thanks',, false]); } catch (e) { } if (successScreen == '') { var msg = $('.pnlMessage').html(); $("#widget_contact_us_2#cu_2_body").html('
' + message + '
'); } next window.open(successScreen, '_self'); } return false; }, beforeSend : function ( json ) { form = true ; $("#contact_us_2 widget .btn-txt2").html('Submitting...'); $("#widget_contact_us_2 .cu-2-submit").attr('style', 'background-color:lightgray;'); }, Fehler: Function (e) { $("#widget_contact_us_2 .btn-txt2").html('Error ao submit!'); formEvent = false; } }); } } Function f_afterDataLoad() { handle_contact_us(); if (internationalProperty == 'true') $("#contact_us_2 #moveddate").datepicker({ format: "dd-mm-yyyy", startDate: new Date() }); sonst $("#widget_contact_us_2 #moveddate").datepicker({format: "mm-dd-yyyy",startDate: new Date() }); $("#widget_contact_us_2 .cu-2-submit").click(function() { if(formSuccess == true) { return false; } if(validate()) { sendContactV1(); } }); if (defaultsource == 0) $('#contact_us_2_widget #usersource').val(''); sonst if (defaultorigin) $('#widget_contact_us_2 #originuser').val(defaultorigin); else if ($("#contact_us_widget_2 #usersource option:contains('Property site')").length > 0) $('#contact_us_widget_2 #usersource option:contains("Property site")').prop(' selected', truthful); else if ($("#contact_us_2 #usersource option:contains('Website')").length > 0) $('#contact_us_2 #usersource option:contains("Website")').prop('selected', true ); else if ($("#contact_us_widget_2#usersource option:contains('website')").length > 0) $('#contact_us_2 widget#usersource option:contains("website")').prop('selected', true ); else if ($("#contact_us_widget_2 #usersource option:contains('Web Site')").length > 0) $('#contact_us_2 #usersource option:contains("Web Site")').prop('ausgewählt' , true); else if ($("#contact_us_widget_2 #usersource option:contains('website')").length > 0) $('#contact_us_widget_2 #usersource option:contains("website")').prop('selected , true); if (disableReferralTracking.toLowerCase() != 'true' && matchedSourceId) { $('#contact_us_2 #usersource').val(matchedSourceId); $('#contact_us_2 widget .usersources').hide(); } if (hideContactRefer.toLowerCase() == 'true') $('#contact_us_2 .usersources').hide(); if (commentPlaceHolderText) { $('#widget_contact_us_2 #msg').val(commentPlaceHolderText); $('#widget_contact_us_2 #msg').addClass('empty'); $('#contact_us_widget_2 #msg').focus(function() { if ($('#contact_us_widget_2 #msg').val() == commentPlaceHolderText) { $('#contact_us_widget_2 #msg').val('' ); $('#widget_contact_us_2 #msg').removeClass('empty'); } }); $('#contact_us_widget_2 #msg').blur(function () { if ($('#contact_us_widget_2 #msg').val() == '') { $('#contact_us_widget_2 #msg').val(commentPlaceHolderText ); $('#widget_contact_us_2 #msg').addClass('empty'); } }); } $('#internationalPhone').on("keyup", function () { var value = $(this).val(); var regex1 = /[^[0-9 +]]*/gi; var regex2 = /[^[0-9]]*/gi;var neuerWert = value.substring(0, 1).replace(regex1, '') + value.substring(1).replace(regex2, ''); $ ('#internationalphone').val(newValue); }); } function isset(object) { var def = true; if ( object == undefined ) { def = false ; } return definition; } function handle_contact_us() { //src = $rpdata.thumbnail.replace('%s', '400x50'); $moveDate = realpage_blocks_moveDate(); $img = '/sites/all/modules/custom/realpage_blocks/realpage_blocks_cu_2/images/contactus.jpg'; $paper1 = isset($rpdata.address.address1) ? $rpdata.address.address1 : ""; $dad2 = isset($rpdata.address.address2) ? $rpdata.address.address2 : ""; $sc = isset($rpdata.address.statecode) ? $rpdata.address.statecode: ""; $city = isset($rpdata.address.cityname) ? $rpdata.address.cityname : ""; $mail = isset($rpdata.address.maildetail) ? $rpdata.Address.Postleitzahl : ""; $phone = isset($rpdata.phoneNumber) ? "Location: " + $rpdata.phoneNumber + "
" : ""; $email = isset($rpdata.email) ? "Email: Click here": ""; $address = $dad1; $htmladdress = $dad1; if (isset($dad2)) { $address += " " + $dad2; $htmladdress += "
" + $dad2; } if (isset($city)) { $address += ", " + $city; $htmladdress += "
" + $city; } if (isset($sc)) { $direction += ", " + $sc; $htmldirection += ", " + $sc; } if (isset($post)) { $direction + = " " + $publication; $directionhtml += " " + $publication; } $workshop hours = realpage_blocks_officehours(); $contact form = realpage_blocks_contact_form($moveDate); $sHTML = '' +'
'+'
'+'
If you have any questions, please let us know in the comment box below.
'+'
'+'
'+'
'+'
'+'
'; jQuery(Widget '#contact_us_2').html($sHTML); } function realpage_blocks_movedate() { var monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "Fall", "November December"]; var d = new data(); $m = d.getMonth(); $Y = d.getYear(); $month1 = new date(d.setMonth(d.getMonth() + 1)); $month15 = new date(d.setMonth(d.getMonth() + 1)); $month15 = new dates($month15.setDate(15)); $month2 = new date(d.setMonth(d.getMonth() + 2)); $month25 = new date(d.setMonth(d.getMonth() + 2)); $month25 = new dates($month25.setDate(15)); $month3 = new date(d.setMonth(d.getMonth() + 3)); $month35 = new date(d.setMonth(d.getMonth() + 3)); $month35 = new dates($month35.setDate(15)); $month4 = new date(d.setMonth(d.getMonth() + 4)); go back '
'+'
'+'
'+'
'+'
'+'
'+'
'; } function substr(valor, inicio, fin) { return valor.substring(inicio, fin); } function realpage_blocks_officehours() { $officehours = ""; if (isset($rpdata.propertyOfficeHours)) { $inicio = ""; $final = ""; $inicio = substr($rpdata.propertyOfficeHours[0]["dayOfWeek"], 0, 3); $abrir = $rpdata.propertyOfficeHours[0]["startTime1"]; $cerrar = $rpdata.propertyOfficeHours[0]["endTime1"]; for (var i = 0; i < $rpdata.propertyOfficeHours.length; i++) { $value = $rpdata.propertyOfficeHours[i]; if (($open != $rpdata.propertyOfficeHours[i]["startTime1"]) || ($close != $rpdata.propertyOfficeHours[i]["endTime1"])) { if ($start == $end ) { $Bürostunden += $Inicio; } Else { $Bürostunden += $Inicio + '-' + $Fin; } $horasoficina += ": " + $abrir + " a " + $cerrar + "
"; $inicio = substr($valor["dayOfWeek"], 0, 3); } $end = substr($value["dayOfWeek"], 0, 3); $open = $rpdata.propertyOfficeHours[i][ "startTime1"]; $close = $rpdata.propertyOfficeHours[i]["endTime1"]; } if ($start != $end) $officehours += $start + "-" + $end + ": " + $ abrir + "para" + $fechar + "
"; if (($start == $end) && ($start != "")) $officetime += $start + ": " + $open + " encore " + $close + "
"; } return $horasoficina; } function variable_get(prop_config) { if (prop_config == 'hide') { return 0; } else { return 1; } } function realpage_blocks_contact_form($moveDate) { var hideFlag = 'True'; $ Dirección = (HideAddress != HideFlag) ? "
" : ""; $cityValue = (hideCity != hideFlag) ? "
" : ""; $stateValue = (hideStatus !=hideFlag) ? '
'+'
" : ""; $zipcode = (hideZip != hideFlag) ? '
' : ""; $comovocêouviu = hdyhSources; $noHousehold = (hideNoHouseHold != hideFlag) ? '
' : ""; $cmsg = (hideMessage!=hideFlag) ? '
' : ""; /*$cpriceRange = (hidePriceRange != hideFlag) ? "" : ""; $último = ""; $sAluguelDD = ""; ForEach ($aDropdowns["rent"] as $key => $value) { If ($sLast != "" ) $sRentDD += "
"; $last = $value; } $cPriceInterval = '';*/ $cmoveDate = '
'; $havePets = (hideHavePets != hideFlag) ? '
' : ""; $cpreferedCtc = (hidePreferedCtc != hideFlag) ? '
' : ""; $cdayOfWeek = (hideDayOfWeek != hideFlag) ? '
' : ""; $typocity = ""; $bathroom = 0; $room = 0; if (hideUnitType != hideFlag) { $cunitType = '
'+'
'; } else $cunitType = ""; } var reasonMatrix = reasonList.split('|'); $reason = (hideRason == hideFlag || listofRasons == '') ? "" : '
'+'
'; var $phoneNo = (hidePhoneNumber != hideFlag) ? '
' : ""; $propertyId = isset($rpdata.id) ? $rpdata.id: ""; $lcid = f_getCookie('RP_LSWS_LCID'); $lcid = $lcid? $lcid: "4"; $cid = f_getCookie('RP_LSWS_SEM'); $cid = $cid ? $cid: "Location of the property"; if ($cid != "property website") { $cid = decodeURIComponent(matchedSource); //Logic to define MatchedSource with base without valor cid without file commondata.ascx } $trackingId = f_analyticsGetTrackingId() || ''; $sHTML = '' + '' + '' + '' + '
'+'
' + "
" + "" + "
" + '
' + "
" + ''+'
'+'
' + $dirección + $cityValue + $stateValue + $zipCode + (($stateValue != '') ? "" : "") + $phoneNo + '
'+'
' + '' + '' + '
' + $noHome + $cmsg + '
'+'
' + $cmoveDate + $cunitType + $howdyouhear + //$cpriceRango + $chaveMascotas + $cpreferedCtc + $cdayOfWeek + $motivo + '
'; return $sHTML; } function validPhone(b) { var a = window.event ? b.keyCode : b.what; if ( internationalProperty == 'true ' && $ ( ' #internationalPhone ' ).val ( ) length == 0 & & b . shiftKey & & b . keyCode == 43 ) return true ; if ( a == 0 || a == 8 ) return true ; if (a > 47 && a < 58) return true; otherwise, it returns false; } function autoTab(b, t, to) { var a = window.event ? b.keyCode : b.what; if ( a != 9 && a != 16 && ( ( a > 47 && a < 58 ) || ( a > 95 && a < 106 ))) { if ($( t ).val ().length >= $(t).attr("maxlength")) $('#' + to).focus(); } } function backspaceOnly(b, t, from) { var a = window.event ? b.keyCode : b.what; if (a == 8) { if ($(t).val().length == 0) { var noErrors = true; test { $('#' + from)[0].setSelectionRange($(t).attr("maxlength"), $(t).attr("maxlength")); } catch (err) { // IE8 doesn't recognize setSelectionRange, just be careful not to break the page. errorless = incorrect; } if ( noErrors ) $ ( ' # ' + from ). focus ( ) ; } } } /* ** **Transforms serialized form data into JSON. ** **@use$('#debug').text(JSON.stringify($('form').serializeObject())); ** */ $.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); var t = ""; $.each(a, function () { t = this.value; t = t.replace(/"/g, """); //Must be a better solution for this. But replace with %22 (I like it should be) also stopped PHP (the POST array was destroyed the same way as the "&" arrays without escape) t = encodeURIComponent(t); // encodes "&" and others The original code in stackoverflow doesn't (http :/ / /stackoverflow.com/questions/1184624/serialize-form-to-json-with-jquery).if (o[this.name] !== undefined) { if (!o[this . name].push ) { o [this.name] = [o[this.name]]; } o[this.name].push(t || ''); } else { o[this.name] = t || ; } }); Give the... back; }; validate function() { var error = 0; var errorList = ""; var foxusset = false; var log = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@ \"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9 ]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2 ps $('#contact_us_2 widget #cu_2_error_list').empty(); var f = $('#contact_us_2 widget #firstname'); test { if (f.val() == '') { f.css('borderColor' , 'grid'); f.attr("aria-invalid", "true"); f.focus(); foxusset = true; errorlist += '
'; } sonst {f.css('borderColor', ''); f.removeAttr("aria-invalid"); } } catch (e) { } try { f = $('#widget_contact_us_2 #lastname'); if (f.val() == '') { f.css('borderColor', 'red'); f.attr("invalid-aria", "true"); if (!foxusset) {f.focus(); foxusset = true; } Fehlerliste += '
'; } sonst {f.css('borderColor', ''); f.removeAttr("aria-invalid"); } } catch (e) { } try { f = $('#widget_contact_us_2 #movedate'); if (f.val() == '') { f.css('borderColor', 'red'); f.attr("invalid-aria", "true"); if (!foxusset) {f.focus(); foxusset = true; } Fehlerliste += '
'; } sonst {f.css('borderColor', ''); f.removeAttr("aria-inválido"); } } catch (e) { } if ($('#widget_contact_us_2 #dayPhone1').longitud > 0) { if ($('#widget_contact_us_2 #dayPhone1').val() == '' || $('# widget_contact_us_2 #dayPhone2').val() == '' || $('#widget_contact_us_2 #dayPhone3').val() == '' || $('#widget_contact_us_2 #dayPhone1').val().length ! = 3 || $('#widget_contact_us_2 #dayPhone2').val().length != 3 || $('#widget_contact_us_2 #dayPhone3').val().length != 4) { lista de errores += '
'; } if ($('#widget_contact_us_2 #dayPhone1').val() == '' || $('#widget_contact_us_2 #dayPhone1').val().length != 3) { $('#widget_contact_us_2 #cu_2_error_phone_and_email' ).css('exibir', 'bloquear'); $('#widget_contact_us_2 #dayPhone1').css('borderColor', 'red'); $('#widget_contact_us_2 #dayPhone1').attr("aria-invalid", "true"); } Else { $('#widget_contact_us_2 #dayPhone1').css('borderColor', ''); $('#widget_contact_us_2 #dayPhone1').removeAttr("aria-invalid"); } } if ($('#widget_contact_us_2 #dayPhone2').longitud > 0) { if ($('#widget_contact_us_2 #dayPhone2').val() == '' || $('#widget_contact_us_2 #dayPhone2'). val().longitud != 3) { $('#widget_contact_us_2 #cu_2_error_phone_and_email').css('display', 'block'); $('#widget_contact_us_2 #dayPhone2').css('borderColor', 'red'); $('#widget_contact_us_2 #dayPhone2').attr("aria-invalid", "true"); } Else { $('#widget_contact_us_2 #dayPhone2').css('borderColor', ''); $('#widget_contact_us_2 #dayPhone2').removeAttr("aria-invalid"); } } if ($('#widget_contact_us_2 #dayPhone3').longitud > 0) { if ($('#widget_contact_us_2 #dayPhone3').val() == '' || $('#widget_contact_us_2 #dayPhone3'). val().longitud != 4) { $('#widget_contact_us_2 #cu_2_error_phone_and_email').css('display', 'block'); $('#widget_contact_us_2 #dayPhone3').css('borderColor', 'red'); $('#widget_contact_us_2 #dayPhone3').attr("aria-invalid", "true"); } Else { $('#widget_contact_us_2 #dayPhone3').css('borderColor', ''); $('#widget_contact_us_2 #dayPhone3').removeAttr("aria-invalid"); } } tente { f = $('#widget_contact_us_2 #email'); if (f.val() == '' || reg.test(f.val()) == false) {f.css('borderColor', 'red'); f.attr("aria-inválido", "verdadero"); if (!foxusset) {f.foco(); foxusset = verdadeiro; } Fehlerliste += '
'; } sonst { f.css('borderColor', ''); f.removeAttr("aria-invalid"); } } catch (e) { } if ($('#widget_contact_us_2 #movedate').val() != '') { var page = f_pageYYYYMMDD(); var splits = $('#widget_contact_us_2 #movedate').val().split('-'); divisions[0] = (divisions[0].length == 1) ? '0' + slices[0] : slices[0]; slices[1] = (slices[1].length == 1) ? '0' + slices[1] : slices[1]; var moveInDate = slices[2] + '-' + slices[0] + '-' + slices[1]; if (moveInDate <day) { $('#widget_contact_us_2 #movedate').css('borderColor', 'red'); $('#widget_contact_us_2 #movedate').attr("aria-invalid", "true"); Fehlerlist += '
'; } else { $('#widget_contact_us_2 #movedate').css('borderColor', ''); $('#widget_contact_us_2 #movedate').removeAttr("aria-invalid"); } } if (lista de errores != "") { $('#widget_contact_us_2 #cu_2_lista_de_errores').append(lista de errores); $('#widget_contact_us_2 #cu_2_error_list li').first().attr("función", "alerta"); document.getElementById('cu_2_error').style.display = 'bloco'; retorno falso; } devuelve verdadeiro; } function f_todayYYYYMMDD() { var hoje = new Date(); var dd = hoje.getDate(); var mm = hoje.obtenerMes() + 1; var aaaa = hoje.getFullYear(); return aaaa + '-' + (mm < 10 ? '0' : '') + mm + '-' + (dd < 10 ? '0' : '') + dd; } function f_getCookie(cookieName) { var cookieValue = documento.cookie; var cookieStart = cookieValue.indexOf(" " + cookieName + "="); if (cookieStart == -1) { cookieStart = cookieValue.indexOf(cookieName + "="); } if (cookieStart == -1) { cookieValue = nulo; } sonst { cookieStart = cookieValue.indexOf("=", cookieStart) + 1; var cookieEnd = cookieValue.indexOf(";", cookieStart); if (cookieEnd == -1) { cookieEnd = cookieValue.length; } cookieValue = unescape (cookieValue.substring (cookieStart, cookieEnd)); } cookieValue zurückgeben; }