var W3CDOM = (document.createElement && document.getElementsByTagName); var redirectTimer=15; var IE = /*@cc_on!@*/false; var isShown = false; function goTo(URL, target){ if(target==null) target='parent'; if(navigator.appName=="Netscape") eval('window.'+target+'.location = "'+URL+'"'); else eval('window.'+target+'.navigate("'+URL+'")'); } function checkFields(elmts, rules){ var valid = true; var errorMessage = []; elmts.reverse(); rules.reverse(); for(index=0; index 0) return false; var inputs = document.getElementsByTagName("input"); var password = document.createAttribute("password"); for (var i=0;i 0) { inputs[i].value = inputs[i].getAttribute("placeholder"); inputs[i].onfocus = function() { if (this.value == this.getAttribute("placeholder")) { this.value = ""; if(this.getAttribute("password")) this.type="password"; } return false; } inputs[i].onblur = function() { if (!this.value) { this.value = this.getAttribute("placeholder"); if (this.type=="password" && !IE) this.type = "text"; } } } } } } function toInt(x){ return parseInt(parseFloat(x)); } function doBlink(){ $('.blink').fadeOut('slow', function(){ $('.blink').fadeIn('slow'); }); setTimeout("doBlink()", 3000); } function showArticle(id){ $('#ok_cms_op_loading').fadeIn('fast'); $.ajax({ url: "/ajaxJobs/showArticle.php", type: "GET", data: {'id': id}, context: document.body, error: function(){ alert('Error'); return false; }, success: function(data){ if(isShown) hideArticle(function(){ $('#contentBox').attr('innerHTML', data); initTinyMCE(); $('#content').animate({left: '50%'}, 'slow', function(){$('#contentBox').animate({height: '500px'}); $('#ok_cms_op_loading').fadeOut('fast');}); }) else { $('#contentBox').attr('innerHTML', data); initTinyMCE(); $('#content').animate({left: '50%'}, 'slow', function(){$('#contentBox').animate({height: '500px'}); $('#ok_cms_op_loading').fadeOut('fast');}); } isShown=true; } }); return false; } function initTinyMCE(){ } function hideArticle(callBack){ $('#contentBox').animate({height: '0'}, 'fast', function(){$('#content').animate({left: '-1000px'}, 'slow', callBack)}); isShown=false; return false; }