
function goTo(url) 
{
	location.href = url;
}


function btnSubmit_Click(btnSubmit) 
{
	btnSubmit.disabled = true;	
	var btnSubmitTrue = document.getElementById('btnSubmitTrue');
	if (btnSubmitTrue)
	{
		btnSubmitTrue.click();
	}
}


function validateBand() 
{
	return true;
}

function validateForm()
{
	var errorMsg = '';
	var ddlContact = document.getElementById('ddlContact');
	var ddlCompensation = document.getElementById('ddlCompensation');
	
	
	if ($('#txtName').attr('value') == '') 
	{
		errorMsg += 'Name is blank\n';
	}
	if ($('#txtHometown').attr('value') == '') 
	{
		errorMsg += 'Hometown is blank\n';
	}
	if ($('#txtContactPerson').attr('value') == '') 
	{
		errorMsg += 'Contact Person is blank\n';
	}
	if ($('#txtPhone').attr('value') == '') 
	{
		errorMsg += 'Phone is blank\n';
	}
	if ($('#txtEmail').attr('value') == '') 
	{
		errorMsg += 'Email is blank\n';
	}
	
	if (ddlContact.options[ddlContact.selectedIndex].value == '') 
	{
		errorMsg += 'Please select a Contact Method\n';
	}
	
	if (ddlCompensation.options[ddlCompensation.selectedIndex].value == '') 
	{
		errorMsg += 'Please select your Required Compensation\n';
	}

	if (ddlCompensation.options[ddlCompensation.selectedIndex].value == 'Minimum Guarantee'
		&& $('#txtGuarantee').attr('value') == '')
	{
		errorMsg += 'Please enter your Minimum Guarantee\n';
	}

	if ($('#chkMay27').attr('checked') != true &&
		$('#chkMay28').attr('checked') != true &&
		$('#chkMay29').attr('checked') != true &&
		$('#chkMay30').attr('checked') != true)
		
	{
		errorMsg += 'Please select at least one availability date\n';
	}
	if (errorMsg == '') 
	{
		return true;
	}
	else 
	{
		alert('Your application form needs some touching up\n\n' + errorMsg);
		return false;
	}

}
