document.write(""); document.write(""); document.write(""); function check(){ if(!$('#agreement').prop('checked')) { alert('请勾选服务协议和隐私权政策。'); return false; } var o2 = document.getElementById('panel_form_float'); var o = o2.getElementsByTagName('input'); var i=0; for(i=0;i < o.length;i++){ var v = o[i].value; if(o[i].name=='realname'){ if(v.length ==0){ alert('请填写您的真实姓名!'); o[i].focus(); return false; } } if(o[i].name=='tel'){ if(v.length==0){ alert('请填写联系电话'); o[i].focus(); return false; } } if(o[i].name=='coname'){ if(v.length==0){ alert('请填写您的单位/公司名称'); o[i].focus(); return false; } } } var tv = document.getElementById('detail'); var tvv = tv.value; if(tvv.length==0){ alert('请您填写咨询内容!'); return false; } return true; } function callback(e){ if(e==1){ if(typeof(ant_dist_id) !='undefined'){ alert('您的留言已经提交,请等待厂商与您联系!'); return; } if(typeof(ant_lab_id) !='undefined'){ alert('您的留言已经提交,请实验室与您联系!'); return; } alert('您的留言已经提交,请等待我们与您联系!'); return; } if(e == 500){ alert('您的留言提交失败,请再次刷新页面进行提交'); return; } if(e >1 && typeof(ant_lab_id) !='undefined'){//Lab返回 alert('您的留言已经提交,请实验室与您联系!'); window.location.href='/?action-emailtolabs-labid-'+ant_lab_id+'-askid-'+e; }else{ alert('您的留言已经提交,请等待我们与您联系!'); } } function set_xy(){ var p=document.getElementById('leftword'); if(!document.all){ p.style.position='fixed'; p.style.bottom='0px'; p.style.right='2px'; p.style.left=''; p.style.top=''; }else{ p.style.position='absolute'; var scrollTop = document.documentElement.scrollTop; var clientHeight= document.documentElement.clientHeight; var top = scrollTop + clientHeight - p.offsetHeight; var scrollLeft = document.documentElement.scrollLeft; var clientWidth = document.documentElement.clientWidth; var left = scrollLeft + clientWidth - p.offsetWidth; p.style.top = top+'px'; p.style.left = left + 'px'; } //导购产品详细页底下的漂浮广告 if(document.getElementById("m_app_open_div")){ if(document.getElementById("m_app_open_div").style.display=="block"){ p.style.bottom='130px'; }else{ p.style.bottom='0px'; } }else{ p.style.bottom='0px'; } } function addListener(element,e,fn){ try{ if(element.addEventListener){ element.addEventListener(e,fn,false); } else { element.attachEvent("on" + e,fn); } }catch(e){ alert(e.toString()); } } function parseResultsleftword(xmlHttp){ var p = document.getElementById('leftword'); p.innerHTML = xmlHttp.responseText; p.style.display=''; set_xy(); addListener(window,"scroll",set_xy); addListener(window,"resize",set_xy); } //赵洁琼 2012.07.04 var _test_run_readpanel=0; function readpanel(){ //防止重复执行 if(_test_run_readpanel !=0){ return;} _test_run_readpanel=1; var q = '?a=1'; if(typeof(ant_dist_id) !='undefined'){ q = q+'&dist_id='+parseInt(ant_dist_id); } if(typeof(ant_product_id) !='undefined'){ q = q+'&product_id='+parseInt(ant_product_id); } if(typeof(ant_lab_id) !='undefined'){ q = q+'&lab_id='+parseInt(ant_lab_id); } if(typeof(ant_blog_id) !='undefined'){ q = q+'&blog_id='+parseInt(ant_blog_id); } //赵洁琼 2012.07.04 if(typeof(ant_ai_did) !='undefined'){ q = q+'&ant_ai_did='+parseInt(ant_ai_did); } if(typeof(ant_ai_pid) !='undefined'){ q = q+'&ant_ai_pid='+parseInt(ant_ai_pid); } if(typeof(ant_bi_did) !='undefined'){ q = q+'&ant_bi_did='+parseInt(ant_bi_did); } if(typeof(ant_bi_pid) !='undefined'){ q = q+'&ant_bi_pid='+parseInt(ant_bi_pid); } if(typeof(service_demand) !='undefined'){ q = q+'&service_demand='+parseInt(service_demand); } try{ antajaxleftword('/batch.panel.leftword.set.php'+q); }catch(e){ alert(e.toString()); } } window.onload = function(){ setTimeout(readpanel,2000); } function closepanel(){ var p = document.getElementById('leftword'); p.innerHTML = '
打开留言板
'; set_xy(); } function openpanel(){ _test_run_readpanel=0; readpanel(); } $(document).ready(function(){ $(".details-left-tag").append('

注:该仪器未取得中华人民共和国医疗器械注册证,不可用于临床诊断或治疗等相关用途'); });