﻿function txtPassword_KeyUp(event)
{
    if (IsEnter(event))
        Login('txtUsername', 'txtPassword', 'chkRemember');
}
function searchFocus(cb)
{
	if (cb.GetText() == 'Search')
		cb.SetText('');
}
function searchBlur(cb)
{
	if (cb.GetText() == '')
		cb.SetText('Search');
}
function searchGo(cb, args)
{
	var code = args.keyCode;
	if (code == 13)
		Search(cbSearchTerms.GetText());
}
function txtSearchText_KeyUp(event)
{
    if (IsEnter(event))
        Search(cbSearchTerms.GetText());
}
function EditUnderNav()
{
	showDialog("EditContentWindow", function(value){
        if (value != null)
            window.location = window.location;
    }, appPath + "utils/modal/editcontent.aspx?undernav=true");
}