function validate()
{
    var name = document.getElementById('name');
    var email = document.getElementById('email');
    
    if(name.value == '' || email.value == '')
    {
        alert("Please make sure that your name and email address are filled in.");
        return false;
    }
    else
    {
        return dangerWillRobinson();
    }
}


function dangerWillRobinson() 
{
    var emerCheckbox = document.getElementById('emergency');
	if (emerCheckbox.checked) 
	{
    	var emerConfirm = confirm("You have chosen to declare this support request an emergency which will upgrade the priority of this support request accordingly.\n\n- Emergency support request rates are $200 plus $125/hr with a minimum of 1 hour billed.\n\n- The respond times for emergency support requests should be within 4 hour\n    (barring any unforseen limitations).\n\nIf this is still acceptible, click OK, otherwise click Cancel.");
		if (emerConfirm)
		{
			return true;
	   	}
		else 
		{
        	emerCheckbox.checked = false;
			return false;
		}
	}
	else 
	{
    	return true;
	}
}


function contact_validate()
{
    returnValue = false;
    var name = document.getElementById('contact_name');
    var email = document.getElementById('contact_email');

    if(name.value == '' || email.value == '')
        alert("Please make sure that your name and email address are filled in.");
    else
        returnValue = true;
        
    return returnValue;
}