TEST PAGE


preview.id = 'widget-preview';
preview.className = 'ac-widget';
if (lang.indexOf('fr') == 0) preview.className += ' ac-widget-french';
document.body.appendChild(preview);


console.log(assuranceCardUrl);

preview.onclick = function() {
if(windowObjectReference == null || windowObjectReference.closed) {
windowObjectReference = window.open(assuranceCardUrl, 'assurance_card', 'width=500,height=535, menubar=no, resizable, scrollbars, location=no, top=100, left=100');
} else if(PreviousUrl != assuranceCardUrl) {
windowObjectReference = window.open(assuranceCardUrl, 'assurance_card', 'width=500,height=535, menubar=no, resizable, scrollbars, location=no, top=100, left=100');
windowObjectReference.focus();
} else {
windowObjectReference.focus();
};

PreviousUrl = assuranceCardUrl;
};