function commentswindow(){ win = window.open("comments.php?id=9695","Comments","width=300,height=500,scrollbars=yes"); } function getid(){ var id = 9695; return id; }        gatukonst.se       

 <<-Bakåt  |  Framåt->>  |  Nyheter  |  Senaste bilderna |  Alla 8222 bilder  |  Om gatukonst.se/F.A.Q. |  Slumpad Bild  |  Länkar  |  D.I.Y.-bloggen 

       Östermalm      2008-10-20  tjôta (1)    Kommentarer    function isEmpty(strfield1, strfield2, strfield3) { //change "field1, field2 and field3" to your field names strfield1 = document.forms[0].sender.value strfield2 = document.forms[0].comment.value //name field if (strfield1 == "" || strfield1 == null || !isNaN(strfield1) || strfield1.charAt(0) == ' ') { alert("\"Namn:\" ska fyllas i...\nMobbing via javascript - antispam") return false; } //title field if (strfield2 == "" || strfield2 == null || strfield2.charAt(0) == ' ') { alert("\"Din kommentar:\" vill vi ju se...\nMobbing via javascript - antispam") return false; } return true; } //function to check valid email address function isValidEmail(strEmail){ validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i; strEmail = document.forms[0].email.value; // search email text for regular exp matches if (strEmail.search(validRegExp) == -1) { alert('A valid e-mail address is required.\nPlease amend and retry'); return false; } return true; } //function that performs all functions, defined in the onsubmit event handler function check(form){ if (isEmpty(form.field1)){ if (isEmpty(form.field2)){ if (isEmpty(form.field3)){ if (isValidEmail(form.email)){ return true; } } } } return false; }     Kommentarer till bilden ovan:    orphidea skrev:  sug i blicken. helshysst    Namn: (obligatoriskt - be nice!)remember my info E-Mail: (ej nödvändigt)  Din kommentar (såklart obligatoriskt):                            

               var gaJsHost = (("https:" == document.location.protocol) ? "http://web.archive.org./web/20081020195813/https://ssl." : "http://web.archive.org./web/20081020195813/http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));   var pageTracker = _gat._getTracker("UA-265044-1"); pageTracker._initData(); pageTracker._trackPageview();