﻿function ValidateSearchInput(btn)
{
    var element = $(btn).previous('input');
    if (element.value == element.defaultValue)
    {
        element.focus();
        return false;
    }
    else
    {
        return true;
    }
}

function preventSubmit(e, btnID)
{
    try {
			if (e.keyCode == 13) 
			{
				$(btnID).next('input').click();
			
				e.returnValue = false;
				e.cancel = true;
				e.preventDefault();
				e.stopPropagation();
			}
		}
		catch (exp) { }
}

function regnrHelper(field, next) {
    if (field.value.length == 3) {
        $(next).focus();
    }
}




