function SletAnmeldelse() {
    return confirm("Sikker på du vil slette denne udgivelse?")
}
   
function SendTilVen() {
titel = escape(document.title)
adresse = escape(location.href)
document.write('<a href="mailto:din@ven.dk?subject=' + titel + '&body=Hej! %0dSe mere på ' + adresse + ' - vi ses!"><img src="/kk/gfx/icon_email.gif" width="13" height="12" border="0" alt="" title="Anbefal denne side til en ven" /></a>');
}

function Clickheretoprint()
{ 
  var disp_setting="toolbar=no,location=no,directories=no,menubar=no,"; 
      disp_setting+="scrollbars=yes,width=700, height=600, left=100, top=25"; 
  var content_vlue = document.getElementById("centercol_txt").innerHTML; 
  var content_ttle = document.getElementsByTagName("title")[0];
			titel=content_ttle.childNodes[0];

  var docprint=window.open("","",disp_setting); 
   docprint.document.open(); 
   docprint.document.write('<html><head><title>');
   docprint.document.write(titel.nodeValue);          
	 docprint.document.write('</title>');
	 docprint.document.write('<link href="print.css" rel="stylesheet" type="text/css" />');
   docprint.document.write('</head><body onLoad="self.print()">');          
   docprint.document.write(titel.nodeValue);          
   docprint.document.write(content_vlue);          
   docprint.document.write('</body></html>'); 
   docprint.document.close(); 
   docprint.focus(); 
}

var min=8;
var max=18;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}

function validateFormComment() 
{
 var okSoFar=true
 with (document.gemkommentar)
 {
  if (navn.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Vær venlig at indtaste dit navn.")
    navn.focus()
  }
  if (email.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Vær venlig at indtaste din e-mail.")
    email.focus()
  }
  if (tekst.value=="" && okSoFar)
  {
    okSoFar=false
    alert("Vær venlig at indtaste kommentar.")
    tekst.focus()
  }
  if (okSoFar==true) { submit(); }
 }
}
