PM Narendra Modi makes blockbuster debut on Sina Weibo

‘);
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;
}
});
});

Prime Minister’s visit to China, Mongolia and Republic of Korea (May 14-19, 2015)

‘);
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;
}
});
});

PM congratulates Mr. Nursultan Nazarbayev, on his re-election as the President of the Republic of Kazakhstan

‘);
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;
}
});
});

BJP workers, residents clean Ganga’s banks in Varanasi

‘);
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;
}
});
});

French investments in India to grow at 10%, says envoy

‘);
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;
}
});
});

Yoga on the Hill: Washington embraces PM Modi’s initiative, 60 congressmen take part

‘);
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;
}
});
});

PM greets the people on the auspicious occasion of Buddha Purnima

‘);
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;
}
});
});

PM Narendra Modi now on Weibo!

In a move that will enhance communication with sisters and brothers of China, Prime Minister of India Shri Narendra Modi made a debut on the Chinese social media platform, Weibo. This is first of a kind attempt by any leader across India.

PM Narendra Modi shared his first post on the platform: “Hello China! Looking forward to interacting with Chinese friends  through Weibo”.

684-PM Narendra Modi now on Weibo

This Indian Prime Minister is an avid and active user of social media for several years now. He has used diverse social media platforms to reach out to people across India and the world. From sharing updates on working of the government, policy deliberations, his own thoughts, greetings and replies to well-wishers, the Indian PM’s social media outreach has been lauded all over the world. He has also been using info-graphics and videos to share the various efforts of the Indian government in the past one year.

The Prime Minister’s Office also maintains a strong presence on social media. This is in sync with the PM’s vision of a digital India, where technology plays a pivotal role in Governance and policy making.

Mr Modi would be visiting China later this month on a bilateral visit. In September 2014, he welcomed President Xi Jinping on a visit to India. Later in November 2014 the Prime Minister met Premier Le Keqiang in Myanmar. Both meetings were very productive and the leaders discussed several ways to enhance ties between India and China. As Chief Minister of the western state of Gujarat, Mr Modi had travelled to China in November 2011 as well.

莫迪总理加入微博!

莫迪总理开通微博

在微博联系莫迪总理:http://weibo.com/u/5581682776

为了加强与中国兄弟姐妹的沟通,印度总理纳兰德拉·莫迪开通了微博。莫迪总理是印度第一位开通微博的领导。

莫迪总理在微博上第一个发贴说:“你好中国!期待通过微博与中国朋友们互动”

几年来这位印度总理热衷活跃地使用社交媒体,通过各种社交媒体平台与印度和世界人民联系。他在社交媒体分享政府工作、政策协商、他本人的想法、对他人的祝贺以及对祝福着的回复,世界各界关注并赞赏这一点。他还使用信息图表及视频来分享解释印度政府过去一年的工作。

总理办公室也在社交媒体上非常活跃。这就符合总理对于一个“数字印度”的展望,技术在治理和制定政策上发挥关键作用。

本月莫迪总理将访华。2014年9月他在印度接待习近平主席,2014年11月在缅甸会见李克强总理。这些都是富有成效的会面,两国领导讨论了加强印中关系的各种办法。2011年11月作为古吉拉特邦首席部长莫迪曾经访问过中国。

Related Posts:

Add Your Comment

‘);
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;
}
});
});

PM Modi logs onto Sina Weibo, China’s Twitter, with new handle

‘);
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;
}
});
});

PM’s remarks at the International Buddh Poornima Diwas Celebration

The Prime Minister, Shri Narendra Modi, today said Lord Buddha’s timeless message of love and compassion could help rid the world of the problems of war and violence. “Agar yuddh se mukti chaahiye, to Buddh ki raah par milegi,” the Prime Minister said.

PM Modi at International Buddha Poornima Diwas Celebration (12)
In his remarks at the International Buddh Poornima Diwas Celebration in New Delhi today, the Prime Minister said that the whole world had acknowledged that the 21st century would be Asia’s century, and added that Buddha’s teachings would be the inspiration and guiding spirit for Asia, as it showed the world the path to relief from problems of conflict and hatred.

PM Modi at International Buddha Poornima Diwas Celebration (17)
The Prime Minister said that the gathering today, is conscious of the suffering that the recent earthquake has caused in Nepal – the land of Buddha’s birth. But he added that this is also an opportunity for everyone to follow Lord Buddha’s message of “karuna” (compassion), and to wipe the tears of those suffering in Nepal.

PM Modi at International Buddha Poornima Diwas Celebration (14)
The Prime Minister said that Lord Buddha was conscious towards both individual emancipation and social reform. He said that the importance given to the “Sangh” highlights how Lord Buddha sensed the importance of uniting people towards a noble cause. He said Lord Buddha’s teaching of “Atta Deepo Bhavah” – “Be your own light” – was one of the greatest management lessons ever, contained in just three words.

PM Modi at International Buddha Poornima Diwas Celebration (19)
The Prime Minister recalled his visits to Buddhist temples recently in Japan and Sri Lanka, and also in China when he was Chief Minister of Gujarat. He said that the profound spiritual consciousness that pervaded these temples, must be forged into a powerful force for good in the world. He said some people called Buddha “the light of the east,” and added that in his opinion, this was an underestimation, and Buddha was in fact a source of inspiration for the entire universe.

PM Modi at International Buddha Poornima Diwas Celebration (22)
The Union Minister of State (I/C) for Culture Shri Mahesh Sharma, the Union Minister of State for Home, Shri Kiren Rijiju, and the Ven. Lama Lobzang, Secretary General, International Buddhist Confederation, were present on the occasion.

Click here to read full text speech

Related Posts:

Add Your Comment

‘);
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;
}
});
});