
function openImageWindow(imageSrc,imageTitle) { 
    fileName = 'popup.htm?' + escape(imageSrc) + '&' + escape(imageTitle);
    myWindowHandle = window.open(fileName,'windowName','directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes');
}



function printPage(url){
   window.open(url,"title","menubar=yes,scrollbars=yes,width=500");
}
function submitForm(){
	document.frmMain.submit();
}
function downloadPdf( docname){
	window.location.href = "content/download.php?docname="+docname;
}

function listSubscribe(){

	MM_validateForm('emailmaillist','','RisEmail');
	
	if ( document.MM_returnValue ) {	
    var strHref = window.location.href;
    strHref = strHref.replace ( "#","" )
		window.location.href = strHref+"&subscribe=yes&email="+document.frmmaillist.emailmaillist.value+"&company="+document.frmmaillist.companymaillist.value+"&achternaam="+document.frmmaillist.namemaillist.value;
//  alert( top.location.href+"&subscribe=yes&email="+document.frmmaillist.emailmaillist.value+"&company="+document.frmmaillist.companymaillist.value+"&achternaam="+document.frmmaillist.namemaillist.value )
	}
	
}


function submitPinForm(){

	MM_validateForm('email','','RisEmail','naam','','R');
	
	if ( document.MM_returnValue ) {	
   frmPin.submit();
	}
}

function doStuff(lnk,pdfname,msdsname,msdsname2){

	if ( document.frmright.radioright[0].checked ){ //print deze pagina	
	  	printPage(lnk);
	}
	if ( document.frmright.radioright[1].checked ){ //mail deze pagina
		// email
		var mailfrom=document.frmright.uwemail.value;
		var mailto=document.frmright.vriendemail.value;

		MM_validateForm('uwemail','','RisEmail','vriendemail','','RisEmail');
		if ( document.MM_returnValue ) {	
				window.location.href = window.location.href+"&pagefrom="+mailfrom+"&pageto="+mailto;	
		}else{ 
			document.MM_returnValue = false;
		}
	}
	if ( document.frmright.radioright[2] ){
		if ( document.frmright.radioright[2].checked ){ //download pdf
				if (pdfname != '') {
		  		downloadPdf(pdfname);
		  	}
		  else {
		  		downloadPdf(msdsname);
		  	}
		}
	}
	if ( document.frmright.radioright[3] ){
		if ( document.frmright.radioright[3].checked ){ //download pdf
		  	downloadPdf(msdsname);
		}
	}
	if ( document.frmright.radioright[4] ){
		if ( document.frmright.radioright[4].checked ){ //download pdf
		  	downloadPdf(msdsname2);
		}
	}

}

function removeValue ( el, initVal ) {
  if ( el.value == initVal) {
    el.value = "";
    el.style.color = "black";
  }

}

function setValue ( el, initVal ) {
  if ( el.value == "" ) {
    el.value = initVal ;
    el.style.color = "gray";
  }

}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}




function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}





function writeFlash ( fl, href, target ) {
 
    document.write ('<a href="' + href + '" target='  + target +  '">');
    document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="468px" height="60px"  id="load_images" ALIGN="">') 
    document.write('<PARAM NAME=movie VALUE="' + fl + '"> ')
    document.write('<PARAM NAME=menu VALUE=false> ')
    document.write('<PARAM NAME=quality VALUE=high> ')
    document.write('<PARAM NAME=bgcolor VALUE=#000000>') 
    document.write('<EMBED src="' + fl + '" menu=false quality=high bgcolor=#000000 width="468px" height="60px"  NAME="load_images" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>')
    document.write('</OBJECT>');
    document.write ( '</a>' );    

}


function writeImage ( img, href, target ) {

    if ( href != '' ) {
      document.write ('<a href="' + href + '" target="'  + target +  '">');
    }
    document.write ('<img src="' + img + '" width="468px" height="60px" alt="" border="0">')
    
    if ( href != '' ) {
      document.write ('</a>' );
    }
  
  
}

function alertThis ( i ) {
  alert ( i );
}


function writeSplashFlash ( ) {
  document.write ( '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="780" HEIGHT="330" id="05_wipo" ALIGN=""> <PARAM NAME=movie VALUE="06_wipo.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="06_wipo.swf" quality=high bgcolor=#FFFFFF  WIDTH="780" HEIGHT="330" NAME="06_wipo" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>' )
}

function writeSplashHTML (  ) {
  document.write ( "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"630\"><!-- fwtable fwsrc=\"splash06.png\" fwbase=\"default_noflash.jpg\" fwstyle=\"Dreamweaver\" fwdocid = \"742308039\" fwnested=\"0\" --> <tr>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"107\" height=\"1\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"70\" height=\"1\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"75\" height=\"1\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"143\" height=\"1\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"177\" height=\"1\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"55\" height=\"1\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"3\" height=\"1\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td> </tr> <tr>  <td colspan=\"7\"><img name=\"default_noflash_r1_c1\" src=\"content/themes/img/splash_noflash/default_noflash_r1_c1.jpg\" width=\"630\" height=\"64\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"1\" height=\"64\" border=\"0\" alt=\"\"></td> </tr> <tr>  <td rowspan=\"2\" colspan=\"4\"><img name=\"default_noflash_r2_c1\" src=\"content/themes/img/splash_noflash/default_noflash_r2_c1.jpg\" width=\"395\" height=\"104\" border=\"0\" alt=\"\"></td>  <td><img name=\"default_noflash_r2_c5\" src=\"content/themes/img/splash_noflash/default_noflash_r2_c5.jpg\" width=\"177\" height=\"28\" border=\"0\" alt=\"\"></td>  <td rowspan=\"7\" colspan=\"2\"><img name=\"default_noflash_r2_c6\" src=\"content/themes/img/splash_noflash/default_noflash_r2_c6.jpg\" width=\"58\" height=\"254\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"1\" height=\"28\" border=\"0\" alt=\"\"></td> </tr> <tr>  <td rowspan=\"6\"><img name=\"default_noflash_r3_c5\" src=\"content/themes/img/splash_noflash/default_noflash_r3_c5.jpg\" width=\"177\" height=\"226\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"1\" height=\"76\" border=\"0\" alt=\"\"></td> </tr> <tr>  <td rowspan=\"7\"><img name=\"default_noflash_r4_c1\" src=\"content/themes/img/splash_noflash/default_noflash_r4_c1.jpg\" width=\"107\" height=\"165\" border=\"0\" alt=\"\"></td>  <td colspan=\"2\"><a href=\"http://www.novatech.be/index.php?st=home&taal=nl\" onMouseOut=\"MM_swapImgRestore();\" onMouseOver=\"MM_swapImage('default_noflash_r4_c2','','content/themes/img/splash_noflash/default_noflash_r4_c2_f2.jpg','default_noflash_r2_c5','','content/themes/img/splash_noflash/default_noflash_r2_c5.jpg','default_noflash_r9_c3','','content/themes/img/splash_noflash/default_noflash_r9_c3.jpg',1);\"><img name=\"default_noflash_r4_c2\" src=\"content/themes/img/splash_noflash/default_noflash_r4_c2.jpg\" width=\"145\" height=\"21\" border=\"0\" alt=\"\"></a></td>  <td rowspan=\"5\"><img name=\"default_noflash_r4_c4\" src=\"content/themes/img/splash_noflash/default_noflash_r4_c4.jpg\" width=\"143\" height=\"150\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"1\" height=\"21\" border=\"0\" alt=\"\"></td> </tr> <tr>  <td colspan=\"2\"><a href=\"http://www.novatech.be/index.php?st=home&taal=fr\" onMouseOut=\"MM_swapImgRestore();\" onMouseOver=\"MM_swapImage('default_noflash_r5_c2','','content/themes/img/splash_noflash/default_noflash_r5_c2_f2.jpg','default_noflash_r2_c5','','content/themes/img/splash_noflash/default_noflash_r2_c5_f2.jpg','default_noflash_r9_c3','','content/themes/img/splash_noflash/default_noflash_r9_c3_f2.jpg',1);\"><img name=\"default_noflash_r5_c2\" src=\"content/themes/img/splash_noflash/default_noflash_r5_c2.jpg\" width=\"145\" height=\"19\" border=\"0\" alt=\"\"></a></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"1\" height=\"19\" border=\"0\" alt=\"\"></td> </tr> <tr>  <td colspan=\"2\"><a href=\"http://www.novatech.be/index.php?st=home&taal=en\" onMouseOut=\"MM_swapImgRestore();\" onMouseOver=\"MM_swapImage('default_noflash_r6_c2','','content/themes/img/splash_noflash/default_noflash_r6_c2_f2.jpg','default_noflash_r2_c5','','content/themes/img/splash_noflash/default_noflash_r2_c5_f3.jpg','default_noflash_r9_c3','','content/themes/img/splash_noflash/default_noflash_r9_c3_f3.jpg',1);\"><img name=\"default_noflash_r6_c2\" src=\"content/themes/img/splash_noflash/default_noflash_r6_c2.jpg\" width=\"145\" height=\"19\" border=\"0\" alt=\"\"></a></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"1\" height=\"19\" border=\"0\" alt=\"\"></td> </tr> <tr>  <td colspan=\"2\"><a href=\"http://www.novatech.be/index.php?st=home&taal=de\" onMouseOut=\"MM_swapImgRestore();\" onMouseOver=\"MM_swapImage('default_noflash_r7_c2','','content/themes/img/splash_noflash/default_noflash_r7_c2_f2.jpg','default_noflash_r2_c5','','content/themes/img/splash_noflash/default_noflash_r2_c5_f4.jpg','default_noflash_r9_c3','','content/themes/img/splash_noflash/default_noflash_r9_c3_f4.jpg',1);\"><img name=\"default_noflash_r7_c2\" src=\"content/themes/img/splash_noflash/default_noflash_r7_c2.jpg\" width=\"145\" height=\"22\" border=\"0\" alt=\"\"></a></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"1\" height=\"22\" border=\"0\" alt=\"\"></td> </tr> <tr>  <td colspan=\"2\"><img name=\"default_noflash_r8_c2\" src=\"content/themes/img/splash_noflash/default_noflash_r8_c2.jpg\" width=\"145\" height=\"69\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"1\" height=\"69\" border=\"0\" alt=\"\"></td> </tr> <tr>  <td rowspan=\"2\"><img name=\"default_noflash_r9_c2\" src=\"content/themes/img/splash_noflash/default_noflash_r9_c2.jpg\" width=\"70\" height=\"15\" border=\"0\" alt=\"\"></td>  <td colspan=\"4\"><img name=\"default_noflash_r9_c3\" src=\"content/themes/img/splash_noflash/default_noflash_r9_c3.jpg\" width=\"450\" height=\"10\" border=\"0\" alt=\"\"></td>  <td rowspan=\"2\"><img name=\"default_noflash_r9_c7\" src=\"content/themes/img/splash_noflash/default_noflash_r9_c7.jpg\" width=\"3\" height=\"15\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"1\" height=\"10\" border=\"0\" alt=\"\"></td> </tr> <tr>  <td colspan=\"4\"><img name=\"default_noflash_r10_c3\" src=\"content/themes/img/splash_noflash/default_noflash_r10_c3.jpg\" width=\"450\" height=\"5\" border=\"0\" alt=\"\"></td>  <td><img src=\"content/themes/img/splash_noflash/spacer.gif\" width=\"1\" height=\"5\" border=\"0\" alt=\"\"></td> </tr></table></body></html>")
}


function openKleurplaat ( imageSrc ) {
 fileName = 'index.php?st=kleurplaat&action=' + escape(imageSrc) ;
 win = window.open(fileName,'strip','directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes,width=646');
 win.focus();
}

function switchStrip( sel ) {
  var strip = sel.options[sel.selectedIndex].value;
  window.location.href = "index.php?st=strip&action=" + sel.options[sel.selectedIndex].value;

} 

function switchSort ( sel, sort, taal ) {
  var strip = sel.options[sel.selectedIndex].value;
  window.location.href = "index.php?taal=" + taal + "&sort=" + sort + "&st=testimonials&" + sort + "=" + sel.options[sel.selectedIndex].value;
}
/*

function switchProduct (  sel ) {
  var strip = sel.options[sel.selectedIndex].value;
  window.location.href = "index.php?st=testimonials&prodkey=" + sel.options[sel.selectedIndex].value;
}
*/