Pomegranate


/**/

//$(document).ready(function(){

$j(‘.ctl03_ngContentListDBMirror_FollowMe_profilepop’).click(function () {

var nt=String(Math.random()).substr(2,10);

if (!IsUserSignedIn())

{

var url=”/profile.aspx?m=pop&c=ctl03_ngContentListDBMirror_FollowMe&nt=” + nt;

$j(‘#ctl03_ngContentListDBMirror_FollowMe_overlay’).colorbox({width:”80%”, height:”80%”, href:url, iframe:true, open:true});

return false;

}

});

$j(‘#ctl03_ngContentListDBMirror_FollowMe_frm_follow_email’).submit( function () {

var valid = (($j(‘#ctl03_ngContentListDBMirror_FollowMe_frm_follow_email’).find(“input[name=’email’]”).val() != $j(‘#ctl03_ngContentListDBMirror_FollowMe_frm_follow_email’).find(“input[name=’email’]”).attr(‘defaultValue’)) && $j(‘#ctl03_ngContentListDBMirror_FollowMe_frm_follow_email’).find(“input[name=’email’]”).val() != ” && (/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/.test($j(‘#ctl03_ngContentListDBMirror_FollowMe_frm_follow_email’).find(“input[name=’email’]”).val())));

if (valid)

{

var nt=String(Math.random()).substr(2,10); // add &m=pop to make it pop up

var weekly = $j(‘#ctl03_ngContentListDBMirror_FollowMe_frm_follow_email’).find(“input[name=’chk_cat_updates’]”).val();

var email_val = $j(‘#ctl03_ngContentListDBMirror_FollowMe_frm_follow_email’).find(“input[name=’email’]”).val();

var quote = “/profile.aspx?email=” + email_val + “&chk_cat_updates=” + weekly + “&nt=” + nt + “&nl=”;

if (!IsUserSignedIn())

{

quote += “&m=pop”;

$j(‘#ctl03_ngContentListDBMirror_FollowMe_overlay’).colorbox({width:”80%”, height:”80%”, href:quote, iframe:true, open:true});

}

else

document.location.href = quote;

}

return false;

}); //

//});

/**/

Scroll to Top