prevLoad = window.onload; window.onload = function() { $('#rest_list').jScrollPane({scrollbarWidth:20, scrollbarMargin:10, dragMaxHeight:50}); $('#centerscrolarea').jScrollPane({scrollbarWidth:20, scrollbarMargin:10, dragMaxHeight:50}); $('#mainscroll').jScrollPane({scrollbarWidth:20, scrollbarMargin:10, dragMaxHeight:50}); $('div.jScrollPaneContainer').css('float', 'left'); if ( parseInt($('body').css('height')) > parseInt($('#screen').css('height')) ) { $('#popupblock').css('height', $('body').css('height') ); $('#popupblock2').css('height', $('body').css('height') ); } else { $('#popupblock').css('height', $('#screen').css('height') ); $('#popupblock2').css('height', $('#screen').css('height') ); } if($('#closelnk')) { $('a.closelnk').click(function(e){ $('#popupblock').hide(); $('#hide1').show(); $('#hide2').show(); $('#continue').hide(); $('#ajax-result').html(''); $('#ajax-result').hide(); $('#ajax-loading').hide(); $('#popupblock2').hide(); $('#hide1_2').show(); $('#hide2_2').show(); $('#continue2').hide(); $('#ajax-result2').html(''); $('#ajax-result2').hide(); $('#ajax-loading2').hide(); e.preventDefault(); }); } if($('#agentform')) { var arr = Array(); arr[0] = 'fio'; arr[1] = 'city'; arr[2] = 'age'; arr[3] = 'education'; arr[4] = 'work'; arr[5] = 'finance-status'; arr[6] = 'offen-visit-restarants'; arr[7] = 'most-liked-in-city'; arr[8] = 'most-liked-in-country'; arr[9] = 'liked-cookery'; arr[10] = 'liked-vines'; arr[11] = 'like-to-cook'; arr[12] = 'ideal-restarant'; arr[13] = 'email'; arr[14] = 'phone'; $('#agentform').submit(function(){ $('#ajax-loading').hide(); $('#hide1').show(); $('#hide2').show(); $('#continue').hide(); $('#ajax-result').html(''); $('#ajax-result').hide(); isRequire = false; require = ''; i=0; first = -1; requestParams =''; for(i=0; i