﻿function isvalidzip(source, arguments)
{
	var zip = document.getElementById('tbZipCode').value;
    
	if(zip.length < 5)
	{
		arguments.IsValid = false;
	}
        
	return;
}

function isvalidlocation(source, arguments)
{
	var location = document.getElementById('tbLocation').value;
	
	if (location.indexOf(",") < 0)
	{
		arguments.IsValid = false;
	}
	
	return;
}

function isvalidkeyword(source, arguments)
{
	var keyword = document.getElementById('tbAdvancedSearch').value;
	
	if (keyword.length < 3)
	{
		arguments.IsValid = false;
	}
	
	return;
}