Детали бронирования: '+this.getLegendFull()+'
'; this.descr += (sOption!=''?'Сумма: '+this.total+' '+this.money.code+'
'; document.getElementById('cl_hotel_booking_widget_e77069afe5c7e56438851935b77c3699_step5_booking_descr').innerHTML = this.descr; let customer_id = 0; if(this.customer) customer_id = this.customer.id; var dtobj = this.tmHour.getInterval(this.dtHour.getDate()); var sds = this.descr; var spost = 'fname='+fname +'&lname='+lname +'&phone='+phone +'&email='+email +'&city='+city +'&customerid='+customer_id +'&parentid='+this.parentid +'&comment='+comment +'&amount='+(this.total*100) +'&price='+(this.curVar.amount*100) +'&objid='+this.curVar.ID +'&options='+JSON.stringify(options) +'&tariffid='+this.curVar.objTariff.OFFERID +'&cntperson='+document.getElementById('cl_hotel_booking_widget_e77069afe5c7e56438851935b77c3699_person').value +'&dtstart='+dtobj.start //+this.dtHour.getDate().toGermanStr()+' '+this.tmHour.getTimeStart() +'&dtend='+dtobj.end //+this.dtHour.getDate().toGermanStr()+' '+this.tmHour.getTimeEnd(); if(this.multyselect) spost += '&multy=1'+'&prices='+this.curVar.price; this.toYandex('cloffHotel_booking'); this.toGoogle('cloffHotel_booking'); this.callajax( this.host+'/widget/rent.save.rs.php?aj=1', spost, function(param){ if(param.errcode){ thisObj.alert(param.errmsg); return false; } document.getElementById('cl_hotel_booking_widget_e77069afe5c7e56438851935b77c3699_step5_bookingid').innerHTML = param.bookingID; thisObj.bookingID = param.bookingID; thisObj.toStep5(); thisObj.bookingID = 0; //если была оплата! if( cl_hotel5282.ispay ){ if(param.payURL){ //если не сработает перевод - то вручную! document.getElementById('cl_hotel_booking_widget_e77069afe5c7e56438851935b77c3699_step5_pay').style.display = ''; document.getElementById('cl_hotel_booking_widget_e77069afe5c7e56438851935b77c3699_step5_pay_lnk').href = param.payURL; //сохраним в кукисе данные букина thisObj.setCookie('bookingID', param.bookingID, 1); thisObj.setCookie('bookingDescr', sds, 1); document.location.href = param.payURL; if(thisObj.isvkwidget || window.isvkwidget || isvkwidget) { var str = param.payURL; var arr = str.split('?'); document.getElementById('CLOFF_HOTEL_WIDGET_URL').action = arr[0]; var params = arr[1].split('&'); var frm = document.getElementById('CLOFF_HOTEL_WIDGET_URL'); for(var i=0;i