  /* added style for the body 23.04.2003 */
  function openWindow(imageName,imageWidth,imageHeight,alt) {
  newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+" ,top=20,left=20,status=1;");
  newWindow.document.open();
  newWindow.document.write('<html><title>'+alt+'<\/title><body style="margin:0px;background-color:#ffffff;" onBlur="self.close()">');
  newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+' />');
  // newWindow.document.write('<br />'+alt);
  newWindow.document.write('<\/body><\/html>');
  newWindow.status = alt;
  newWindow.document.close();
  newWindow.focus();

  }

var newWindow = null;

function closeWin(){
	if (newWindow != null){
		if(!newWindow.closed)
			newWindow.close();
	}
}

function popUpWin(url, type, strWidth, strHeight){
	closeWin();
	if (type == "fullScreen"){
		strWidth = screen.availWidth - 10;
		strHeight = screen.availHeight - 160;
	}
	var tools="";
	if (type == "standard" || type == "fullScreen") tools = "resizable,toolbar=yes,location=yes,scrollbars=yes,menubar=yes,width="+strWidth+",height="+strHeight+",top=0,left=0";
	if (type == "console") tools = "resizable,toolbar=no,location=no,scrollbars=no,width="+strWidth+",height="+strHeight+",left=50,top=50";
	newWindow = window.open(url, 'newWin', tools);
	newWindow.focus();
}
var ns4
ns4 = (document.layers)? true:false

function count_char()
	{
	maxLength = 999
 	if (document.getElementById('reactie').opinion.value.length > maxLength)
       {
         document.getElementById('reactie').opinion.value = document.getElementById('reactie').opinion.value.substring(0,maxLength)
         charleft = 0
         alert ("The maximum number of characters is used !");
        }else {
         charleft = maxLength - document.getElementById('reactie').opinion.value.length
        }
  	document.getElementById('reactie').counter.value = charleft
	}

function fieldcheck(){
	alerttext = "";
	if(document.getElementById('reactie').opinion.value == ''){alerttext += "Please enter your comment!\n"}
	if (alerttext != ''){
	  alert(alerttext);
	  return false;
	 }else{
	   return true;
	 }
	}

function popup(mozadd) {
    window.open(mozadd,'SickOfPopups','toolbar=no,statusbar=no,location=no,scrollbars=no,resizable=no,width=200,height=350,left=50,top=50')
  }