<!--
function turnGreen(menuLink) {
	document.getElementById(menuLink).style.color = '#30612D';
}
function turnLightGreen(menuLink) {
	document.getElementById(menuLink).style.color = '#60915D';
}
function turnWhite(menuLink) {
	document.getElementById(menuLink).style.color = '#FFFFFF';
}
function turnYellow(menuLink) {
	document.getElementById(menuLink).style.color = '#CCFFCC';
}
function turnOn(imgSwap) {
	document.getElementById(imgSwap).src = 'images/img'+imgSwap+'_On.jpg';
}
function turnOff(imgSwap) {
	document.getElementById(imgSwap).src = 'images/img'+imgSwap+'_Off.jpg';
}
function popUp(url, width, height){
	var popWin = window.open(url, "window2", "width="+width+",height="+height+",toolbar=no,directories=no,location=no,resizable=yes,dependent=no,scrollbars=yes");
	popWin.creator = self ;
	popWin.focus();	
	if (popWin.opener == null) {
		popWin.opener = window;
	}
}
function deleteRequest(id) {
	document.getElementById("requestId").value = id;
	document.frmDeleteRequest.submit();
}
function checkToolkitForm() {
	//fpass = true;
	
	document.getElementById('lbl_error').innerHTML = '';
	document.getElementById("lbl_firstname").style.color = "#000000";  document.getElementById("lbl_firstname").style.fontWeight = "normal";
	document.getElementById("lbl_lastname").style.color = "#000000";  document.getElementById("lbl_lastname").style.fontWeight = "normal";
	document.getElementById("lbl_org").style.color = "#000000";  document.getElementById("lbl_org").style.fontWeight = "normal";
	document.getElementById("lbl_address1").style.color = "#000000";  document.getElementById("lbl_address1").style.fontWeight = "normal";
	document.getElementById("lbl_address2").style.color = "#000000";  document.getElementById("lbl_address2").style.fontWeight = "normal";
	document.getElementById("lbl_city").style.color = "#000000";  document.getElementById("lbl_city").style.fontWeight = "normal";
	document.getElementById("lbl_state").style.color = "#000000";  document.getElementById("lbl_state").style.fontWeight = "normal";
	document.getElementById("lbl_zip").style.color = "#000000";  document.getElementById("lbl_zip").style.fontWeight = "normal";
	document.getElementById("lbl_email").style.color = "#000000";  document.getElementById("lbl_email").style.fontWeight = "normal";
	document.getElementById("lbl_phone").style.color = "#000000";  document.getElementById("lbl_phone").style.fontWeight = "normal";
	document.getElementById("lbl_contract").style.color = "#000000";  document.getElementById("lbl_contract").style.fontWeight = "normal";
	
	if(document.frmRequest.firstname.value == ""){
		document.getElementById("lbl_firstname").style.color = "#ff0000"; document.getElementById("lbl_firstname").style.fontWeight = "bold";
		document.getElementById('lbl_error').innerHTML = '<br>Please enter a First Name.<br>';
		return false;
	}
	if(document.frmRequest.lastname.value == ""){
		document.getElementById("lbl_lastname").style.color = "#ff0000"; document.getElementById("lbl_lastname").style.fontWeight = "bold";
		document.getElementById('lbl_error').innerHTML = '<br>Please enter a Last Name.<br>';
		return false;
	}
	if(document.frmRequest.email.value == "") { 
		document.getElementById("lbl_email").style.color = "#ff0000"; document.getElementById("lbl_email").style.fontWeight = "bold";
		document.getElementById('lbl_error').innerHTML = '<br>Please enter an Email address.<br>';
		return false;
	}
	if(document.frmRequest.org.value == "") { 
		document.getElementById("lbl_org").style.color = "#ff0000"; document.getElementById("lbl_org").style.fontWeight = "bold";
		document.getElementById('lbl_error').innerHTML = '<br>Please enter an Organization name.<br>';
		return false;
	}
	if(document.frmRequest.address1.value == "") { 
		document.getElementById("lbl_address1").style.color = "#ff0000"; document.getElementById("lbl_address1").style.fontWeight = "bold";
		document.getElementById('lbl_error').innerHTML = '<br>Please enter an Address.<br>';
		return false;
	}
	if(document.frmRequest.city.value == "") { 
		document.getElementById("lbl_city").style.color = "#ff0000"; document.getElementById("lbl_city").style.fontWeight = "bold";
		document.getElementById('lbl_error').innerHTML = '<br>Please enter a City.<br>';
		return false;
	}
	if(document.frmRequest.state.value == "") { 
		document.getElementById("lbl_state").style.color = "#ff0000"; document.getElementById("lbl_state").style.fontWeight = "bold";
		document.getElementById('lbl_error').innerHTML = '<br>Please select a State.<br>';
		return false;
	}
	if(document.frmRequest.zipcode.value == "") { 
		document.getElementById("lbl_zip").style.color = "#ff0000"; document.getElementById("lbl_zip").style.fontWeight = "bold";
		document.getElementById('lbl_error').innerHTML = '<br>Please enter a Zip Code.<br>';
		return false;
	}
	
	if(document.frmRequest.phone.value.length > 0 && document.frmRequest.phone.value.length < 7) { 
		document.getElementById("lbl_phone").style.color = "#ff0000"; document.getElementById("lbl_phone").style.fontWeight = "bold";
		document.getElementById('lbl_error').innerHTML = '<br>Please enter a valid Phone number or leave blank.<br>';
		return false;
	}
	if(document.frmRequest.zipcode.value.length > 0 && document.frmRequest.zipcode.value.length < 5) { 
		document.getElementById("lbl_zip").style.color = "#ff0000"; document.getElementById("lbl_zip").style.fontWeight = "bold";
		document.getElementById('lbl_error').innerHTML = '<br>Please enter a valid Zip Code.<br>';
		return false;
	}
	
	//document.frmRequest.email.value=rtrim(document.frmRequest.email.value);
	var str=document.frmRequest.email.value;
	var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
	if (filter.test(str)) {
		validemail=true;
	} else {
		validemail=false;
	}
	
	if(validemail == false) {
		document.getElementById("lbl_email").style.color = "#FF0000";  document.getElementById("lbl_email").style.fontWeight = "bold";
		document.getElementById('lbl_error').innerHTML = "Please enter a valid Email address.";
		return false;
	}
}
//-->