function openPop(){
  openVenster('http://www.marocprofs.nl/index.php?nav=popup','Mededeling','toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=1,width=523,height=304');
}

function kopieerKlembord(f){
	  obj = eval("this.document.banner.banner"+f);
  window.clipboardData.setData('Text', obj.value);
}


function checkForm(data){
  alert(this.document.formulier.tel.lenght);
  alert('mafkees');
}

function berekenPrijs(data,frame){
  aantal=this.document.formulier.aantal.value;
  tprijs=this.document.formulier.prijs.selectedIndex;
  ticketprijs=this.document.formulier.prijs.options[tprijs].value;
  
  prijs = new Array();
  prijs[1]="25.00";
  prijs[2]="55.00";
  prijs[3]="70.00";
  
  if(!aantal){
    aantal=1;
  }
  if(aantal=='aantal'){
    aantal=1;
  }

  totaal=aantal*prijs[ticketprijs];
  
  if(frame=='site'){
    totaals='<br><table width="100%" cellpadding="0" cellspacing="0" border="0">';
    totaals=totaals+'<tr>';
    totaals=totaals+'<td class="aborder padding4 asf skin_light z" width="40%" valign="top"><b>TOTAALPRIJS:</b><br>'+aantal+' x €'+prijs[ticketprijs]+',- <br>------------------<br><b>TOTAAL: €'+totaal+',-</b>';
    totaals=totaals+'</td><td class="tborder rborder bborder padding4 asf skin_light z" width="60%" valign="top"><b>OPHAALADRES:<br></b>Comfort Studio<br>Beethovenstraat 67<br>1077 HN Amsterdam<br>Tel.nr: 020- 470 98 45</td>';
    totaals=totaals+'</tr>';
    totaals=totaals+'</table>';
    schrijfData('bestelform',totaals);
  }else if(frame=='popup'){
    totaal='<b>TOTAALPRIJS:</b><br>'+aantal+' x €'+prijs[ticketprijs]+',- <br>------------------<br><b>TOTAAL: <font color="#000000">€'+totaal+',-</font></b>';
    schrijfData('bestelform',totaal);
  }
}

function schrijfData(arg1,arg2){
  o = false;
  if (document.getElementById){
    o = document.getElementById(arg1);
  }else if (document.all){
    o = document.all[arg1];
  }
  
  if (o){
    o.innerHTML = arg2;
  }else if (document.layers){
    with (document.layers[arg1].document){ 
      open();
      write(arg2);
      close();
    }
  }
}

theform = document.form1;
function openVenster(adres, naam, atrr) {
  newWindow=window.open('', naam, atrr);
  adres.target=naam;
  return true;
}

