function Nexter(){
if (currentIndx<imagesPreloaded.length-1){
currentIndx=currentIndx+1;
document.theImage.src=imagesPreloaded[currentIndx].src
document.getElementById("text1").innerHTML=Messages[currentIndx]
}
else {
 currentIndx=0
document.theImage.src=imagesPreloaded[currentIndx].src
document.getElementById("text1").innerHTML=Messages[currentIndx]
}
}
function Backer(){
if (currentIndx>0){
currentIndx=currentIndx-1;
document.theImage.src=imagesPreloaded[currentIndx].src
document.getElementById("text1").innerHTML=Messages[currentIndx]
}
else {
 currentIndx=3
document.theImage.src=imagesPreloaded[currentIndx].src
document.getElementById("text1").innerHTML=Messages[currentIndx]
}}
function automaticly() {
	if (document.form1.automatic.checked) {
if (currentIndx<imagesPreloaded.length){
currentIndx=currentIndx
}
else {
 currentIndx=0
}	
document.theImage.src=imagesPreloaded[currentIndx].src
document.form1.text1.value=Messages[currentIndx];
currentIndx=currentIndx+1;
var delay = setTimeout("automaticly()",3500)
	}
}

<!--
function isEmail(elm) {
    if (elm.value.indexOf("@") != "-1" &&
        elm.value.indexOf(".") != "-1") {
        return true;
    }
    else {
        return false;
    }
}

// Check for blank fields
function isFilled(elm) {
    if (elm.value == "" || elm.value == null) {
        return false;
    }
    else {
        return true;
    }
}

function isReady(form) {

      if (isFilled(form.email) == false) {        // Email Address Blank?
        alert("Please enter an email address.");
        form.email.focus();
        return false;
    }
   
  if (isEmail(form.email) == false) {          // A real email address?
        alert("Please enter a valid email address.");
        form.email.focus();
        return false;
    }

    

    return true;
}

