// NIEUWSBRIEF JAVASCRIPT
// Popup-scherm voor tonen Subscribe/aanmeld-formulier.
// (c) MailingLijst, 2002-2010
// versie voor ML 3.x dd november 2009
// versie meerdere parameters dd januari 2010

function subscribe(list_ID, emailaddress, account, lastname, url)
{
	var stroptions, strURL
	var lngtop, lngleft
	if (url!= null)
	{
		strURL = "http://" + url + "/nieuwsbrief/subscribe/?l=" + list_ID
	}
	else
	{
		strURL = "http://www.mailinglijst.eu/nieuwsbrief/subscribe/?l=" + list_ID
	}
	if (emailaddress != null) {strURL += '&e=' + emailaddress };
	if (account != null) {strURL += '&a=' + account };
	if (lastname != null) {strURL += '&n=' + lastname };
	lngtop = 50;
	lngleft = 50;
	stroptions = "width=400,height=500,top=" + lngtop + ",left=" + lngleft + ",scrollbars=1";
	whandle = window.open(strURL, 'MailingLijst', stroptions);
	whandle.focus();
}
