

    function nagykep_show(img) 
    {
        nagykepwin = window.open('','','toolbar=no,location=no,directories=no,menubar=no,resizable=yes,status=no,scrollbars=1,width=200,height=100,modal=yes'); 
    
    var sz = " "
    
    
    + "<!--\n"
    + " function windowpos() {\n"
    + "    var x,y,w,h;\n"
    + "    self.focus();\n"

    + "    if (document.images) {\n"
    + "        w = document.images['ProductPic'].width+50;\n"
    + "        h = document.images['ProductPic'].height+90;\n"

    + "        if (w > window.screen.availWidth) w = window.screen.availWidth;\n"
    + "        if (h > window.screen.availHeight) h = window.screen.availHeight;\n"
    + "        if (w < 100) w = 100;\n"

    + "        x = (window.screen.availWidth-w) / 2;\n"
    + "        y = (window.screen.availHeight-h) / 2;\n"

    + "        window.moveTo(x,y);\n"
    + "        window.resizeTo(w,h);\n"
    + "        window.focus();"
    + " } \n"
    + "    return true;\n"
    + "} \n"
    + "//-->\n"
    	
nagykepwin.document.write("<HTML><head><title>Digit&aacute;ltechnika Kft.</title><script LANGUAGE=\"JavaScript\" TYPE=\"text/javascript\">"+sz+"</script></head>");
nagykepwin.document.write('<body text="#000000" bgcolor="#ffffff"  topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0"');
nagykepwin.document.write(' alink="#161C3E" OnLoad="javascript:windowpos();" id="maintable">');
nagykepwin.document.write('<table border="0" align=center><tr><td>');
nagykepwin.document.write('<a href="javascript:window.close()"><img src="'+img+'" border="0"');
nagykepwin.document.write(' name="ProductPic"  id="productimg"></a>');
nagykepwin.document.write('</td></tr></table>');
nagykepwin.document.write('</body>');
nagykepwin.document.write('</html>');
nagykepwin.document.close();    	
    	
    	
    	
    }



// Email Validation. 

function check_email(e) {
   ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";

   for(i=0; i < e.length ;i++){
      if(ok.indexOf(e.charAt(i))<0){ 
         return (false);
      }	
   } 

   if (document.images) {
      re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
      re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
      if (!e.match(re) && e.match(re_two)) {
         return (-1);		
      } 

   }

}

