function query_validate(fo)
{
	if (fo.message.value.length <=0){
		alert("Your requirements are missing.");
		fo.message.focus();
		return false;		
	}
	if (fo.name.value.length <=0){
		alert("Your name is missing.");
		fo.name.focus();
		return false;
	}
	if (fo.company.value.length <=0){
		alert("Company name are missing.");
		fo.company.focus();
		return false;
	}
	if (!isValidEmail(fo.email.value)){
		alert("Your email is missing or incorrect.");
		fo.email.focus();
		return false;
	}
	if (fo.landline.value.length <=0){
		alert("Your landline number is missing.");
		fo.landline.focus();
		return false;
	}
	if (fo.mobile.value.length <=0){
		alert("Your mobile is missing.");
		fo.mobile.focus();
		return false;
	}
return true;
}
function isValidEmail(emailid) {
if (emailid == ""){
	return false; // because  it is not optional 
}
else{
		var eid=emailid;

		if (eid.indexOf(' ')!= -1){
			return false ; // no spaces
		} 
		if (eid.length < 6 ){
			return false ; // at least j.a@in
		}
		at=eid.indexOf('@', 0); //check from first position ---- 
		if ( at == -1 || at == 0){ //should not be at first place
			return false ;
		}else{
				var at1=eid.indexOf('@', (at + 1)); //looking for another at one place ahead
				if ( at1 == -1 ) // ie only one at is there
				{
					var dot=eid.indexOf('.',(at + 1));//looking for just next value
					if(dot == (at + 1)|| dot== -1){ //if dot is not there or in the next place
						return false ;	
						}
					else{
						 if ( (dot + 2 ) < eid.length )
							return true ;
						 else{
							return false ;
						}
					}
				}
				else // two @ are there
				{
					return false;
				}
			}	
	return false ;
	}		
}
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3500;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();

// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'slides/calcu.jpg';
Pic[3] = 'slides/figures.jpg';
Pic[2] = 'slides/hands.jpg';
Pic[1] = 'slides/world.jpg';
Pic[4] = 'slides/graphs.jpg';
// do not edit anything below this line
var t;
var j = 0,k=0,u=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="revealTrans(duration=2)";
document.images.SlideShow.style.filter="revealTrans(duration=1,transition=25";
document.images.SlideShow.filters.revealTrans.Apply();

}
document.images.SlideShow.src = preLoad[k].src;


if (document.all) {
document.images.SlideShow.filters.revealTrans.Play();
}
j = j + 1;
k = k + 1;
if(k>(p-1)) k=0;
{
}
t = setTimeout('runSlideShow()', slideShowSpeed);
}