function openpopup(message)
{
	if (window.top.popup)
	{
	window.top.popup.close();
	}
window.open(message,"popup","height=730,width=710,top=0px,left=0px,scrollbars");
return false;
}


function openpopup2(message)
{
	if (window.top.popup)
	{
	window.top.popup.close();
	}
window.open(message,"popup","height=780,width=760,top=0px,left=0px,scrollbars");
return false;
}

 function loadinparent(url)
 {
 
var msg;
var error;
var a;
var pos;

error=0;
	
document.forms[0].email.value = "" + document.forms[0].email.value;
a=document.forms[0].email.value;

var pos=a.indexOf('newyorklife.com') ;

if (a == "")
    {
	msg = "Please fill out the following required fields:\n\n";
	msg += "   Email\n";
	error=1;
    }
 
 if(a != "" && pos == -1)
   {
	msg = "There is a problem with the email address you entered:\n\n";
	msg += "   Invalid NYL Email\n";
	error=1;
    }

	
if (error == 1)
   {
   alert(msg);
   return false;
   }
else 
   {
	 var page='http://www.adpadamerica.com/nyl-adpad.aspx?email='; 
self.opener.location = page+url; 	
self.close();
    return true;
   }
 

 }

 function loadinparent2(url)
 {
 self.opener.location='newyorklife/login.aspx';
 self.close();
 return true;
 }
