$(function (){
$('.lanrenzhijia').animate({right:'5px'},1000);
$('.lanrenzhijia .close').click(function(){
$('.lanrenzhijia').fadeOut();
$('#kq').fadeIn();
});
});
function show(){
$('#kq').fadeOut();
$('.lanrenzhijia').fadeIn();
}
function show_message_lx(){
$('#kq').fadeOut();
$('.lanrenzhijia').fadeIn();
//如果底下有漂浮窗口
if($(".m-app-open").length>0){
if($(".m-app-open").css("display")=="block"){
$(".lanrenzhijia").css({"bottom": "130px"});
}else{
$(".lanrenzhijia").css({"bottom": "10px"});
}
}
}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;
}
}
if(o[i].name=='email'){
v = o[i].value;
var re = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if(!re.test(v)&&v){
alert('请输入正确的邮件地址!');
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){
//var o = document.getElementById('bigtxt');
//o.innerHTML='
您的咨询要求已经正确提交,请等待我们与您联系,谢谢!
';
alert('您的咨询要求已经正确提交,请等待我们与您联系,谢谢!');location=location;
}else if(e==2){
alert('验证码错误,请重新填写!');location=location;
}
}
*/
function messageback(type){
if(type=='ok'){
alert('您的咨询要求已经正确提交,请等待我们与您联系,谢谢!');
location=location;
}else{
alert('提交留言失败!');
}
}
$(document).ready(function(){
$(".product_detail").append('注:该仪器未取得中华人民共和国医疗器械注册证,不可用于临床诊断或治疗等相关用途');
});