function message(message){
alert(message);
}
function decision(message, url){
if(confirm(message)) location.href = url;
}
function navigateTo(url){
location.href = url;
}
function clearForm(formName){
var element;
var elementCount;
eval("elementCount=" + formName + ".length;")
for (var i = 0; i < elementCount; i++)
{
eval("element=" + formName + ".elements[i];")
if (element.type == "text" || element.type == "textarea")
{
element.value='';
}
}
}
function submitForm(formName,qString,actionURL,encType){
if (typeof(actionURL) != 'undefined')
{
eval("document." + formName + ".action = actionURL;")
}
if (typeof(encType) != 'undefined')
{
eval("document." + formName + ".encoding = encType;")
}
if (typeof(qString) == 'undefined')
{
eval("document." + formName+ ".submit();");
}
else
{
eval("document." + formName + ".action = document." + formName + ".action + qString;")
eval("document." + formName + ".submit();")
}
}
function checkForm(formName,qString,actionURL,encType)
{
var elementCount;
var element;
returnval=true;
eval("elementCount=" + formName + ".length;")
for (var j = 0; j < elementCount; j++)
{
eval("element=" + formName + ".elements[j];")
indx = element.name.indexOf('_required');
if (indx != -1)
{
fieldname=element.name.substring(0,indx);
eval("element2=" + formName + ".elements[fieldname];")
if (element2.value.length == 0)
{
alert(element.value);
j = (elementCount);
if (element2.type != "hidden"){
element2.focus();
}
returnval = false;
}
}
}
if (returnval == true) submitForm(formName,qString,actionURL,encType);
}
function openWindow(url,window_name,width,height){
window.open(url,window_name);
}
function toggleGreenNav(div_id){
var myElement = document.getElementById(div_id);
if (myElement.style.backgroundColor == '#009999' | myElement.style.backgroundColor == '#FFFFFF')
{
myElement.style.backgroundColor = '#FFFFFF';
myElement.style.color = '#009999';
}
else
{
myElement.style.backgroundColor = '#009999';
myElement.style.color = '#FFFFFF';
}
}
function toggleGreyNav(div_id){
var myElement = document.getElementById(div_id);
if (myElement.style.backgroundColor == '#666666' | myElement.style.backgroundColor == '#FFFFFF')
{
myElement.style.backgroundColor = '#FFFFFF';
myElement.style.color = '#666666';
}
else
{
myElement.style.backgroundColor = '#666666';
myElement.style.color = '#FFFFFF';
}
}




