param_id = ""
param_increment = 1
param_opacity = 100
param_timeout = 100
function Execute() {
	switch (GetValue("param_script")) {
		case "index":
			//param_id = "homebannerimg"
			//FadeIn()
			break
		case "contact":
			SetFocus("contactname")
			break
		case "contactconfirmation":
			setTimeout("LoadPage('home/contact')", 7000)
			break
	}
}
function FadeIn() {
	if (param_opacity < 100) {
		param_opacity += param_increment
		if (IsIE()) {
			document.getElementById(param_id).filters.alpha.opacity = param_opacity
		} else {
			document.getElementById(param_id).style.opacity = param_opacity / 100
			document.getElementById(param_id).style.MozOpacity = param_opacity / 100
		}
		setTimeout('FadeIn()', param_timeout)
	} else {
		FadeOut()
	}
}
function FadeOut() {
	if (param_opacity > 0) {
		param_opacity -= param_increment
		if (IsIE()) {
			document.getElementById(param_id).filters.alpha.opacity = param_opacity
		} else {
			document.getElementById(param_id).style.opacity = param_opacity / 100
			document.getElementById(param_id).style.MozOpacity = param_opacity / 100
		}
		setTimeout('FadeOut()', param_timeout)
	} else {
		FadeIn()
	}
}
function ValidateForm() {
	switch (objForm.name) {
		case "Contact":
			objField = objForm["contactname"]
			if (IsBlank(objField.value)) {
				alert(GetCaption("alert-cannotbeblank"))
				SetFocus(objField.name)
				return false
			}
			objField = objForm["email"]
			if (!IsEmail(objField.value)) {
				alert(GetCaption("alert-emailformat"))
				SetFocus(objField.name)
				return false
			}
			objField = objForm["subject"]
			if (IsBlank(objField.value)) {
				alert(GetCaption("alert-cannotbeblank"))
				SetFocus(objField.name)
				return false
			}
			objField = objForm["notes"]
			if (objField.value.length > 255) {
				alert(GetCaption("alert-maxfieldlength"))
				SetFocus(objField.name)
				return false
			}
			break
	}
	return true
}