/*
versie dd 7-april-2006 Vesseur
versie voor Alphamegahosting
Vanwege gebruik Formmail is in de algemene mailcheckfunctie het volgende aangepast:
(myForm.from.value)=(myForm.email.value)
*/

/*
 functie sorry
 Rechts klikken geeft waarschuwing betreffende copyright
*/


<!-- Begin
var sorry="Copyright BASA WebDesign"
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(sorry);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(sorry);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// End -->



/*
 functie openwindow
 Maakt een nieuw window van een ingestelde grootte en achtergrondkleur voor een image, met of zonder "sluiten" knop
 variabelen: in volgorde: naam bestand_groot,v=verticaal/h=horizontaal, an/ad/jv/wi = achtergrondkleur, s/n = sluitknop)
 voorbeeld <a href="javascript:openwindow('images/antiek/meubel/me001_gr.jpg','v','an','s')">
*/

<!-- Begin
var newWind;
var lOpened=false;
function openwindow(cPicture,cSize,cColor,cClose){
		 var output;
		if (lOpened){
		   newWind.close();
		}
		lOpened=true;


if  (cSize == "v"){
     	if (cClose == "s"){
	newWind=window.open("","xxxxx","height=700,width=570,screenX=5,screenY=5,top=5,left=5,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,");
        }else {
	newWind=window.open("","xxxxx","height=680,width=570,screenX=5,screenY=5,top=5,left=5,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,");
        }
}else {	
    	if (cClose == "s"){
	newWind=window.open("","yyyyy","height=540,width=670,screenX=5,screenY=5,top=5,left=5,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,");
      	}else {
	newWind=window.open("","yyyyy","height=520,width=670,screenX=5,screenY=5,top=5,left=5,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,");
      	}
}
		 output="<head><HTML><title>Antiek 't Aloude</title>"
 		 output+="<script language='JavaScript' src='basastand.js'></script></head>"

		 if  (cColor == "ad"){		
 		     output+="<BODY BGCOLOR='#006600'>"
		 }else if (cColor == "an"){
		     output+="<BODY BGCOLOR='#990000'>"
		 }else if (cColor == "jv"){
		     output+="<BODY BGCOLOR='#3E457C'>"
		 }else {
		     output+="<BODY BGCOLOR='#FCEDC2'>"
		 }
 		 output+="<CENTER><IMG SRC='"+cPicture+"'>"
                 if (cClose == "s"){
		 output+="<FORM><INPUT TYPE='button' VALUE='Sluiten' onClick='self.close()'></FORM>"
		 }
		 output+="</CENTER></BODY></HTML>"
		 newWind.document.write(output);
		 newWind.document.close();
		 newWind.focus();
}
//  End -->


/*
 De volgende twee functies zijn Checkfuncties tbv de mailcontact-bestanden
*/

<!-- Begin
function checkEmail(myForm) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.email.value)){
return (true)
}
alert("Incorrect E-mail adres! Wijzig dit!")
return (false)
}
//  End -->


<!-- Begin
  function checkCR(evt) {
    var evt  = (evt) ? evt : ((event) ? event : null);
    var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
    if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
  }
  document.onkeypress = checkCR;
//  End -->


/*
 functie changews()
 aanpassen van windowstatus-tekst
*/

/*
<!-- Begin
	function defstat(){
	window.DefaultStatus=' ';
	return true;
}
	function changews(message) {
  	if (message==null) {message='Vesseur voor al uw coaching!!!!';}
  	window.status=message;
  	newmessage=message;
  	setTimeout('changews(newmessage)',250);
}
changews()

//  End -->
*/


