function randNum(x, y) {
	var range = y - x + 1;
	return Math.floor(Math.random() * range) + x;
}

function KeyDownHandler(btn)
{
    // process only the Enter key
    if (event.keyCode == 13)
    {
        // cancel the default submit
        event.returnValue=false;
        event.cancel = true;
        // submit the form by programmatically clicking the specified button
        btn.click();
    }
}

function searchValidation()
{
	if (formSearchInc.term.value == "")
	{
		formSearchInc.term.focus();
		return false;
	}
	else
	{
		formSearchInc.term.value = formSearchInc.term.value.replace("'", "");
		return true;
	}
}

