//contains code for leads pages, in particular to handle new lead submission to TLF directly
//var leadPopup;

function showLeadInvalidData(leadUrl) {
	alert(leadUrl);
	//var leadForm = document.getElementById("leadSubmitForm");
	//leadPopup = popupWin(leadPopup, "leadPopup", false, leadUrl, 600, 800, true, true, true, true, true, true);
	//leadForm.target = "leadPopup";
	//leadForm.action = leadUrl;
	//leadForm.submit(); 

}

var privacyPopup = null;

//function showLeadsPrivacyStatement(url) {
//	privacyPopup = popupWin(privacyPopup, 'privacyPopup', true, url, 500, 630, true, true, true, true, true, true);
//}

function showLeadsPrivacyStatement(url) {
	var theForm = getPageHeaderForm();
	url += "?ptz=" + theForm.ptz.value;
	url += "&ptt=" + theForm.ptt.value;
	url += "&ptd=" + theForm.ptd.value;
	url += "&pth=" + theForm.pth.value;
	var newWindow = window.open(url, 'privacyPopup', 'width=500,height=630,top=30,left=100,scrollbars,resizable');
	newWindow.focus();
}
