function stf(){ w=603; h=460; scr=window.open('stf.php?link='+escape(window.location), 'stf', 'height='+h+',width='+w+',top=100 ,left='+((screen.width-w)/2)+', scrollbars=0, resizable=1'); scr.focus(); } var win; function openImage(image,title){ window.open(baseHref+"_pic.html?"+image, "", "resizable=0,HEIGHT=200,WIDTH=200"); } function popup_flash(path) { window.open(baseHref+path, "Tutorials", "width=830, height=650, resizable=0, scrollbars=0, status=1"); } t1="The "; t2="field is required"; t3="field is too short"; t4="field contains invalid characters"; t5="field is invalid"; function chkem(a, n) { ero="`=[];\',/\\#$%^&*()+{}:\"<>?| "; ned="@."; er=0; if (a.length==0) eroare+=t1+"\""+n+"\" "+t2+".\n" else if (a.length<5) eroare+=t1+"\""+n+"\" "+t3+".\n" else { for (j=0; j<=ero.length-1; j++) if (a.indexOf(ero.substring(j,j+1))!=-1) er=1; for (j=0; j<=ned.length-1; j++) { aos = a.split(ned.substring(j,j+1)); for (var i=0; i < aos.length-1; i++) if (aos[i]<1) er=1; if (a.indexOf(ned.substring(j,j+1))==-1) er=1; } if (er==1) eroare+=t1+"\""+n+"\" "+t5+".\n" } } function chkempty(a, n) { if (a.length==0) eroare+=t1+"\""+n+"\" "+t2+".\n" else if (a.length<4) eroare+=t1+"\""+n+"\" "+t3+".\n" } $(document).ready(function() { $("a#fancy1").fancybox({ 'titleShow': false }); $("#frame1").fancybox({ 'width' : '75%', 'height' : '85%', 'autoScale' : false, 'type' : 'iframe' }); $("#frame2").fancybox({ 'width' : '75%', 'height' : '85%', 'autoScale' : false, 'type' : 'iframe' }); $("#frame3").fancybox({ 'width' : '75%', 'height' : '85%', 'autoScale' : false, 'type' : 'iframe' }); });