function openEmail(file,window) { msgWindow=open('','window','resizable=no,width=400,height=440'); msgWindow.location.href = file; if (msgWindow.opener == null) { msgWindow.opener = self; } } function viewLastNewsletter(file,window) { msgWindow=open('','window','resizable=no,width=800,height=600'); msgWindow.location.href = file; if (msgWindow.opener == null) { msgWindow.opener = self; } } function printerFriendly(urlToOpen) { var x = (screen.width-600)/2, y = (screen.height-400)/2; OpenWin = this.open(urlToOpen, "CtrlWindow", "width=800,height=600 toolbar=no,menubar=yes,location=no,scrollbars=yes,resizable=no, screenX="+x+", screenY="+y+", left="+x+", top="+y); } function recommend(urlRecommandForThisArticle) { var x = (screen.width-400)/2, y = (screen.height-400)/2; OpenWin = this.open(urlRecommandForThisArticle, "CtrlWindow", "width=400,height=360 toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no, screenX="+x+", screenY="+y+", left="+x+", top="+y); } function checkNLForm() { if (document.newsletter.newsletterEmail.value == "") { alert("Email-ul dvs!") document.newsletter.newsletterEmail.focus() return false} var emailFilter=/^.+@.+\..{2,3}$/; if (!(emailFilter.test(newsletter.newsletterEmail.value))) { alert("Email Invalid!\nEx:popescu@popescu.ro"); document.newsletter.newsletterEmail.focus() return false } document.newsletter.submit(); } function checkSubscribe() { if (document.subscribe.email.value == "") { alert("Email-ul dvs!") document.subscribe.email.focus(); return false; } var emailFilter=/^.+@.+\..{2,3}$/; if (!(emailFilter.test(document.subscribe.email.value))) { alert("Email Invalid!\nEx:popescu@popescu.ro"); document.subscribe.email.focus(); return false; } document.subscribe.submit(); }