Manisha Koirala thanks Indian govt, PM Narendra Modi for relief help to quake-hit Nepal

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
});
$(‘form#login .lost-password a’).on(‘click’, function (e) {
$(‘form#login’).fadeOut();
$(‘form#register’).fadeOut();
$(‘form#lostpass’).fadeIn();
e.preventDefault();
});
$(‘.invite_friends’).on(‘click’, function (e) {
$(‘.invitefriend’).fadeToggle();
e.preventDefault();
});
$(‘#invitefriend’).focus(function () {
$(this).data(‘placeholder’, $(this).attr(‘placeholder’))
$(this).attr(‘placeholder’, ”);
});
$(‘#invitefriend’).blur(function () {
$(this).attr(‘placeholder’, $(this).data(‘placeholder’));
});
$(‘form#lostpass’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
useroremail = $(‘form#lostpass #useroremail’).val();
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
beforeSend: function () {
$(“.popup-row .loading-gif”).show();
},
data: {
‘action': ‘ajaxlostpass’,
‘useroremail': useroremail
},
success: function (data) {
$(‘p.status’).text(data.message);
$(“.popup-row .loading-gif”).hide();
}
});
e.preventDefault();
});
$(‘form#login, form#register’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
action = ‘ajaxlogin';
username = $(‘form#login #username’).val();
password = $(‘form#login #password’).val();
invitefriend = $(‘form#login #invitefriend’).val();
rememberme = false;
if ($(‘form#login #rememberme’).is(‘:checked’)) {
rememberme = true;
}
email = ”;
security = $(‘form#login #security’).val();
si_code_log = $(‘#si_code_log’).val();
captcha_code = $(‘#captcha_code’).val();
if ($(this).attr(‘id’) == ‘register’) {
if($(‘#profession’).val() == “please_select_pro”) {
$(‘#profession’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#profession’).css(‘border’,”);
}
if($(‘#areaofint’).val() == “please_select_aoi”) {
$(‘#areaofint’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#areaofint’).css(‘border’,”);
}
action = ‘ajaxregister';
firstname = $(‘#firstname’).val();
lastname = $(‘#lastname’).val();
//username = $(‘#signonname’).val();
password = $(‘#signonpassword’).val();
email = $(‘#email’).val();
security = $(‘#signonsecurity’).val();
countrycode = $(‘#countrycode’).val();
phonenumber = $(‘#phonenumber’).val();
profession = $(‘#profession’).val();
areaofint = $(‘#areaofint’).val();
dob = $(‘#dob’).val();
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘firstname': firstname,
‘lastname': lastname,
‘username': email,
‘password': password,
‘rememberme': rememberme,
‘invitefriend': invitefriend,
‘countrycode': countrycode,
‘phonenumber': phonenumber,
‘profession': profession,
‘areaofint': areaofint,
‘dob': dob,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(“#register .login-box h2″).text(“Thank You”);
$(“#register .login-box .status”).html(“Thank you for signing up with www.narendramodi.in, you will soon receive an activation link on your email, kindly confirm your registration.

Note: Please check your Spam and Promotions folder in case the verification email is missing in your Inbox.”);
$(“#register .login-box .popup-right”).hide();
$(“#register .login-box .popup-row”).hide();
$(“#register .login-box .bottom-row”).hide();
//document.location.href = window.location.href;
//$(‘p.status’, ctrl).text(data.message);
//if (data.loggedin == true) {
//}
$(“.popup-row .loading-gif”).hide();
setTimeout(function(){window.location.reload();}, 8000);
}
});
} else {
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘username': username,
‘password': password,
‘rememberme': rememberme,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(‘p.status’, ctrl).text(data.message);
if (data.loggedin == true) {
url = window.location.href;
url = url.slice( 0, url.indexOf(‘?’) );
document.location.href = url;
}
$(“.popup-row .loading-gif”).hide();
}
});
}

e.preventDefault();
});
if ($(“#register”).length) {
$(“#register”).validate({
rules: {
phonenumber: {
required: true,
number: true,
maxlength:10
},
}
});
}

if ($(“#login”).length) {
$(“#login”).validate();
}
if ($(“#lostpass”).length) {
$(“#lostpass”).validate();
}

// When you open reg form by default
var regval = getParameterByName(‘reg’);
if(regval == “wish”) {
$(‘body’).prepend(‘

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
}
var regval = getParameterByName(‘action’);
if(regval == “confirm”) {
$(‘body’).prepend(”);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#register’).fadeIn(500);
else
$(‘form#login’).fadeIn(500);
e.preventDefault();
}
// When you open reg form by default

});
$(‘form#login’).on(‘click’, function (e) {
var email = $(“#invitefriend”).val();
var valid_email_id = true
if (email.length 0) {
var email_reg = “[A-Za-z0-9._%-‘]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}”;
var re = new RegExp(‘^’ + email_reg + ‘(;\n*’ + email_reg + ‘)*;?$’);
var email_values = $(“#invitefriend”).val().trim();
var email_with_separator = email_values.replace(/[ ;,]+/g, “,”);
var email_array = email_with_separator.split(“,”);
var validate_email_id = email_array.map(function (str) {
return re.test(str);
});
var invalid_email_id_found = $.inArray(false, validate_email_id) -1;
if (invalid_email_id_found) {
valid_email_id = false
}
}
if (valid_email_id == false) {
$(“#invitefriend”).addClass(“required error”);
return false;
} else {
$(“#invitefriend”).removeClass();
}
});
$(function () {
$(‘#dob’).datepicker({
dateFormat: ‘yy-mm-dd’,
changeMonth: true,
changeYear: true,
yearRange: “1950:2015″,
maxDate: new Date()
});
$(‘#dob’).attr(‘readonly’, true);
$(‘#dob’).keypress(function (e) {
if (e.which != 8 e.which != 0 e.which != 45 (e.which 57)) {
return false;
}
});
});

Article source: http://www.narendramodi.in/manisha-koirala-thanks-indian-govt-pm-narendra-modi-for-relief-help-to-quake-hit-nepal/

PM Modi leads from the front as quake rattles Nepal, India

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
});
$(‘form#login .lost-password a’).on(‘click’, function (e) {
$(‘form#login’).fadeOut();
$(‘form#register’).fadeOut();
$(‘form#lostpass’).fadeIn();
e.preventDefault();
});
$(‘.invite_friends’).on(‘click’, function (e) {
$(‘.invitefriend’).fadeToggle();
e.preventDefault();
});
$(‘#invitefriend’).focus(function () {
$(this).data(‘placeholder’, $(this).attr(‘placeholder’))
$(this).attr(‘placeholder’, ”);
});
$(‘#invitefriend’).blur(function () {
$(this).attr(‘placeholder’, $(this).data(‘placeholder’));
});
$(‘form#lostpass’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
useroremail = $(‘form#lostpass #useroremail’).val();
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
beforeSend: function () {
$(“.popup-row .loading-gif”).show();
},
data: {
‘action': ‘ajaxlostpass’,
‘useroremail': useroremail
},
success: function (data) {
$(‘p.status’).text(data.message);
$(“.popup-row .loading-gif”).hide();
}
});
e.preventDefault();
});
$(‘form#login, form#register’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
action = ‘ajaxlogin';
username = $(‘form#login #username’).val();
password = $(‘form#login #password’).val();
invitefriend = $(‘form#login #invitefriend’).val();
rememberme = false;
if ($(‘form#login #rememberme’).is(‘:checked’)) {
rememberme = true;
}
email = ”;
security = $(‘form#login #security’).val();
si_code_log = $(‘#si_code_log’).val();
captcha_code = $(‘#captcha_code’).val();
if ($(this).attr(‘id’) == ‘register’) {
if($(‘#profession’).val() == “please_select_pro”) {
$(‘#profession’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#profession’).css(‘border’,”);
}
if($(‘#areaofint’).val() == “please_select_aoi”) {
$(‘#areaofint’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#areaofint’).css(‘border’,”);
}
action = ‘ajaxregister';
firstname = $(‘#firstname’).val();
lastname = $(‘#lastname’).val();
//username = $(‘#signonname’).val();
password = $(‘#signonpassword’).val();
email = $(‘#email’).val();
security = $(‘#signonsecurity’).val();
countrycode = $(‘#countrycode’).val();
phonenumber = $(‘#phonenumber’).val();
profession = $(‘#profession’).val();
areaofint = $(‘#areaofint’).val();
dob = $(‘#dob’).val();
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘firstname': firstname,
‘lastname': lastname,
‘username': email,
‘password': password,
‘rememberme': rememberme,
‘invitefriend': invitefriend,
‘countrycode': countrycode,
‘phonenumber': phonenumber,
‘profession': profession,
‘areaofint': areaofint,
‘dob': dob,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(“#register .login-box h2″).text(“Thank You”);
$(“#register .login-box .status”).html(“Thank you for signing up with www.narendramodi.in, you will soon receive an activation link on your email, kindly confirm your registration.

Note: Please check your Spam and Promotions folder in case the verification email is missing in your Inbox.”);
$(“#register .login-box .popup-right”).hide();
$(“#register .login-box .popup-row”).hide();
$(“#register .login-box .bottom-row”).hide();
//document.location.href = window.location.href;
//$(‘p.status’, ctrl).text(data.message);
//if (data.loggedin == true) {
//}
$(“.popup-row .loading-gif”).hide();
setTimeout(function(){window.location.reload();}, 8000);
}
});
} else {
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘username': username,
‘password': password,
‘rememberme': rememberme,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(‘p.status’, ctrl).text(data.message);
if (data.loggedin == true) {
url = window.location.href;
url = url.slice( 0, url.indexOf(‘?’) );
document.location.href = url;
}
$(“.popup-row .loading-gif”).hide();
}
});
}

e.preventDefault();
});
if ($(“#register”).length) {
$(“#register”).validate({
rules: {
phonenumber: {
required: true,
number: true,
maxlength:10
},
}
});
}

if ($(“#login”).length) {
$(“#login”).validate();
}
if ($(“#lostpass”).length) {
$(“#lostpass”).validate();
}

// When you open reg form by default
var regval = getParameterByName(‘reg’);
if(regval == “wish”) {
$(‘body’).prepend(‘

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
}
var regval = getParameterByName(‘action’);
if(regval == “confirm”) {
$(‘body’).prepend(”);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#register’).fadeIn(500);
else
$(‘form#login’).fadeIn(500);
e.preventDefault();
}
// When you open reg form by default

});
$(‘form#login’).on(‘click’, function (e) {
var email = $(“#invitefriend”).val();
var valid_email_id = true
if (email.length 0) {
var email_reg = “[A-Za-z0-9._%-‘]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}”;
var re = new RegExp(‘^’ + email_reg + ‘(;\n*’ + email_reg + ‘)*;?$’);
var email_values = $(“#invitefriend”).val().trim();
var email_with_separator = email_values.replace(/[ ;,]+/g, “,”);
var email_array = email_with_separator.split(“,”);
var validate_email_id = email_array.map(function (str) {
return re.test(str);
});
var invalid_email_id_found = $.inArray(false, validate_email_id) -1;
if (invalid_email_id_found) {
valid_email_id = false
}
}
if (valid_email_id == false) {
$(“#invitefriend”).addClass(“required error”);
return false;
} else {
$(“#invitefriend”).removeClass();
}
});
$(function () {
$(‘#dob’).datepicker({
dateFormat: ‘yy-mm-dd’,
changeMonth: true,
changeYear: true,
yearRange: “1950:2015″,
maxDate: new Date()
});
$(‘#dob’).attr(‘readonly’, true);
$(‘#dob’).keypress(function (e) {
if (e.which != 8 e.which != 0 e.which != 45 (e.which 57)) {
return false;
}
});
});

Article source: http://www.narendramodi.in/pm-modi-leads-from-the-front-as-quake-rattles-nepal-india/

Cheque of Rs. 2 Crore towards PMNRF presented to PM

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
});
$(‘form#login .lost-password a’).on(‘click’, function (e) {
$(‘form#login’).fadeOut();
$(‘form#register’).fadeOut();
$(‘form#lostpass’).fadeIn();
e.preventDefault();
});
$(‘.invite_friends’).on(‘click’, function (e) {
$(‘.invitefriend’).fadeToggle();
e.preventDefault();
});
$(‘#invitefriend’).focus(function () {
$(this).data(‘placeholder’, $(this).attr(‘placeholder’))
$(this).attr(‘placeholder’, ”);
});
$(‘#invitefriend’).blur(function () {
$(this).attr(‘placeholder’, $(this).data(‘placeholder’));
});
$(‘form#lostpass’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
useroremail = $(‘form#lostpass #useroremail’).val();
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
beforeSend: function () {
$(“.popup-row .loading-gif”).show();
},
data: {
‘action': ‘ajaxlostpass’,
‘useroremail': useroremail
},
success: function (data) {
$(‘p.status’).text(data.message);
$(“.popup-row .loading-gif”).hide();
}
});
e.preventDefault();
});
$(‘form#login, form#register’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
action = ‘ajaxlogin';
username = $(‘form#login #username’).val();
password = $(‘form#login #password’).val();
invitefriend = $(‘form#login #invitefriend’).val();
rememberme = false;
if ($(‘form#login #rememberme’).is(‘:checked’)) {
rememberme = true;
}
email = ”;
security = $(‘form#login #security’).val();
si_code_log = $(‘#si_code_log’).val();
captcha_code = $(‘#captcha_code’).val();
if ($(this).attr(‘id’) == ‘register’) {
if($(‘#profession’).val() == “please_select_pro”) {
$(‘#profession’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#profession’).css(‘border’,”);
}
if($(‘#areaofint’).val() == “please_select_aoi”) {
$(‘#areaofint’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#areaofint’).css(‘border’,”);
}
action = ‘ajaxregister';
firstname = $(‘#firstname’).val();
lastname = $(‘#lastname’).val();
//username = $(‘#signonname’).val();
password = $(‘#signonpassword’).val();
email = $(‘#email’).val();
security = $(‘#signonsecurity’).val();
countrycode = $(‘#countrycode’).val();
phonenumber = $(‘#phonenumber’).val();
profession = $(‘#profession’).val();
areaofint = $(‘#areaofint’).val();
dob = $(‘#dob’).val();
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘firstname': firstname,
‘lastname': lastname,
‘username': email,
‘password': password,
‘rememberme': rememberme,
‘invitefriend': invitefriend,
‘countrycode': countrycode,
‘phonenumber': phonenumber,
‘profession': profession,
‘areaofint': areaofint,
‘dob': dob,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(“#register .login-box h2″).text(“Thank You”);
$(“#register .login-box .status”).html(“Thank you for signing up with www.narendramodi.in, you will soon receive an activation link on your email, kindly confirm your registration.

Note: Please check your Spam and Promotions folder in case the verification email is missing in your Inbox.”);
$(“#register .login-box .popup-right”).hide();
$(“#register .login-box .popup-row”).hide();
$(“#register .login-box .bottom-row”).hide();
//document.location.href = window.location.href;
//$(‘p.status’, ctrl).text(data.message);
//if (data.loggedin == true) {
//}
$(“.popup-row .loading-gif”).hide();
setTimeout(function(){window.location.reload();}, 8000);
}
});
} else {
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘username': username,
‘password': password,
‘rememberme': rememberme,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(‘p.status’, ctrl).text(data.message);
if (data.loggedin == true) {
url = window.location.href;
url = url.slice( 0, url.indexOf(‘?’) );
document.location.href = url;
}
$(“.popup-row .loading-gif”).hide();
}
});
}

e.preventDefault();
});
if ($(“#register”).length) {
$(“#register”).validate({
rules: {
phonenumber: {
required: true,
number: true,
maxlength:10
},
}
});
}

if ($(“#login”).length) {
$(“#login”).validate();
}
if ($(“#lostpass”).length) {
$(“#lostpass”).validate();
}

// When you open reg form by default
var regval = getParameterByName(‘reg’);
if(regval == “wish”) {
$(‘body’).prepend(‘

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
}
var regval = getParameterByName(‘action’);
if(regval == “confirm”) {
$(‘body’).prepend(”);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#register’).fadeIn(500);
else
$(‘form#login’).fadeIn(500);
e.preventDefault();
}
// When you open reg form by default

});
$(‘form#login’).on(‘click’, function (e) {
var email = $(“#invitefriend”).val();
var valid_email_id = true
if (email.length 0) {
var email_reg = “[A-Za-z0-9._%-‘]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}”;
var re = new RegExp(‘^’ + email_reg + ‘(;\n*’ + email_reg + ‘)*;?$’);
var email_values = $(“#invitefriend”).val().trim();
var email_with_separator = email_values.replace(/[ ;,]+/g, “,”);
var email_array = email_with_separator.split(“,”);
var validate_email_id = email_array.map(function (str) {
return re.test(str);
});
var invalid_email_id_found = $.inArray(false, validate_email_id) -1;
if (invalid_email_id_found) {
valid_email_id = false
}
}
if (valid_email_id == false) {
$(“#invitefriend”).addClass(“required error”);
return false;
} else {
$(“#invitefriend”).removeClass();
}
});
$(function () {
$(‘#dob’).datepicker({
dateFormat: ‘yy-mm-dd’,
changeMonth: true,
changeYear: true,
yearRange: “1950:2015″,
maxDate: new Date()
});
$(‘#dob’).attr(‘readonly’, true);
$(‘#dob’).keypress(function (e) {
if (e.which != 8 e.which != 0 e.which != 45 (e.which 57)) {
return false;
}
});
});

Article source: http://www.narendramodi.in/cheque-of-rs-2-crore-towards-pmnrf-presented-to-pm/

Compensation hiked to Rs. 6 lakh for the next of kin who lost their lives in earthquake

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
});
$(‘form#login .lost-password a’).on(‘click’, function (e) {
$(‘form#login’).fadeOut();
$(‘form#register’).fadeOut();
$(‘form#lostpass’).fadeIn();
e.preventDefault();
});
$(‘.invite_friends’).on(‘click’, function (e) {
$(‘.invitefriend’).fadeToggle();
e.preventDefault();
});
$(‘#invitefriend’).focus(function () {
$(this).data(‘placeholder’, $(this).attr(‘placeholder’))
$(this).attr(‘placeholder’, ”);
});
$(‘#invitefriend’).blur(function () {
$(this).attr(‘placeholder’, $(this).data(‘placeholder’));
});
$(‘form#lostpass’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
useroremail = $(‘form#lostpass #useroremail’).val();
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
beforeSend: function () {
$(“.popup-row .loading-gif”).show();
},
data: {
‘action': ‘ajaxlostpass’,
‘useroremail': useroremail
},
success: function (data) {
$(‘p.status’).text(data.message);
$(“.popup-row .loading-gif”).hide();
}
});
e.preventDefault();
});
$(‘form#login, form#register’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
action = ‘ajaxlogin';
username = $(‘form#login #username’).val();
password = $(‘form#login #password’).val();
invitefriend = $(‘form#login #invitefriend’).val();
rememberme = false;
if ($(‘form#login #rememberme’).is(‘:checked’)) {
rememberme = true;
}
email = ”;
security = $(‘form#login #security’).val();
si_code_log = $(‘#si_code_log’).val();
captcha_code = $(‘#captcha_code’).val();
if ($(this).attr(‘id’) == ‘register’) {
if($(‘#profession’).val() == “please_select_pro”) {
$(‘#profession’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#profession’).css(‘border’,”);
}
if($(‘#areaofint’).val() == “please_select_aoi”) {
$(‘#areaofint’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#areaofint’).css(‘border’,”);
}
action = ‘ajaxregister';
firstname = $(‘#firstname’).val();
lastname = $(‘#lastname’).val();
//username = $(‘#signonname’).val();
password = $(‘#signonpassword’).val();
email = $(‘#email’).val();
security = $(‘#signonsecurity’).val();
countrycode = $(‘#countrycode’).val();
phonenumber = $(‘#phonenumber’).val();
profession = $(‘#profession’).val();
areaofint = $(‘#areaofint’).val();
dob = $(‘#dob’).val();
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘firstname': firstname,
‘lastname': lastname,
‘username': email,
‘password': password,
‘rememberme': rememberme,
‘invitefriend': invitefriend,
‘countrycode': countrycode,
‘phonenumber': phonenumber,
‘profession': profession,
‘areaofint': areaofint,
‘dob': dob,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(“#register .login-box h2″).text(“Thank You”);
$(“#register .login-box .status”).html(“Thank you for signing up with www.narendramodi.in, you will soon receive an activation link on your email, kindly confirm your registration.

Note: Please check your Spam and Promotions folder in case the verification email is missing in your Inbox.”);
$(“#register .login-box .popup-right”).hide();
$(“#register .login-box .popup-row”).hide();
$(“#register .login-box .bottom-row”).hide();
//document.location.href = window.location.href;
//$(‘p.status’, ctrl).text(data.message);
//if (data.loggedin == true) {
//}
$(“.popup-row .loading-gif”).hide();
setTimeout(function(){window.location.reload();}, 8000);
}
});
} else {
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘username': username,
‘password': password,
‘rememberme': rememberme,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(‘p.status’, ctrl).text(data.message);
if (data.loggedin == true) {
url = window.location.href;
url = url.slice( 0, url.indexOf(‘?’) );
document.location.href = url;
}
$(“.popup-row .loading-gif”).hide();
}
});
}

e.preventDefault();
});
if ($(“#register”).length) {
$(“#register”).validate({
rules: {
phonenumber: {
required: true,
number: true,
maxlength:10
},
}
});
}

if ($(“#login”).length) {
$(“#login”).validate();
}
if ($(“#lostpass”).length) {
$(“#lostpass”).validate();
}

// When you open reg form by default
var regval = getParameterByName(‘reg’);
if(regval == “wish”) {
$(‘body’).prepend(‘

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
}
var regval = getParameterByName(‘action’);
if(regval == “confirm”) {
$(‘body’).prepend(”);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#register’).fadeIn(500);
else
$(‘form#login’).fadeIn(500);
e.preventDefault();
}
// When you open reg form by default

});
$(‘form#login’).on(‘click’, function (e) {
var email = $(“#invitefriend”).val();
var valid_email_id = true
if (email.length 0) {
var email_reg = “[A-Za-z0-9._%-‘]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}”;
var re = new RegExp(‘^’ + email_reg + ‘(;\n*’ + email_reg + ‘)*;?$’);
var email_values = $(“#invitefriend”).val().trim();
var email_with_separator = email_values.replace(/[ ;,]+/g, “,”);
var email_array = email_with_separator.split(“,”);
var validate_email_id = email_array.map(function (str) {
return re.test(str);
});
var invalid_email_id_found = $.inArray(false, validate_email_id) -1;
if (invalid_email_id_found) {
valid_email_id = false
}
}
if (valid_email_id == false) {
$(“#invitefriend”).addClass(“required error”);
return false;
} else {
$(“#invitefriend”).removeClass();
}
});
$(function () {
$(‘#dob’).datepicker({
dateFormat: ‘yy-mm-dd’,
changeMonth: true,
changeYear: true,
yearRange: “1950:2015″,
maxDate: new Date()
});
$(‘#dob’).attr(‘readonly’, true);
$(‘#dob’).keypress(function (e) {
if (e.which != 8 e.which != 0 e.which != 45 (e.which 57)) {
return false;
}
});
});

Article source: http://www.narendramodi.in/compensation-hiked-to-rs-6-lakh-for-the-next-of-kin-who-lost-their-lives-in-earthquake/

PM salutes resilience of people in Nepal and parts of India

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
});
$(‘form#login .lost-password a’).on(‘click’, function (e) {
$(‘form#login’).fadeOut();
$(‘form#register’).fadeOut();
$(‘form#lostpass’).fadeIn();
e.preventDefault();
});
$(‘.invite_friends’).on(‘click’, function (e) {
$(‘.invitefriend’).fadeToggle();
e.preventDefault();
});
$(‘#invitefriend’).focus(function () {
$(this).data(‘placeholder’, $(this).attr(‘placeholder’))
$(this).attr(‘placeholder’, ”);
});
$(‘#invitefriend’).blur(function () {
$(this).attr(‘placeholder’, $(this).data(‘placeholder’));
});
$(‘form#lostpass’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
useroremail = $(‘form#lostpass #useroremail’).val();
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
beforeSend: function () {
$(“.popup-row .loading-gif”).show();
},
data: {
‘action': ‘ajaxlostpass’,
‘useroremail': useroremail
},
success: function (data) {
$(‘p.status’).text(data.message);
$(“.popup-row .loading-gif”).hide();
}
});
e.preventDefault();
});
$(‘form#login, form#register’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
action = ‘ajaxlogin';
username = $(‘form#login #username’).val();
password = $(‘form#login #password’).val();
invitefriend = $(‘form#login #invitefriend’).val();
rememberme = false;
if ($(‘form#login #rememberme’).is(‘:checked’)) {
rememberme = true;
}
email = ”;
security = $(‘form#login #security’).val();
si_code_log = $(‘#si_code_log’).val();
captcha_code = $(‘#captcha_code’).val();
if ($(this).attr(‘id’) == ‘register’) {
if($(‘#profession’).val() == “please_select_pro”) {
$(‘#profession’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#profession’).css(‘border’,”);
}
if($(‘#areaofint’).val() == “please_select_aoi”) {
$(‘#areaofint’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#areaofint’).css(‘border’,”);
}
action = ‘ajaxregister';
firstname = $(‘#firstname’).val();
lastname = $(‘#lastname’).val();
//username = $(‘#signonname’).val();
password = $(‘#signonpassword’).val();
email = $(‘#email’).val();
security = $(‘#signonsecurity’).val();
countrycode = $(‘#countrycode’).val();
phonenumber = $(‘#phonenumber’).val();
profession = $(‘#profession’).val();
areaofint = $(‘#areaofint’).val();
dob = $(‘#dob’).val();
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘firstname': firstname,
‘lastname': lastname,
‘username': email,
‘password': password,
‘rememberme': rememberme,
‘invitefriend': invitefriend,
‘countrycode': countrycode,
‘phonenumber': phonenumber,
‘profession': profession,
‘areaofint': areaofint,
‘dob': dob,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(“#register .login-box h2″).text(“Thank You”);
$(“#register .login-box .status”).html(“Thank you for signing up with www.narendramodi.in, you will soon receive an activation link on your email, kindly confirm your registration.

Note: Please check your Spam and Promotions folder in case the verification email is missing in your Inbox.”);
$(“#register .login-box .popup-right”).hide();
$(“#register .login-box .popup-row”).hide();
$(“#register .login-box .bottom-row”).hide();
//document.location.href = window.location.href;
//$(‘p.status’, ctrl).text(data.message);
//if (data.loggedin == true) {
//}
$(“.popup-row .loading-gif”).hide();
setTimeout(function(){window.location.reload();}, 8000);
}
});
} else {
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘username': username,
‘password': password,
‘rememberme': rememberme,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(‘p.status’, ctrl).text(data.message);
if (data.loggedin == true) {
url = window.location.href;
url = url.slice( 0, url.indexOf(‘?’) );
document.location.href = url;
}
$(“.popup-row .loading-gif”).hide();
}
});
}

e.preventDefault();
});
if ($(“#register”).length) {
$(“#register”).validate({
rules: {
phonenumber: {
required: true,
number: true,
maxlength:10
},
}
});
}

if ($(“#login”).length) {
$(“#login”).validate();
}
if ($(“#lostpass”).length) {
$(“#lostpass”).validate();
}

// When you open reg form by default
var regval = getParameterByName(‘reg’);
if(regval == “wish”) {
$(‘body’).prepend(‘

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
}
var regval = getParameterByName(‘action’);
if(regval == “confirm”) {
$(‘body’).prepend(”);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#register’).fadeIn(500);
else
$(‘form#login’).fadeIn(500);
e.preventDefault();
}
// When you open reg form by default

});
$(‘form#login’).on(‘click’, function (e) {
var email = $(“#invitefriend”).val();
var valid_email_id = true
if (email.length 0) {
var email_reg = “[A-Za-z0-9._%-‘]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}”;
var re = new RegExp(‘^’ + email_reg + ‘(;\n*’ + email_reg + ‘)*;?$’);
var email_values = $(“#invitefriend”).val().trim();
var email_with_separator = email_values.replace(/[ ;,]+/g, “,”);
var email_array = email_with_separator.split(“,”);
var validate_email_id = email_array.map(function (str) {
return re.test(str);
});
var invalid_email_id_found = $.inArray(false, validate_email_id) -1;
if (invalid_email_id_found) {
valid_email_id = false
}
}
if (valid_email_id == false) {
$(“#invitefriend”).addClass(“required error”);
return false;
} else {
$(“#invitefriend”).removeClass();
}
});
$(function () {
$(‘#dob’).datepicker({
dateFormat: ‘yy-mm-dd’,
changeMonth: true,
changeYear: true,
yearRange: “1950:2015″,
maxDate: new Date()
});
$(‘#dob’).attr(‘readonly’, true);
$(‘#dob’).keypress(function (e) {
if (e.which != 8 e.which != 0 e.which != 45 (e.which 57)) {
return false;
}
});
});

Article source: http://www.narendramodi.in/pm-salutes-resilience-of-people-in-nepal-and-parts-of-india/

Open-Water Swimmer Bhakti Sharma calls on PM

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
});
$(‘form#login .lost-password a’).on(‘click’, function (e) {
$(‘form#login’).fadeOut();
$(‘form#register’).fadeOut();
$(‘form#lostpass’).fadeIn();
e.preventDefault();
});
$(‘.invite_friends’).on(‘click’, function (e) {
$(‘.invitefriend’).fadeToggle();
e.preventDefault();
});
$(‘#invitefriend’).focus(function () {
$(this).data(‘placeholder’, $(this).attr(‘placeholder’))
$(this).attr(‘placeholder’, ”);
});
$(‘#invitefriend’).blur(function () {
$(this).attr(‘placeholder’, $(this).data(‘placeholder’));
});
$(‘form#lostpass’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
useroremail = $(‘form#lostpass #useroremail’).val();
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
beforeSend: function () {
$(“.popup-row .loading-gif”).show();
},
data: {
‘action': ‘ajaxlostpass’,
‘useroremail': useroremail
},
success: function (data) {
$(‘p.status’).text(data.message);
$(“.popup-row .loading-gif”).hide();
}
});
e.preventDefault();
});
$(‘form#login, form#register’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
action = ‘ajaxlogin';
username = $(‘form#login #username’).val();
password = $(‘form#login #password’).val();
invitefriend = $(‘form#login #invitefriend’).val();
rememberme = false;
if ($(‘form#login #rememberme’).is(‘:checked’)) {
rememberme = true;
}
email = ”;
security = $(‘form#login #security’).val();
si_code_log = $(‘#si_code_log’).val();
captcha_code = $(‘#captcha_code’).val();
if ($(this).attr(‘id’) == ‘register’) {
if($(‘#profession’).val() == “please_select_pro”) {
$(‘#profession’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#profession’).css(‘border’,”);
}
if($(‘#areaofint’).val() == “please_select_aoi”) {
$(‘#areaofint’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#areaofint’).css(‘border’,”);
}
action = ‘ajaxregister';
firstname = $(‘#firstname’).val();
lastname = $(‘#lastname’).val();
//username = $(‘#signonname’).val();
password = $(‘#signonpassword’).val();
email = $(‘#email’).val();
security = $(‘#signonsecurity’).val();
countrycode = $(‘#countrycode’).val();
phonenumber = $(‘#phonenumber’).val();
profession = $(‘#profession’).val();
areaofint = $(‘#areaofint’).val();
dob = $(‘#dob’).val();
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘firstname': firstname,
‘lastname': lastname,
‘username': email,
‘password': password,
‘rememberme': rememberme,
‘invitefriend': invitefriend,
‘countrycode': countrycode,
‘phonenumber': phonenumber,
‘profession': profession,
‘areaofint': areaofint,
‘dob': dob,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(“#register .login-box h2″).text(“Thank You”);
$(“#register .login-box .status”).html(“Thank you for signing up with www.narendramodi.in, you will soon receive an activation link on your email, kindly confirm your registration.

Note: Please check your Spam and Promotions folder in case the verification email is missing in your Inbox.”);
$(“#register .login-box .popup-right”).hide();
$(“#register .login-box .popup-row”).hide();
$(“#register .login-box .bottom-row”).hide();
//document.location.href = window.location.href;
//$(‘p.status’, ctrl).text(data.message);
//if (data.loggedin == true) {
//}
$(“.popup-row .loading-gif”).hide();
setTimeout(function(){window.location.reload();}, 8000);
}
});
} else {
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘username': username,
‘password': password,
‘rememberme': rememberme,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(‘p.status’, ctrl).text(data.message);
if (data.loggedin == true) {
url = window.location.href;
url = url.slice( 0, url.indexOf(‘?’) );
document.location.href = url;
}
$(“.popup-row .loading-gif”).hide();
}
});
}

e.preventDefault();
});
if ($(“#register”).length) {
$(“#register”).validate({
rules: {
phonenumber: {
required: true,
number: true,
maxlength:10
},
}
});
}

if ($(“#login”).length) {
$(“#login”).validate();
}
if ($(“#lostpass”).length) {
$(“#lostpass”).validate();
}

// When you open reg form by default
var regval = getParameterByName(‘reg’);
if(regval == “wish”) {
$(‘body’).prepend(‘

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
}
var regval = getParameterByName(‘action’);
if(regval == “confirm”) {
$(‘body’).prepend(”);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#register’).fadeIn(500);
else
$(‘form#login’).fadeIn(500);
e.preventDefault();
}
// When you open reg form by default

});
$(‘form#login’).on(‘click’, function (e) {
var email = $(“#invitefriend”).val();
var valid_email_id = true
if (email.length 0) {
var email_reg = “[A-Za-z0-9._%-‘]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}”;
var re = new RegExp(‘^’ + email_reg + ‘(;\n*’ + email_reg + ‘)*;?$’);
var email_values = $(“#invitefriend”).val().trim();
var email_with_separator = email_values.replace(/[ ;,]+/g, “,”);
var email_array = email_with_separator.split(“,”);
var validate_email_id = email_array.map(function (str) {
return re.test(str);
});
var invalid_email_id_found = $.inArray(false, validate_email_id) -1;
if (invalid_email_id_found) {
valid_email_id = false
}
}
if (valid_email_id == false) {
$(“#invitefriend”).addClass(“required error”);
return false;
} else {
$(“#invitefriend”).removeClass();
}
});
$(function () {
$(‘#dob’).datepicker({
dateFormat: ‘yy-mm-dd’,
changeMonth: true,
changeYear: true,
yearRange: “1950:2015″,
maxDate: new Date()
});
$(‘#dob’).attr(‘readonly’, true);
$(‘#dob’).keypress(function (e) {
if (e.which != 8 e.which != 0 e.which != 45 (e.which 57)) {
return false;
}
});
});

Article source: http://www.narendramodi.in/open-water-swimmer-bhakti-sharma-calls-on-pm/

PM Interacts with Young Artificial Limbs Beneficiaries

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
});
$(‘form#login .lost-password a’).on(‘click’, function (e) {
$(‘form#login’).fadeOut();
$(‘form#register’).fadeOut();
$(‘form#lostpass’).fadeIn();
e.preventDefault();
});
$(‘.invite_friends’).on(‘click’, function (e) {
$(‘.invitefriend’).fadeToggle();
e.preventDefault();
});
$(‘#invitefriend’).focus(function () {
$(this).data(‘placeholder’, $(this).attr(‘placeholder’))
$(this).attr(‘placeholder’, ”);
});
$(‘#invitefriend’).blur(function () {
$(this).attr(‘placeholder’, $(this).data(‘placeholder’));
});
$(‘form#lostpass’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
useroremail = $(‘form#lostpass #useroremail’).val();
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
beforeSend: function () {
$(“.popup-row .loading-gif”).show();
},
data: {
‘action': ‘ajaxlostpass’,
‘useroremail': useroremail
},
success: function (data) {
$(‘p.status’).text(data.message);
$(“.popup-row .loading-gif”).hide();
}
});
e.preventDefault();
});
$(‘form#login, form#register’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
action = ‘ajaxlogin';
username = $(‘form#login #username’).val();
password = $(‘form#login #password’).val();
invitefriend = $(‘form#login #invitefriend’).val();
rememberme = false;
if ($(‘form#login #rememberme’).is(‘:checked’)) {
rememberme = true;
}
email = ”;
security = $(‘form#login #security’).val();
si_code_log = $(‘#si_code_log’).val();
captcha_code = $(‘#captcha_code’).val();
if ($(this).attr(‘id’) == ‘register’) {
if($(‘#profession’).val() == “please_select_pro”) {
$(‘#profession’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#profession’).css(‘border’,”);
}
if($(‘#areaofint’).val() == “please_select_aoi”) {
$(‘#areaofint’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#areaofint’).css(‘border’,”);
}
action = ‘ajaxregister';
firstname = $(‘#firstname’).val();
lastname = $(‘#lastname’).val();
//username = $(‘#signonname’).val();
password = $(‘#signonpassword’).val();
email = $(‘#email’).val();
security = $(‘#signonsecurity’).val();
countrycode = $(‘#countrycode’).val();
phonenumber = $(‘#phonenumber’).val();
profession = $(‘#profession’).val();
areaofint = $(‘#areaofint’).val();
dob = $(‘#dob’).val();
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘firstname': firstname,
‘lastname': lastname,
‘username': email,
‘password': password,
‘rememberme': rememberme,
‘invitefriend': invitefriend,
‘countrycode': countrycode,
‘phonenumber': phonenumber,
‘profession': profession,
‘areaofint': areaofint,
‘dob': dob,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(“#register .login-box h2″).text(“Thank You”);
$(“#register .login-box .status”).html(“Thank you for signing up with www.narendramodi.in, you will soon receive an activation link on your email, kindly confirm your registration.

Note: Please check your Spam and Promotions folder in case the verification email is missing in your Inbox.”);
$(“#register .login-box .popup-right”).hide();
$(“#register .login-box .popup-row”).hide();
$(“#register .login-box .bottom-row”).hide();
//document.location.href = window.location.href;
//$(‘p.status’, ctrl).text(data.message);
//if (data.loggedin == true) {
//}
$(“.popup-row .loading-gif”).hide();
setTimeout(function(){window.location.reload();}, 8000);
}
});
} else {
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘username': username,
‘password': password,
‘rememberme': rememberme,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(‘p.status’, ctrl).text(data.message);
if (data.loggedin == true) {
url = window.location.href;
url = url.slice( 0, url.indexOf(‘?’) );
document.location.href = url;
}
$(“.popup-row .loading-gif”).hide();
}
});
}

e.preventDefault();
});
if ($(“#register”).length) {
$(“#register”).validate({
rules: {
phonenumber: {
required: true,
number: true,
maxlength:10
},
}
});
}

if ($(“#login”).length) {
$(“#login”).validate();
}
if ($(“#lostpass”).length) {
$(“#lostpass”).validate();
}

// When you open reg form by default
var regval = getParameterByName(‘reg’);
if(regval == “wish”) {
$(‘body’).prepend(‘

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
}
var regval = getParameterByName(‘action’);
if(regval == “confirm”) {
$(‘body’).prepend(”);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#register’).fadeIn(500);
else
$(‘form#login’).fadeIn(500);
e.preventDefault();
}
// When you open reg form by default

});
$(‘form#login’).on(‘click’, function (e) {
var email = $(“#invitefriend”).val();
var valid_email_id = true
if (email.length 0) {
var email_reg = “[A-Za-z0-9._%-‘]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}”;
var re = new RegExp(‘^’ + email_reg + ‘(;\n*’ + email_reg + ‘)*;?$’);
var email_values = $(“#invitefriend”).val().trim();
var email_with_separator = email_values.replace(/[ ;,]+/g, “,”);
var email_array = email_with_separator.split(“,”);
var validate_email_id = email_array.map(function (str) {
return re.test(str);
});
var invalid_email_id_found = $.inArray(false, validate_email_id) -1;
if (invalid_email_id_found) {
valid_email_id = false
}
}
if (valid_email_id == false) {
$(“#invitefriend”).addClass(“required error”);
return false;
} else {
$(“#invitefriend”).removeClass();
}
});
$(function () {
$(‘#dob’).datepicker({
dateFormat: ‘yy-mm-dd’,
changeMonth: true,
changeYear: true,
yearRange: “1950:2015″,
maxDate: new Date()
});
$(‘#dob’).attr(‘readonly’, true);
$(‘#dob’).keypress(function (e) {
if (e.which != 8 e.which != 0 e.which != 45 (e.which 57)) {
return false;
}
});
});

Article source: http://www.narendramodi.in/pm-interacts-with-young-artificial-limbs-beneficiaries/

PM donates one month salary to PMNRF

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
});
$(‘form#login .lost-password a’).on(‘click’, function (e) {
$(‘form#login’).fadeOut();
$(‘form#register’).fadeOut();
$(‘form#lostpass’).fadeIn();
e.preventDefault();
});
$(‘.invite_friends’).on(‘click’, function (e) {
$(‘.invitefriend’).fadeToggle();
e.preventDefault();
});
$(‘#invitefriend’).focus(function () {
$(this).data(‘placeholder’, $(this).attr(‘placeholder’))
$(this).attr(‘placeholder’, ”);
});
$(‘#invitefriend’).blur(function () {
$(this).attr(‘placeholder’, $(this).data(‘placeholder’));
});
$(‘form#lostpass’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
useroremail = $(‘form#lostpass #useroremail’).val();
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
beforeSend: function () {
$(“.popup-row .loading-gif”).show();
},
data: {
‘action': ‘ajaxlostpass’,
‘useroremail': useroremail
},
success: function (data) {
$(‘p.status’).text(data.message);
$(“.popup-row .loading-gif”).hide();
}
});
e.preventDefault();
});
$(‘form#login, form#register’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
action = ‘ajaxlogin';
username = $(‘form#login #username’).val();
password = $(‘form#login #password’).val();
invitefriend = $(‘form#login #invitefriend’).val();
rememberme = false;
if ($(‘form#login #rememberme’).is(‘:checked’)) {
rememberme = true;
}
email = ”;
security = $(‘form#login #security’).val();
si_code_log = $(‘#si_code_log’).val();
captcha_code = $(‘#captcha_code’).val();
if ($(this).attr(‘id’) == ‘register’) {
if($(‘#profession’).val() == “please_select_pro”) {
$(‘#profession’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#profession’).css(‘border’,”);
}
if($(‘#areaofint’).val() == “please_select_aoi”) {
$(‘#areaofint’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#areaofint’).css(‘border’,”);
}
action = ‘ajaxregister';
firstname = $(‘#firstname’).val();
lastname = $(‘#lastname’).val();
//username = $(‘#signonname’).val();
password = $(‘#signonpassword’).val();
email = $(‘#email’).val();
security = $(‘#signonsecurity’).val();
countrycode = $(‘#countrycode’).val();
phonenumber = $(‘#phonenumber’).val();
profession = $(‘#profession’).val();
areaofint = $(‘#areaofint’).val();
dob = $(‘#dob’).val();
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘firstname': firstname,
‘lastname': lastname,
‘username': email,
‘password': password,
‘rememberme': rememberme,
‘invitefriend': invitefriend,
‘countrycode': countrycode,
‘phonenumber': phonenumber,
‘profession': profession,
‘areaofint': areaofint,
‘dob': dob,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(“#register .login-box h2″).text(“Thank You”);
$(“#register .login-box .status”).html(“Thank you for signing up with www.narendramodi.in, you will soon receive an activation link on your email, kindly confirm your registration.

Note: Please check your Spam and Promotions folder in case the verification email is missing in your Inbox.”);
$(“#register .login-box .popup-right”).hide();
$(“#register .login-box .popup-row”).hide();
$(“#register .login-box .bottom-row”).hide();
//document.location.href = window.location.href;
//$(‘p.status’, ctrl).text(data.message);
//if (data.loggedin == true) {
//}
$(“.popup-row .loading-gif”).hide();
setTimeout(function(){window.location.reload();}, 8000);
}
});
} else {
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘username': username,
‘password': password,
‘rememberme': rememberme,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(‘p.status’, ctrl).text(data.message);
if (data.loggedin == true) {
url = window.location.href;
url = url.slice( 0, url.indexOf(‘?’) );
document.location.href = url;
}
$(“.popup-row .loading-gif”).hide();
}
});
}

e.preventDefault();
});
if ($(“#register”).length) {
$(“#register”).validate({
rules: {
phonenumber: {
required: true,
number: true,
maxlength:10
},
}
});
}

if ($(“#login”).length) {
$(“#login”).validate();
}
if ($(“#lostpass”).length) {
$(“#lostpass”).validate();
}

// When you open reg form by default
var regval = getParameterByName(‘reg’);
if(regval == “wish”) {
$(‘body’).prepend(‘

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
}
var regval = getParameterByName(‘action’);
if(regval == “confirm”) {
$(‘body’).prepend(”);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#register’).fadeIn(500);
else
$(‘form#login’).fadeIn(500);
e.preventDefault();
}
// When you open reg form by default

});
$(‘form#login’).on(‘click’, function (e) {
var email = $(“#invitefriend”).val();
var valid_email_id = true
if (email.length 0) {
var email_reg = “[A-Za-z0-9._%-‘]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}”;
var re = new RegExp(‘^’ + email_reg + ‘(;\n*’ + email_reg + ‘)*;?$’);
var email_values = $(“#invitefriend”).val().trim();
var email_with_separator = email_values.replace(/[ ;,]+/g, “,”);
var email_array = email_with_separator.split(“,”);
var validate_email_id = email_array.map(function (str) {
return re.test(str);
});
var invalid_email_id_found = $.inArray(false, validate_email_id) -1;
if (invalid_email_id_found) {
valid_email_id = false
}
}
if (valid_email_id == false) {
$(“#invitefriend”).addClass(“required error”);
return false;
} else {
$(“#invitefriend”).removeClass();
}
});
$(function () {
$(‘#dob’).datepicker({
dateFormat: ‘yy-mm-dd’,
changeMonth: true,
changeYear: true,
yearRange: “1950:2015″,
maxDate: new Date()
});
$(‘#dob’).attr(‘readonly’, true);
$(‘#dob’).keypress(function (e) {
if (e.which != 8 e.which != 0 e.which != 45 (e.which 57)) {
return false;
}
});
});

Article source: http://www.narendramodi.in/pm-donates-one-month-salary-to-pmnrf/

Foreign Minister of Spain calls on PM

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
});
$(‘form#login .lost-password a’).on(‘click’, function (e) {
$(‘form#login’).fadeOut();
$(‘form#register’).fadeOut();
$(‘form#lostpass’).fadeIn();
e.preventDefault();
});
$(‘.invite_friends’).on(‘click’, function (e) {
$(‘.invitefriend’).fadeToggle();
e.preventDefault();
});
$(‘#invitefriend’).focus(function () {
$(this).data(‘placeholder’, $(this).attr(‘placeholder’))
$(this).attr(‘placeholder’, ”);
});
$(‘#invitefriend’).blur(function () {
$(this).attr(‘placeholder’, $(this).data(‘placeholder’));
});
$(‘form#lostpass’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
useroremail = $(‘form#lostpass #useroremail’).val();
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
beforeSend: function () {
$(“.popup-row .loading-gif”).show();
},
data: {
‘action': ‘ajaxlostpass’,
‘useroremail': useroremail
},
success: function (data) {
$(‘p.status’).text(data.message);
$(“.popup-row .loading-gif”).hide();
}
});
e.preventDefault();
});
$(‘form#login, form#register’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
action = ‘ajaxlogin';
username = $(‘form#login #username’).val();
password = $(‘form#login #password’).val();
invitefriend = $(‘form#login #invitefriend’).val();
rememberme = false;
if ($(‘form#login #rememberme’).is(‘:checked’)) {
rememberme = true;
}
email = ”;
security = $(‘form#login #security’).val();
si_code_log = $(‘#si_code_log’).val();
captcha_code = $(‘#captcha_code’).val();
if ($(this).attr(‘id’) == ‘register’) {
if($(‘#profession’).val() == “please_select_pro”) {
$(‘#profession’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#profession’).css(‘border’,”);
}
if($(‘#areaofint’).val() == “please_select_aoi”) {
$(‘#areaofint’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#areaofint’).css(‘border’,”);
}
action = ‘ajaxregister';
firstname = $(‘#firstname’).val();
lastname = $(‘#lastname’).val();
//username = $(‘#signonname’).val();
password = $(‘#signonpassword’).val();
email = $(‘#email’).val();
security = $(‘#signonsecurity’).val();
countrycode = $(‘#countrycode’).val();
phonenumber = $(‘#phonenumber’).val();
profession = $(‘#profession’).val();
areaofint = $(‘#areaofint’).val();
dob = $(‘#dob’).val();
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘firstname': firstname,
‘lastname': lastname,
‘username': email,
‘password': password,
‘rememberme': rememberme,
‘invitefriend': invitefriend,
‘countrycode': countrycode,
‘phonenumber': phonenumber,
‘profession': profession,
‘areaofint': areaofint,
‘dob': dob,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(“#register .login-box h2″).text(“Thank You”);
$(“#register .login-box .status”).html(“Thank you for signing up with www.narendramodi.in, you will soon receive an activation link on your email, kindly confirm your registration.

Note: Please check your Spam and Promotions folder in case the verification email is missing in your Inbox.”);
$(“#register .login-box .popup-right”).hide();
$(“#register .login-box .popup-row”).hide();
$(“#register .login-box .bottom-row”).hide();
//document.location.href = window.location.href;
//$(‘p.status’, ctrl).text(data.message);
//if (data.loggedin == true) {
//}
$(“.popup-row .loading-gif”).hide();
setTimeout(function(){window.location.reload();}, 8000);
}
});
} else {
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘username': username,
‘password': password,
‘rememberme': rememberme,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(‘p.status’, ctrl).text(data.message);
if (data.loggedin == true) {
url = window.location.href;
url = url.slice( 0, url.indexOf(‘?’) );
document.location.href = url;
}
$(“.popup-row .loading-gif”).hide();
}
});
}

e.preventDefault();
});
if ($(“#register”).length) {
$(“#register”).validate({
rules: {
phonenumber: {
required: true,
number: true,
maxlength:10
},
}
});
}

if ($(“#login”).length) {
$(“#login”).validate();
}
if ($(“#lostpass”).length) {
$(“#lostpass”).validate();
}

// When you open reg form by default
var regval = getParameterByName(‘reg’);
if(regval == “wish”) {
$(‘body’).prepend(‘

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
}
var regval = getParameterByName(‘action’);
if(regval == “confirm”) {
$(‘body’).prepend(”);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#register’).fadeIn(500);
else
$(‘form#login’).fadeIn(500);
e.preventDefault();
}
// When you open reg form by default

});
$(‘form#login’).on(‘click’, function (e) {
var email = $(“#invitefriend”).val();
var valid_email_id = true
if (email.length 0) {
var email_reg = “[A-Za-z0-9._%-‘]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}”;
var re = new RegExp(‘^’ + email_reg + ‘(;\n*’ + email_reg + ‘)*;?$’);
var email_values = $(“#invitefriend”).val().trim();
var email_with_separator = email_values.replace(/[ ;,]+/g, “,”);
var email_array = email_with_separator.split(“,”);
var validate_email_id = email_array.map(function (str) {
return re.test(str);
});
var invalid_email_id_found = $.inArray(false, validate_email_id) -1;
if (invalid_email_id_found) {
valid_email_id = false
}
}
if (valid_email_id == false) {
$(“#invitefriend”).addClass(“required error”);
return false;
} else {
$(“#invitefriend”).removeClass();
}
});
$(function () {
$(‘#dob’).datepicker({
dateFormat: ‘yy-mm-dd’,
changeMonth: true,
changeYear: true,
yearRange: “1950:2015″,
maxDate: new Date()
});
$(‘#dob’).attr(‘readonly’, true);
$(‘#dob’).keypress(function (e) {
if (e.which != 8 e.which != 0 e.which != 45 (e.which 57)) {
return false;
}
});
});

Article source: http://www.narendramodi.in/foreign-minister-of-spain-calls-on-pm/

IOC President meets PM

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
});
$(‘form#login .lost-password a’).on(‘click’, function (e) {
$(‘form#login’).fadeOut();
$(‘form#register’).fadeOut();
$(‘form#lostpass’).fadeIn();
e.preventDefault();
});
$(‘.invite_friends’).on(‘click’, function (e) {
$(‘.invitefriend’).fadeToggle();
e.preventDefault();
});
$(‘#invitefriend’).focus(function () {
$(this).data(‘placeholder’, $(this).attr(‘placeholder’))
$(this).attr(‘placeholder’, ”);
});
$(‘#invitefriend’).blur(function () {
$(this).attr(‘placeholder’, $(this).data(‘placeholder’));
});
$(‘form#lostpass’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
useroremail = $(‘form#lostpass #useroremail’).val();
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
beforeSend: function () {
$(“.popup-row .loading-gif”).show();
},
data: {
‘action': ‘ajaxlostpass’,
‘useroremail': useroremail
},
success: function (data) {
$(‘p.status’).text(data.message);
$(“.popup-row .loading-gif”).hide();
}
});
e.preventDefault();
});
$(‘form#login, form#register’).on(‘submit’, function (e) {
if (!$(this).valid())
return false;
action = ‘ajaxlogin';
username = $(‘form#login #username’).val();
password = $(‘form#login #password’).val();
invitefriend = $(‘form#login #invitefriend’).val();
rememberme = false;
if ($(‘form#login #rememberme’).is(‘:checked’)) {
rememberme = true;
}
email = ”;
security = $(‘form#login #security’).val();
si_code_log = $(‘#si_code_log’).val();
captcha_code = $(‘#captcha_code’).val();
if ($(this).attr(‘id’) == ‘register’) {
if($(‘#profession’).val() == “please_select_pro”) {
$(‘#profession’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#profession’).css(‘border’,”);
}
if($(‘#areaofint’).val() == “please_select_aoi”) {
$(‘#areaofint’).css(‘border’,’1px solid #ff0000′);
return false;
}else {
$(‘#areaofint’).css(‘border’,”);
}
action = ‘ajaxregister';
firstname = $(‘#firstname’).val();
lastname = $(‘#lastname’).val();
//username = $(‘#signonname’).val();
password = $(‘#signonpassword’).val();
email = $(‘#email’).val();
security = $(‘#signonsecurity’).val();
countrycode = $(‘#countrycode’).val();
phonenumber = $(‘#phonenumber’).val();
profession = $(‘#profession’).val();
areaofint = $(‘#areaofint’).val();
dob = $(‘#dob’).val();
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘firstname': firstname,
‘lastname': lastname,
‘username': email,
‘password': password,
‘rememberme': rememberme,
‘invitefriend': invitefriend,
‘countrycode': countrycode,
‘phonenumber': phonenumber,
‘profession': profession,
‘areaofint': areaofint,
‘dob': dob,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(“#register .login-box h2″).text(“Thank You”);
$(“#register .login-box .status”).html(“Thank you for signing up with www.narendramodi.in, you will soon receive an activation link on your email, kindly confirm your registration.

Note: Please check your Spam and Promotions folder in case the verification email is missing in your Inbox.”);
$(“#register .login-box .popup-right”).hide();
$(“#register .login-box .popup-row”).hide();
$(“#register .login-box .bottom-row”).hide();
//document.location.href = window.location.href;
//$(‘p.status’, ctrl).text(data.message);
//if (data.loggedin == true) {
//}
$(“.popup-row .loading-gif”).hide();
setTimeout(function(){window.location.reload();}, 8000);
}
});
} else {
ctrl = $(this);
$.ajax({
type: ‘POST’,
dataType: ‘json’,
url: ‘http://www.narendramodi.in/wp-admin/admin-login-ajax.php’,
data: {
‘action': action,
‘username': username,
‘password': password,
‘rememberme': rememberme,
‘email': email,
‘security': security,
‘si_code_log': si_code_log,
‘captcha_code': captcha_code
},
beforeSend: function () {
$(“.popup-row .loading-gif”).css({“display”: “inline-block”});
},
success: function (data) {
$(‘p.status’, ctrl).text(data.message);
if (data.loggedin == true) {
url = window.location.href;
url = url.slice( 0, url.indexOf(‘?’) );
document.location.href = url;
}
$(“.popup-row .loading-gif”).hide();
}
});
}

e.preventDefault();
});
if ($(“#register”).length) {
$(“#register”).validate({
rules: {
phonenumber: {
required: true,
number: true,
maxlength:10
},
}
});
}

if ($(“#login”).length) {
$(“#login”).validate();
}
if ($(“#lostpass”).length) {
$(“#lostpass”).validate();
}

// When you open reg form by default
var regval = getParameterByName(‘reg’);
if(regval == “wish”) {
$(‘body’).prepend(‘

‘);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#login’).fadeIn(500);
else
$(‘form#register’).fadeIn(500);
e.preventDefault();
}
var regval = getParameterByName(‘action’);
if(regval == “confirm”) {
$(‘body’).prepend(”);
if ($(this).attr(‘id’) == ‘show_login’)
$(‘form#register’).fadeIn(500);
else
$(‘form#login’).fadeIn(500);
e.preventDefault();
}
// When you open reg form by default

});
$(‘form#login’).on(‘click’, function (e) {
var email = $(“#invitefriend”).val();
var valid_email_id = true
if (email.length 0) {
var email_reg = “[A-Za-z0-9._%-‘]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}”;
var re = new RegExp(‘^’ + email_reg + ‘(;\n*’ + email_reg + ‘)*;?$’);
var email_values = $(“#invitefriend”).val().trim();
var email_with_separator = email_values.replace(/[ ;,]+/g, “,”);
var email_array = email_with_separator.split(“,”);
var validate_email_id = email_array.map(function (str) {
return re.test(str);
});
var invalid_email_id_found = $.inArray(false, validate_email_id) -1;
if (invalid_email_id_found) {
valid_email_id = false
}
}
if (valid_email_id == false) {
$(“#invitefriend”).addClass(“required error”);
return false;
} else {
$(“#invitefriend”).removeClass();
}
});
$(function () {
$(‘#dob’).datepicker({
dateFormat: ‘yy-mm-dd’,
changeMonth: true,
changeYear: true,
yearRange: “1950:2015″,
maxDate: new Date()
});
$(‘#dob’).attr(‘readonly’, true);
$(‘#dob’).keypress(function (e) {
if (e.which != 8 e.which != 0 e.which != 45 (e.which 57)) {
return false;
}
});
});

Article source: http://www.narendramodi.in/ioc-president-meets-pm/