<!-- Original:  CodeLifter.com (support@codelifter.com) -->
<!-- Web Site:  http://www.codelifter.com -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3000;
// Duration of crossfade (seconds)
var crossFadeDuration = 10;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '/l/images/1.jpg'
Pic[1] = '/l/images/2.jpg'
Pic[2] = '/l/images/3.jpg'
Pic[3] = '/l/images/4.jpg'
Pic[4] = '/l/images/5.jpg'


// do not edit anything below this line
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=2)";
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 validate_email(field,alerttxt)
{
with (field)
  {
  apos=value.indexOf("@");
  dotpos=value.lastIndexOf(".");
  if (apos<1||dotpos-apos<2||value==null||value=="")
    {
	alert(alerttxt);
	return false;
    }
  else 
    {
	return true;
    }
  }
}

function validate_form(thisform)
{
with (thisform)
  {
  if (validate_email(w_email,"Not a valid e-mail address!")==false)
    {
	w_email.focus();
	return false;
    }

	if (w_name.value==null||w_name.value=="")
	{
    w_name.focus();
	alert("Not a valid Name");
	return false;
	}

	if (w_comm.value==null||w_comm.value=="")
	{
    w_comm.focus();
	alert("Not a valid Feedback/Comments");
	return false;
	}
  }
}


function validate_enquiry_form(thisform)
{
with (thisform)
  {

  if (validate_email(rq_email,"Not a valid e-mail address!")==false)
    {
	rq_email.focus();
	return false;
    }

	if (rq_name.value==null||rq_name.value=="")
	{
    rq_name.focus();
	alert("Not a valid Name");
	return false;
	}

	if (rq_job.value==null||rq_job.value=="")
	{
    rq_job.focus();
	alert("Not a valid Job Description");
	return false;
	}

  }
}
