// JavaScript Document
var slideShowSpeed = 4000
var crossFadeDuration = 3
var Pic = new Array()
Pic[0] = '1_en.jpg'
Pic[1] = '2_en.jpg'
Pic[2] = '3_en.jpg'
Pic[3] = '4_en.jpg'
Pic[4] = '5_en.jpg'
Pic[5] = '6_en.jpg'
Pic[6] = '7_en.jpg'
var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=4)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
function CheckForm () { 
	var errorMsg = "";
	if (document.frmEnquiry.firstName.value == ""){
		errorMsg += "\n\tFirst Name \t- Please enter your First Name";	
	}
	if (document.frmEnquiry.lastName.value == ""){
		errorMsg += "\n\tLast Name \t- Please enter your Last Name";
	}
	
	if (document.frmEnquiry.asunto.value == ""){
		errorMsg += "\n\tSubject \t\t- Please tell us the subject of your Contact";
	}
	if ((document.frmEnquiry.email.value == "") || (document.frmEnquiry.email.value.length > 0 && (document.frmEnquiry.email.value.indexOf("@",0) == - 1 || document.frmEnquiry.email.value.indexOf(".",0) == - 1))) { 
		errorMsg += "\n\tE-mail \t\t- This E-mail have invalid format";
	}
	if (document.frmEnquiry.enquiry.value == "") { 
 		errorMsg += "\n\tComment \t- Please type a message";
	}
	if (errorMsg != ""){
		msg = "______________________________________________________________\n\n";
		msg += "SA problem exist in the form. Please type de required information.\n";
		msg += "The next fields are invalid: -\n";
		
		errorMsg += alert(msg + errorMsg + "\n\n");
		return false;
	}
	
	return true;
}// -->
