IndiaBizClub Login

x Register Free
x Register Free

Copyright © 2000 - 2017 IndiaBizClub. All rights reserved

= ht && !hasClass(element, "sh")) { addClass(element, "sh"); } else if (window.pageYOffset < ht && hasClass(element, "sh")) { removeClass(element, "sh"); } if (window.pageYOffset >= ht && !hasClass(cn, "show")) { addClass(cn, "show"); } else if (window.pageYOffset < ht && hasClass(cn, "show")) { removeClass(cn, "show"); } if (window.pageYOffset >= ht && !hasClass(bl, "hd")) { addClass(bl, "hd"); } else if (window.pageYOffset < ht && hasClass(bl, "hd")) { removeClass(bl, "hd"); } var gototopo = 320; var gt = document.getElementById('ggt'); if (window.pageYOffset >= gototopo && !hasClass(element, "stp")) { addClass(gt, "stp"); } else if (window.pageYOffset < gototopo) { removeClass(gt, "stp"); } } function hasClass(ele, cls) { if(ele && ele!=null && ele!=='undefined'){ return ele.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)')); } } function addClass(ele, cls) { if (ele!=null && ele!=='undefined' && !this.hasClass(ele, cls)) ele.className += " " + cls; } function removeClass(ele, cls) { if (ele!=null && ele!=='undefined' && hasClass(ele, cls)) { var reg = new RegExp('(\\s|^)' + cls + '(\\s|$)'); ele.className = ele.className.replace(reg, ' '); } } var ele = document.getElementById("hb"); addClass(ele, "hdr-nf"); var timeOut; function scrollToTop() { if (document.body.scrollTop !== 0 || document.documentElement.scrollTop !== 0) { window.scrollBy(0, -50); timeOut = setTimeout('scrollToTop()', 10); } else clearTimeout(timeOut); } function getInfo(btn) { btn.innerHTML = 'Getting Information..'; var params = "cid=9zaxaxmamasuaxzq05qrt&inf=inf"; var req; // global variable to hold request object req = new AjaxRequest(); if (req) { req.loadXMLDoc('qxzpmd/ajaxComp.php', params); return false; } return false; //loadXMLDoc(params, 'ajaxComp.php'); } function errfrm() { if(frmValid({'err_problem':['req','','please select problem type'],'err_name':['req','','please enter name'],'err_email':['req','email','please enter valid email'],'err_mob':['mob','','please enter valid mobile'],'err_message':['req','','please enter message'],'err_sicode':['req','','please enter captcha']})) { var xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); document.getElementById('err_submit').value='Sending Error..'; //document.getElementById('err_submit').disabled='true'; xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) if (xmlhttp.responseText) { var err_res=JSON.parse(xmlhttp.responseText); document.getElementById('err_msgres').innerHTML = err_res.msg; if(err_res.ok) { document.getElementById('errfrm').style.display = 'none'; } else { document.getElementById('err_submit').removeAttribute('disabled'); document.getElementById('err_submit').value='Send'; } } } var formData = new FormData(document.getElementById('errfrm')); xmlhttp.open("POST", document.getElementById('pth').value + "reportError.php"); xmlhttp.send(formData); } return false; } function sharefrm() { if(frmValid({'from':['req','email','please enter valid email'],'to':['req','email','please enter valid email']})) { var xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); document.getElementById('share_submit').value='Sending Message..'; xmlhttp.onreadystatechange = function () { if (xmlhttp.readyState == 4 && xmlhttp.status == 200) if (xmlhttp.responseText) { var share_res=JSON.parse(xmlhttp.responseText); document.getElementById('share_msgres').innerHTML = share_res.msg; if(share_res.ok) { document.getElementById('shareform').style.display = 'none'; } else { document.getElementById('share_submit').removeAttribute('disabled'); document.getElementById('share_submit').value='Send'; } } } var formData = new FormData(document.getElementById('shareform')); xmlhttp.open("POST",'/qxzpmd/shareMail.php'); xmlhttp.send(formData); } return false; }