<!--
function writeCurrentDate()
{
	today = new Date().toLocaleString();
	colon	= today.indexOf(":");
	
	with(document)
	{
		if(colon > -1)
		{
			if(parseInt(today.substring(colon-7,colon-3)) < 2000)
				write(today.substring(0,colon-2));
			else
				write(today.substring(0,colon-3));		
		}
		else
		{
			write(today);
		}
	}
}

function writeToday()
{
	today = new Date();
	
	day		= ((today.getDate() < 10) ? "0" : "") + today.getDate();
	month	= (((today.getMonth() + 1) < 10) ? "0" : "") + (today.getMonth() + 1);
	year	= today.getFullYear();
	
	document.write(day + "/" + month + "/" + year);
}

function fieldInputOK(fieldName)
{
	if(fieldName.value == null || fieldName.value == "")
	{
		alert('Please fill out all required information!');
		fieldName.focus();
		return false;
	}
	else
	{
		return true;
	}
}

function comboInputOK(fieldName,emptyValue)
{
	if(fieldName.value == emptyValue)
	{	
		alert('Please fill out all required information!!');
		fieldName.focus();
		return false;
	}
	else
	{
		return true;
	}
}

function emailAddressOK(emailAddress)
{
	var validChars	= "abcdefghijklmnopqrstuvwxyz0123456789@.-";
	var returnValue = true;
	
	if(emailAddress == null || emailAddress == "")
	{
		returnValue = false;
	}
	else if((emailAddress.indexOf('@') == -1) || (emailAddress.indexOf('.') == -1))
	{
		returnValue = false;
	}
	else
	{
		for(var i=0; i < emailAddress.length; i++)
		{
			var letter = emailAddress.charAt(i).toLowerCase();
			
			if(validChars.indexOf(letter) == -1)
			{
				returnValue = false;
				break;
			}
		}
  }
		
	return returnValue;
}
//-->

