var warning = "";
function checkForm() {
if (checkFields()) {
for (i=0; i < document.your_contact_form.elements.length; i++) {
if (document.your_contact_form.elements[i].value == 0) document.your_contact_form.elements[i].disabled=true;
}
document.your_contact_form.action = '/cn/_meta/contact/confirmcontact.jsp';
document.your_contact_form.submit();
return false;
}
return false;
}
function checkFields(){
var check = true;
if (!checkPhoneEmail()) check = false;
if (!checkSurname()) check = false;
if (!checkFirstname()) check = false;
if (!checkMessage()) check = false;
if (!check) alert(warning);
return check;
}
function showWarning(elem,id) {
var message = "请填写所有带有*的栏目";
if (id==1) message = "请填写有效的电邮";
document.getElementsByName(elem)[0].style.border = "1px solid red";
//alert(message);
warning = message;
return false;
}
function checkFirstname(){
if (document.your_contact_form.firstname.value.length < 2) {
showWarning("firstname",0);
document.your_contact_form.firstname.focus();
return false;
}
else return true;
}
function checkSurname(){
if (document.your_contact_form.surname.value.length < 2) {
showWarning("surname",0);
document.your_contact_form.surname.focus();
return false;
}
else return true;
}
function checkMessage(){
if (document.your_contact_form.message.value.length < 2) {
showWarning("message",0);
document.your_contact_form.message.focus();
return false;
}
else return true;
}
function checkPhoneEmail(){
var chkPhone = true;
var chkEmail = true;
var isAdress = true;
unBorder(document.your_contact_form.phone);
unBorder(document.your_contact_form.email);
// ### check phone ###
if (document.your_contact_form.phone.value.length < 2) chkPhone = false;
// ### check email ###
if (document.your_contact_form.email.value.length < 2) chkEmail = false;
else if ((document.your_contact_form.email.value.indexOf('@') == -1) || (document.your_contact_form.email.value.indexOf('.') == -1)) isAdress = false;
if (!chkEmail && !chkPhone){ // ### both fields empty ###
showWarning("phone",0);
showWarning("email",0);
document.your_contact_form.email.focus();
return false;
} else if (chkEmail && !isAdress){ // ### wrong address format ###
showWarning("email",1);
document.your_contact_form.email.focus();
return false;
}
else return true;
}
function unBorder (obj) {
obj.style.border = '0';
// if( (navigator.appName == "Microsoft Internet Explorer" ) && (parseInt(navigator.appVersion) < 7) ) obj.style.borderLeft = "1px solid #cacacb";
// if ((navigator.userAgent.indexOf('MSIE 6')!=-1) && (obj.tagName.toLowerCase()=='input')) obj.style.borderLeft = '1px solid #cacacb';
if (((navigator.userAgent.indexOf('MSIE 6')!=-1)||(navigator.userAgent.indexOf('MSIE 7')!=-1))&&(obj.tagName.toLowerCase()=='input')) {
obj.style.borderLeft = '1px solid #cacacb';
}
if ((navigator.userAgent.indexOf('MSIE 7')!=-1)&&(obj.tagName.toLowerCase()=='textarea')) {
obj.style.borderTop = '1px solid #cacacb';
obj.style.borderBottom = '1px solid #cacacb';
obj.style.borderLeft = '1px solid #cacacb';
}
return false
}
function showContactAddress (cid) {
for(i=0;i
电子邮箱: RailServices@knorr-bremse.com
Eva Doppler
电话 +49 89 3547 1498
电子邮箱 eva.doppler@knorr-bremse.com
+ 852 3657 9800
~ '); c('4800~中国分销商代理热线~Tel: +86 21 3858 5896
Fax: +86 21 3858 5901
电话: +49 89 3547 180022
传真: +49 89 3547 2331
电邮: global.care@knorr-bremse.com
电话: +49 89 3547 1252
传真: +49 89 3547 2331
电邮: csr@knorr-bremse.com
电话: +49 89 3547 0
传真: +49 89 3547 2767
电邮: info@knorr-bremse.com
请按照专题直接与在那里注明的联系人取得联系。
您也可以通过联系表格向我们提问。
~karriere@knorr-bremse.com'); c('3334~轨道车辆系统销售~电话: + 86 512 66165282
电邮:sales.rail.cn@knorr-bremse.com
~sales.rail.cn@knorr-bremse.com'); c('3333~对轨道车辆系统投诉管理~电话: +49 89 3547 2966
电邮: complaint.sfs@knorr-bremse.com
~ complaint.sfs@knorr-bremse.com '); c('3332~商用车辆系统销售~电话:+86 21 38585800
传真:+86 21 38585901
电邮: sales.CVS.cn@knorr-bremse.com
电话: +49 89 3547 1431
传真: +49 89 3547 2262
电邮: complaint.sfn@knorr-bremse.com
电话: +86 512 6616 5267
传真: +86 512 6615 5813
电邮: purchasing.cn@knorr-bremse.com
~purchasing.cn@knorr-bremse.com'); c('3329~企业传讯部~刘慧菁女士
电话: +852 3657 9889
传真: +852 3657 9990
电邮: corporate.communications.ap@knorr-bremse.com