/////////////////////////////////////////////functions////////////////////////////
//////////////////////////////////////////////////////////////////////////////////

//test if null or empty
function isNullOrEmpty(value)
{
    return (value == null || value == ''  || value == '0')
}


function changeDisplay( whichLayer, newValue ) {
	var elem, vis;
	if( document.getElementById ) // this is the way the standards work
		elem = document.getElementById( whichLayer );
	else if( document.all ) // this is the way old msie versions work
		elem = document.all[whichLayer];
	else if( document.layers ) // this is the way nn4 works
		elem = document.layers[whichLayer];
	vis = elem.style;
	vis.display = newValue;
}


function validate_mailform()
{


	// class list
	if (isNullOrEmpty(document.mailform.to.value))
    {
    	alert('Please select a name from the drop down menu.');
		document.mailform.to.focus();
		return false;
    }
    
    

	//Default
    return true;
}





