// $Id: javascripts.js,v 1.3 2003/03/05 11:27:51 rhaze Exp $

function PopupWindow(URL, Width, Height) {
	NewWindow= window.open(URL,'DIMO','width=' + Width + ',height=' + Height + ',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0,screenX=50,screenY=50,top=50,left=50');
	NewWindow.focus();
}

function PopupWindowFoto(URL, Width, Height) {
	NewWindow= window.open(URL,'DIMO','width=' + Width + ',height=' + Height + ',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=0,resizable=0,screenX=50,screenY=50,top=50,left=50');
	NewWindow.focus();
}

function update() {
   var limit = 160
   var old = document.submitForm.counter.value;
   var total = limit - document.submitForm.editOmschrijving.value.length;
   if(total < 0 ){
   total = 0;
  } 
  document.submitForm.counter.value=total;
   if(document.submitForm.counter.value < 6 && old >=6) {
     if(document.styleSheets) {
       document.submitForm.counter.style.color = '#ff0000'; } }
   else if(document.submitForm.counter.value >= 6 && old < 6
	   && document.styleSheets ) {
       document.submitForm.counter.style.color = '#0045B5'; } 
   }
