if(document.all){
	var docStrt = "document.all";
	var styltl = ".style";
	
	} else {
	var docStrt = "document";
	var styltl = "";
}

function showLayer(layerName){
	shLayer = eval(docStrt + "." + layerName + styltl);
	shLayer.visibility = "visible";
	window.status = "";
}

function hideLayer(layerName){
	shLayer = eval(docStrt + "." + layerName + styltl);
	shLayer.visibility = "hidden";
	window.status = "";
}

function checkForm(){

	var illegal = " ;:/";
	var lngth = document.thisOne.Email.value.length;
	var address = document.thisOne.Email.value;
	var lngthfn = document.thisOne.First_name.value.length;
	var lngthln = document.thisOne.Last_name.value.length;


	if(lngthfn==0) {
		alert("Please enter your first name.");
		document.thisOne.First_name.focus();
		return false;
	}
	if(lngthln==0) {
		alert("Please enter your last name.");
		document.thisOne.Last_name.focus();
		return false;
	}

	if(lngth==0) {
		alert("Please enter an e-mail address.");
		document.thisOne.Email.focus();
		return false;
	} else {
		for(var i=0;i<illegal.length;i++){
			var tester = illegal.charAt(i);
			if(address.indexOf(tester,0)>-1){
				alert("The e-mail address entered is invalid. Please re-enter.");
				document.thisOne.Email.focus();
				return false;
			}
		}
	}
	
	if(address.indexOf("@",1)==-1){
		alert("Please enter an e-mail address with the @ symbol.");
		document.thisOne.Email.focus();
		return false;
	}
	atPlace = address.indexOf("@",1);
	if(address.indexOf("@",atPlace+1)!=-1){
		alert("Please use only one @ symbol.");
		document.thisOne.Email.focus();
		return false;
	}
	return true;
}
function mObjDown(obj) {
	
	objAd = eval (docStrt + "." + obj + styltl);
	strtTop = parseInt(objAd.top);
	
	newTop = strtTop + 50;
	
	objAd.top = newTop;
}
function mObjUp(obj) {
	
	objAd = eval (docStrt + "." + obj + styltl);
	strtTop = parseInt(objAd.top);
	
	newTop = strtTop - 50;
	
	objAd.top = newTop;
}
var myPix = new Array("images/great.gif",
	"images/workshop.gif",
	"images/excellent.gif",
	"images/remote-staff.gif",
	"images/example.gif",
	"images/required.gif",
	"images/focus.gif");
	
var thisPic = 0;
var imgCt = myPix.length - 1;

function chgSlide(direction) {
	if (document.images) {
		thisPic = thisPic + direction;
		if (thisPic>imgCt){
			thisPic = 0;
			}
		if (thisPic < 0) {
			thisPic = imgCt;
			}
		document.myPicture.src = myPix[thisPic];
	}
}
if(document.layers) {
	this.captureEvents(Event.RESIZE); 
	this.onResize=refresh_me;
}

function refresh_me() {
	// Only if it is Netscape 4.5+
	var version = navigator.appVersion;
	var versionwords = version.split(" ");
	if(versionwords[0] >= 4.5)
		window.location.reload();
} 

document.cookie = "beenhere=true";