<!--

function checkform(theform){
  if ( ((theform.field4.value).indexOf('@') <0) || ((theform.field4.value).indexOf('.') <0)  ){
    alert ("Ange en giltig e-postadress");
    return(false);
  }
  if((theform.field1.value=="")||(theform.field2.value=="")||(theform.field3.value=="")){
    alert("Fyll i din adress, annars kan vi ju inte skicka dina filmer!");
    return(false);
  } 
}

function picpopup(pic) { 
     window.open("popup.html?"+pic, "", "resizable=1,HEIGHT=200,WIDTH=200");
}

function openpic(name, w, h, i ){
   page = "popup?pic=" + name ;
   window.open (page, i,"width="+w+",height="+h+",toolbars=no,scrollbars=no");
}

function displayhtml800(filename)
{
   window.open(filename, '', 'width=800,height=800,location=no,toolbar=no,scrollbars=yes');
}

function displayhtml750x550(filename)
{
   window.open(filename, '', 'width=750,height=550,location=no,toolbar=no,scrollbars=no');
}

function displayhtml320x240(filename)
{
   window.open(filename, '', 'width=320,height=240,location=no,toolbar=no,scrollbars=no');
}

function displayhtml360x288(filename)
{
   window.open(filename, '', 'width=360,height=288,location=no,toolbar=no,scrollbars=no');
}

function displayhtml(filename, n, w, h)
{
   window.open(filename, n, 'height='+h+',width='+w+',scrollbars=0,resize=0');
}


function picpop(filename, t, w, h, n)
{
   popup = window.open( "", n, "height="+h+",width="+w+",scrollbars=0,resize=0");
   popup.document.write( "<HTML>" );
   popup.document.write( "<HEAD>" );
   popup.document.write( "<TITLE>"+t+"</TITLE>" );
   popup.document.write( "</HEAD>" );
   popup.document.write( "<BODY marginwidth='0' marginheight='0' topmargin='0' leftmargin='0'><img src='"+filename+"'>"  );
   popup.document.write( "</BODY>" );
   popup.document.write( "</HTML>" );
        if ( popup.document.close() )
        {
                popup.document.close()
        }
}

//-->
