INQUIRY.
Allow us to provide you with optimum support.
If you would like to ask a question or simply wish to arrange for one of our specialists to contact you,
please email us on: erichong@kolon.com .
-1
|| $('.type1 .comments_input').val().indexOf("http") > -1 || $('.type1 .comments_input').val().indexOf("https") > -1
|| RegExpTag.test($('.type1 .comments_input').val())){
alert("you can't use html tags");
return false;
}
document.frm1.submit();
//alert('문의가 접수되었습니다.\n5일 이내에 회신 드리겠습니다.');
} else if ( seletor == 'type2'){
if($('.type2 .full_name_input').val() == ''){
alert('Please Enter a Full Name.');
$('.type2 .full_name_input').focus();
return false;
}
if($('.type2 .embassy_input').val() == ''){
alert('Please Enter a Embassy or Organisation name.');
$('.type2 .embassy_input').focus();
return false;
}
if($('.type2 .number_input').val() == ''){
alert('Please Enter a Contact Number.');
$('.type2 .number_input').focus();
return false;
}
if($('.type2 .email_input').val() == ''){
alert('Please Enter a E-mail Address.');
$('.type2 .email_input').focus();
return false;
}
if(!checkEmail($('.type2 .email_input').val())){
alert('Please check your E-mail Address.');
$('.type2 .email_input').focus();
return false;
}
/*if($('.type2 .optional_input').val() == ''){
alert('Please Enter a Optional Alternate E-mail Address.');
$('.type2 .optional_input').focus();
return false;
}
if(!checkEmail($('.type2 .optional_input').val())){
alert('Please check your Optional Alternate E-mail Address.');
$('.type2 .optional_input').focus();
return false;
}*/
if($('.type2 .comments_input').val() == ''){
alert('Please Enter a Comments/Questions.');
$('.type2 .comments_input').focus();
return false;
}
if($('.type2 .comments_input').val().indexOf("a href") > -1 || $('.type2 .comments_input').val().indexOf(" -1
|| $('.type2 .comments_input').val().indexOf("http") > -1 || $('.type2 .comments_input').val().indexOf("https") > -1
|| RegExpTag.test($('.type2 .comments_input').val())){
alert("you can't use html tags");
return false;
}
document.frm2.submit();
//alert('문의가 접수되었습니다.\n5일 이내에 회신 드리겠습니다.');
} else if ( seletor == 'type3'){
if(type == 'Others'){
$('#type3').val('Others');
}
if($('.type3 .full_name_input').val() == ''){
alert('Please Enter a Full Name.');
$('.type3 .full_name_input').focus();
return false;
}
if($('.type3 .organisation_input').val() == ''){
alert('Please Enter a Organisation name.');
$('.type3 .organisation_input').focus();
return false;
}
if($('.type3 .number_input').val() == ''){
alert('Please Enter a Contact Number.');
$('.type3 .number_input').focus();
return false;
}
if($('.type3 .email_input').val() == ''){
alert('Please Enter a E-mail Address.');
$('.type3 .email_input').focus();
return false;
}
if(!checkEmail($('.type3 .email_input').val())){
alert('Please check your E-mail Address.');
$('.type3 .email_input').focus();
return false;
}
/*if($('.type3 .optional_input').val() == ''){
alert('Please Enter a Optional Alternate E-mail Address.');
$('.type3 .optional_input').focus();
return false;
}
if(!checkEmail($('.type3 .optional_input').val())){
alert('Please check your Optional Alternate E-mail Address.');
$('.type3 .optional_input').focus();
return false;
}*/
if($('.type3 .comments_input').val() == ''){
alert('Please Enter a Comments/Questions.');
$('.type3 .comments_input').focus();
return false;
}
if($('.type3 .comments_input').val().indexOf("a href") > -1 || $('.type3 .comments_input').val().indexOf(" -1
|| $('.type3 .comments_input').val().indexOf("http") > -1 || $('.type3 .comments_input').val().indexOf("https") > -1
|| RegExpTag.test($('.type3 .comments_input').val())){
alert("you can't use html tags");
return false;
}
document.frm3.submit();
//alert('문의가 접수되었습니다.\n5일 이내에 회신 드리겠습니다.');
}
}
function inquiry_cancel() {
var seletor = $('.inquiry_type').val(),
formElem = $('.inquiry_form form');
if(confirm("All entries will be deleted.\nDo you want to cancel?")){
if (seletor == 'type1'){
formElem[0].reset();
} else if (seletor == 'type2'){
formElem[1].reset();
}else if (seletor == 'type3'){
formElem[2].reset();
}
}
}
//이메일 유효성 체크
function checkEmail(str){
var reg = /^((\w|[\-\.])+)@((\w|[\-\.])+)\.([A-Za-z]+)$/;
if (str.search(reg) != -1) {
return true;
}
return false;
}