Most Popular Products
|
validate_checkBox("'terms'","Terms and Condition","single",1);
if (document.getElementById('mini_reg_form_id') != null) {
via_reg = 1;
check_mini_reg();
}
if (document.getElementById('mini_login_form_id') != null) {
check_mini_login();
}
//Initial lines
error_counter('1');
if(back_m==1){
disable();
back_m=0;
// unbinding the window.beforeunload as the incomplete rfis is not to be
// recorded in case inquiry is actually submitted
$k(window).unbind("beforeunload");
var date_obj = new Date();
date_obj.setTime(date_obj.getTime() + (2 * 60 * 1000));
$k.cookie('via_reg', via_reg, { expires: date_obj });
return true;
} else{error_counter('2');error_counter('0');return false;}
//End of initial lines
} // end of else in case validation and submission is to be performed
}
}
//-->
// Following document ready section is specifically
// related to the minified version.
$k(document).ready(function(){
if(!$k('#non_login_form').length) {
return false;
}
check_email_mobile_exist();
$k('#email, #mobile, #mobile-dd').mouseleave(function(){
var mob_cc = jq(".selected-dial-code").html();
if (mob_cc.match(/^\+91/)) {
$k('.div_loc').hide();
$k('#show_pin_code').show();
} else {
$k('.div_loc').show();
$k('#show_pin_code').hide();
}
check_email_mobile_exist();
});
$k('#email, #mobile').keypress(function(event){
if (event.key === "Enter") {
check_email_mobile_exist();
event.preventDefault();
}
});
});
function check_email_mobile_exist() {
if($k('#email').val() == '' || $k('#mobile').val() == '') {
clear_minified_fields();
return false;
}
//Initial lines
show_error[0]='Please make note of following things :\n';
form_name='first_form';
//End of initial lines
validate_text('email','Email','email',3);
//validate_text('mobile','Mobile','mobile',4);
//Initial lines
error_counter('1');
if(back_m==1){disable();back_m=0;}
else{error_counter('2');error_counter('0');return false;}
//End of initial lines
$k.ajax({
url: '/component/check_email_mobile_exist.html',
type: 'POST',
async:false,
data: {
'email' : $k('#email').val(),
'mobile': $k("#mobile").intlTelInput("getNumber")
},
success: function(data){
if(/FAILED/.test(data)) {
$k('.minified_fields').show();
} else if(/SUCCESS/.test(data)) {
clear_minified_fields();
}
}
});
}
function clear_minified_fields() {
$k('.minified_fields').hide();
$k("input[name='name']").val('');
$k('#co_name').val('');
$k('#city_id_input').val('');
$k('#city_id').val('');
$k('#country_code').val('');
$k('#city').val('');
$k('#state').val('');
}
function Catalog_setCountryCode(){
$k.ajax({
url: "/utils/user_browsing_country_code.html?country_code=in",
}).done(function(data) {
var cc = data.country_code;
$k("#mobile").intlTelInput("setCountry", cc);
});
}
$k(document).ready(function() {
setTimeout(Catalog_setCountryCode, 10);
});
MADHAV CHEMICALS
![]() |
MADHAV CHEMICALS
All Rights Reserved.(Terms of Use) Developed and Managed by Infocom Network Private Limited. |