Notice: Undefined index: lg in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 14
Warning: include(../language/.php) [function.include]: failed to open stream: No such file or directory in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 14
Warning: include(../language/.php) [function.include]: failed to open stream: No such file or directory in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 14
Warning: include() [function.include]: Failed opening '../language/.php' for inclusion (include_path='.:/usr/local/php53/lib/php') in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 14
function CheckPayment()
{
//var d1 = Date.parse(datepickerbegin);
//var d2 = Date.parse(datepickerend);
//var days_left = days_between(datepickerbegin, datepickerend)
if(IsEmpty('name'))
{
alert('Vui lòng nhập tên');
document.getElementById('name').focus();
return false;
}
else if(IsEmpty('email'))
{
alert('
Notice: Use of undefined constant EMAIL_VALIDATTION - assumed 'EMAIL_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 30
EMAIL_VALIDATTION');
document.getElementById('email').focus();
return false;
}
else if(!IsEmail('email'))
{
alert('
Notice: Use of undefined constant INVALID_EMAIL - assumed 'INVALID_EMAIL' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 36
INVALID_EMAIL');
document.getElementById('email').focus();
return false;
}
else if(IsEmpty('datepickerbegin'))
{
alert('Chưa chọn ngày.');
document.getElementById('datepickerbegin').focus();
return false;
}
else if(IsEmpty('datepickerend'))
{
alert('Chưa chọn ngày.');
document.getElementById('datepickerend').focus();
return false;
}
/*else if(days_left < 1)
{
alert('Chọn ngày không phù hợp');
document.getElementById('datepickerbegin').focus();
return false;
}*/
else
{
return true;
return false;
}
return false;
}
function SaveEmail()
{
var result = true;
if ($('#optin_info_name').val() == 'Họ tên')
{
alert('Xin bạn nhập họ tên!');
result = false;
}
if (!IsEmail('optin_info_email'))
{
alert('Xin bạn nhập email!');
result = false;
}
if (!result) return;
$('#various2').trigger('click');
$('#div_form').hide();
$('#div_loading').show();
$.post("/ajax2.php?do=email&act=send",{
name: $('#fields_fname').val(),
email: $('#fields_email').val() },
function(data)
{
alert('Bạn đã đăng ký thành công');
}
);
return false;
}
function CheckAllOptIn()
{
//alert('test');
/*if(IsEmpty('name'))
{
alert('
Notice: Use of undefined constant USERNAME_VALIDATTION - assumed 'USERNAME_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 105
USERNAME_VALIDATTION');
document.getElementById('name').focus();
return false;
}
else if(IsEmpty('email'))
{
alert('
Notice: Use of undefined constant EMAIL_VALIDATTION - assumed 'EMAIL_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 111
EMAIL_VALIDATTION');
document.getElementById('email').focus();
return false;
}
else if(!IsEmail('email'))
{
alert('
Notice: Use of undefined constant INVALID_EMAIL - assumed 'INVALID_EMAIL' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 117
INVALID_EMAIL');
document.getElementById('email').focus();
return false;
}
else if(!MatchValue('email', 'email2'))
{
alert('
Notice: Use of undefined constant MATCH_EMAIL_VALIDATTION - assumed 'MATCH_EMAIL_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 123
MATCH_EMAIL_VALIDATTION');
document.getElementById('email').focus();
return false;
}
else{
OptInSubmitAction();
return true;
}*/
}
function CheckAllForgotPassword()
{
if(IsEmpty('email_forgot'))
{
alert('
Notice: Use of undefined constant EMAIL_VALIDATTION - assumed 'EMAIL_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 136
EMAIL_VALIDATTION');
document.getElementById('email_forgot').focus();
return false;
}
else if(!IsEmail('email_forgot'))
{
alert('
Notice: Use of undefined constant INVALID_EMAIL - assumed 'INVALID_EMAIL' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 142
INVALID_EMAIL');
document.getElementById('email_forgot').focus();
return false;
}
else{
return true;
}
}
function CheckAllMemberChange()
{
if(IsEmpty('password_old'))
{
alert('
Notice: Use of undefined constant PASSWORD_VALIDATTION - assumed 'PASSWORD_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 154
PASSWORD_VALIDATTION');
document.getElementById('password_old').focus();
return false;
}
else if(IsEmpty('password_new'))
{
alert('
Notice: Use of undefined constant PASSWORD_VALIDATTION - assumed 'PASSWORD_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 160
PASSWORD_VALIDATTION');
document.getElementById('password_new').focus();
return false;
}
else if(!MatchValue('password_new', 'password2_new'))
{
alert('
Notice: Use of undefined constant MATCH_PASSWORD_VALIDATTION - assumed 'MATCH_PASSWORD_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 166
MATCH_PASSWORD_VALIDATTION');
document.getElementById('password2_new').focus();
return false;
}
else{
return true;
}
}
function CheckAllMemberReg()
{
if(IsEmpty('name_reg'))
{
alert('
Notice: Use of undefined constant NAME_VALIDATTION - assumed 'NAME_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 178
NAME_VALIDATTION');
document.getElementById('name_reg').focus();
return false;
}
else if(IsEmpty('email_reg'))
{
alert('
Notice: Use of undefined constant EMAIL_VALIDATTION - assumed 'EMAIL_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 184
EMAIL_VALIDATTION');
document.getElementById('email_reg').focus();
return false;
}
else if(!IsEmail('email_reg'))
{
alert('
Notice: Use of undefined constant INVALID_EMAIL - assumed 'INVALID_EMAIL' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 190
INVALID_EMAIL');
document.getElementById('email_reg').focus();
return false;
}
else if(!MatchValue('email_reg', 'email2_reg'))
{
alert('
Notice: Use of undefined constant MATCH_EMAIL_VALIDATTION - assumed 'MATCH_EMAIL_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 196
MATCH_EMAIL_VALIDATTION');
document.getElementById('email2_reg').focus();
return false;
}
else if(IsEmpty('password_reg'))
{
alert('
Notice: Use of undefined constant PASSWORD_VALIDATTION - assumed 'PASSWORD_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 202
PASSWORD_VALIDATTION');
document.getElementById('password_reg').focus();
return false;
}
else if(!MatchValue('password_reg', 'password2_reg'))
{
alert('
Notice: Use of undefined constant MATCH_PASSWORD_VALIDATTION - assumed 'MATCH_PASSWORD_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 208
MATCH_PASSWORD_VALIDATTION');
document.getElementById('password2_reg').focus();
return false;
}
else{
return true;
}
}
function CheckAllEmailPassword()
{
if(IsEmpty('email'))
{
alert('
Notice: Use of undefined constant EMAIL_VALIDATTION - assumed 'EMAIL_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 220
EMAIL_VALIDATTION');
document.getElementById('email').focus();
return false;
}
else if(!IsEmail('email'))
{
alert('
Notice: Use of undefined constant INVALID_EMAIL - assumed 'INVALID_EMAIL' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 226
INVALID_EMAIL');
document.getElementById('email').focus();
return false;
}
else if(IsEmpty('password'))
{
alert('
Notice: Use of undefined constant PASSWORD_VALIDATTION - assumed 'PASSWORD_VALIDATTION' in /home/atlascopco/domains/atlascopcovn.com/public_html/js/validation.php on line 232
PASSWORD_VALIDATTION');
document.getElementById('password').focus();
return false;
}
else{
return true;
}
}
function OptInSubmitAction()
{
document.frmOptin.email.value = document.getElementById('email').value;
document.frmOptin.name.value = document.getElementById('name').value;
document.frmOptin.submit() ;
}
function changesession(level)
{
$.post("/ajax2.php?do=hotel&act=changesession",{
star: "'" + level + "'",
email: $('#fields_email').val() },
function(data)
{
location.href = location.href ;
// alert('Bạn đã đăng ký thành công');
}
);
}
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > milliseconds){
break;
}
}
}
function changesession_noreload(level)
{
$.post("/ajax2.php?do=hotel&act=changesession",{
star: "'" + level + "'",
email: $('#fields_email').val() },
function(data)
{
//location.href = location.href ;
// alert('Bạn đã đăng ký thành công');
}
);
sleep(250);
}