var FORM_thefield = "Полето"; var FORM_required = "е задължително!"; var FORM_notmatch = "Двете пароли не съвпадат !"; var FORM_retype = "Повтори"; var FORM_toshort = "трябва да е с минимална дължина"; FORM_RESULT = Array("", "Запитването беше изпратено!", "System error, try again later !", "Already sent !"); function showsubm(ID) { $(".mns_js").css({display:"block"}); $('#'+ID).animate({marginTop: '0.08in'},400, function() {}); $('#'+ID+' div:.alphaA').each(function() { /*$(this).animate({ opacity: 1 }, 600, function() {});*/ //$(this).fadeIn(600); }); } function hideJSL(ID) { $('#'+ID+' div:.alphaA').each(function() { // $(this).css({opacity: 0}); }); } function setRO() { $('.mabg').each(function() { $(this).mouseover(function() {$(this).addClass("mabg_hover")}); $(this).mouseout(function() {$(this).removeClass("mabg_hover")}); }); $('.mabgbigB').each(function() { $(this).mouseover(function() {$(this).addClass("mabgbigB_hover")}); $(this).mouseout(function() {$(this).removeClass("mabgbigB_hover")}); }); } function test() { S = document.getElementById("site_holder"); S.style.display = 'block'; } function Send(formid, scriptid, a_k) { FID = formid.split("fm_").join(""); var t=new Date(); VALID = ''; D =''; $('#'+formid+' input:hidden').each(function() { N = $(this).attr('name'); N_entered = N.substr(1,N.length); V_fieldsettings = $(this).val(); V_FS = V_fieldsettings.split('|-|-|'); V = V_FS[0]; V_entered = $('#'+N_entered).val(); VALID += validateField(V, V_entered, V_FS[1], V_FS[2], N_entered, V_FS[3]); D += (V +'|-|-|'+V_entered+'|:|:|'); }); if(VALID!='') { alert(VALID); return; } $.post( scriptid+'.php?f='+FID+'&nch='+t, {kk: a_k, m_dt: D}, function(data) { var dt = data.split('~|~'); if(dt[1]=='1')Clear(formid); alert(FORM_RESULT[Number(dt[1])]); //alert(FORM_RESULT[intval(dt[1])]); }); } function validateField(F_label, F_value, F_required, F_type, F_name, F_length) { if(F_required==1 && F_value=='')return FORM_thefield+' `'+F_label+'` '+FORM_required+'\n'; if(F_value.length $(window).height())hasVScroll = true;else hasVScroll = false; return hasVScroll; } function showBox22(LAYOUT, SHOW_HOLDER) { var FO = document.getElementById('container'); if(FO)FO.style.display='none'; var CC__ = document.getElementById('_tab'); var width = $(CC__).width(); var height = $(CC__).height(); var layer = document.createElement('div'); layer.style.zIndex = 20000; layer.id = 'layer_system'; layer.style.position = 'absolute'; // layer.style.top = '0px'; //layer.style.left = '0px'; //layer.style.height = document.documentElement.scrollHeight + 'px'; layer.style.width = width + 'px'; layer.style.height = height + 'px'; layer.style.backgroundColor = 'black'; layer.style.opacity = '.3'; layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=30)"); //CC__.appendChild(layer); //alert( CC__.firstChild.id ); //CC__.insertBefore(layer, CC__.firstChild); // parent.insertBefore(node, referenceNode.nextSibling); var div = document.createElement('div'); div.style.zIndex = 30000; div.id = 'box_system'; div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed'; div.style.top = '200px'; div.style.left = (width / 2) - (400 / 2) + 'px'; div.style.height = 'auto'; div.style.width = '400px'; div.style.backgroundColor = '#141414'; div.style.border = '2px solid silver'; div.style.padding = '20px'; // CC__.appendChild(div); var layout_holder = document.getElementById(LAYOUT); layout_html = layout_holder.innerHTML; var p = document.createElement('div'); p.innerHTML = layout_html; div.appendChild(p); /* var a = document.createElement('a'); a.innerHTML = 'Close window'; a.href = 'javascript:void(0)'; a.onclick = function() { agree(); }; div.appendChild(a);*/ } function hideBox(SHOW_HOLDER) { var FO = document.getElementById('container'); if(FO)FO.style.display='block'; var CC__ = document.getElementById(SHOW_HOLDER); alert(CC__ ); CC__.removeChild(document.getElementById('layer_system')); //document.body.removeChild(document.getElementById('box_system')); }