


function isValidContactForm(objForm)
{
	strAlert = "";

	if (objForm.strFullName.value == "") {
		strAlert += "> Your name\n";
	}
	
	if ( (objForm.strEmailAddress.value == "") || (objForm.strEmailAddress.value.indexOf("@") == -1) ) {
		strAlert += "> E-mail address\n";
	}
	
	if (objForm.strMessage.value == "") {
		strAlert += "> Message\n";
	}
	
	if (strAlert != "") {
		alert("The following field are not completed:\n"+ strAlert);
		return false;
	} else {
		return true;
	}
}



function borderOn(objImage)
{
	objImage.style.border = "2px solid black";
}

function borderOff(objImage)
{
	objImage.style.border = "2px solid #DDDDDD";
}

function borderActive(objImage)
{
	objImage.style.border = "2px solid #3399FF";
}


function setZoomImage(intNr)
{
	curSource = ""+document.zoomImage.src;

	sourceCut = curSource.substring(0, curSource.lastIndexOf("_")+1);
	
	newSource = sourceCut + intNr + ".jpg";
	
	//alert(curSource + " en " + newSource);
	
	document.zoomImage.src = newSource;
}
