function DisplayLookupHelp(strHelpType, event) {
    var mTxt;
    var strTableSetting = "width=180 border=1 cellspacing=0 cellpadding=4 bgcolor=#FFFF80 background=images/trans.gif bordercolor=#000000";

    switch (strHelpType) {
        case "Lookup":
            mTxt = '<table ' + strTableSetting + '>' +
								'<tr><td align="left" valign="top">' +
									'<SPAN class=HelpContent>' +
										'<b>Partial lookup</b><br><br>' +
										'To look up specific properties, type your search criteria here.  ' +
										'Enter an address (example: "125 Main"), building name (example: "Western Metal Building"), or park name (example: "Sawgrass Commerce Center"). ' +
										'Then press Enter or click "Go" to find your matching properties.' +
									'</SPAN>' +
								'</td></tr>' +
							'</table>';
            break;
        case "Properties for Lease":
            mTxt = '<table ' + strTableSetting + '>' +
							'<tr><td align=left valign=top class=Helpcontent>' +
								'Show for lease properties' +
							'</td></tr>' +
						 '</table>';
            break;
        case "Properties for Sale":
            mTxt = '<table ' + strTableSetting + '>' +
							'<tr><td align=left valign=top class=Helpcontent>' +
								'Show for sale properties' +
							'</td></tr>' +
						 '</table>';
            break;
        case "For Lease Search":
            mTxt = '<table ' + strTableSetting + '>' +
							'<tr><td align=left valign=top class=Helpcontent>' +
								'Search for lease properties' +
							'</td></tr>' +
						 '</table>';
            break;
        case "For Sale Search":
            mTxt = '<table ' + strTableSetting + '>' +
							'<tr><td align=left valign=top class=Helpcontent>' +
								'Search for sale properties' +
							'</td></tr>' +
						 '</table>';
            break;
        case "For Lease Map":
            mTxt = '<table ' + strTableSetting + '>' +
							'<tr><td align=left valign=top class=Helpcontent>' +
								'Mapping for lease properties' +
							'</td></tr>' +
						 '</table>';
            break;
        case "For Sale Map":
            mTxt = '<table ' + strTableSetting + '>' +
							'<tr><td align=left valign=top class=Helpcontent>' +
								'Mapping for sale properties' +
							'</td></tr>' +
						 '</table>';
            break;
        case "Calculator":
            mTxt = '<table ' + strTableSetting + '>' +
							'<tr><td align=left valign=top class=Helpcontent>' +
								'Determine how much office space you need' +
							'</td></tr>' +
						 '</table>';
            break;
        case "Mailers":
            mTxt = '<table ' + strTableSetting + '>' +
							'<tr><td align=left valign=top class=Helpcontent>' +
								'Pick up broker mailers' +
							'</td></tr>' +
						 '</table>';
            break;
        case "Login":
            mTxt = '<table ' + strTableSetting + '>' +
							'<tr><td align=left valign=top class=Helpcontent>' +
								'Login as administrator to configure the site' +
							'</td></tr>' +
						 '</table>';
            break;
        case "Logout":
            mTxt = '<table ' + strTableSetting + '>' +
							'<tr><td align=left valign=top class=Helpcontent>' +
								'Administrator logout' +
							'</td></tr>' +
						 '</table>';
            break;
    }
    showItMap('', '', mTxt, -20, -160, event);
}

function KeyPress(fn, btn, evt) {
    if (window.event) {
        evt = window.event;
    }
    if (evt.keyCode == 13) {
        if (fn()) {
            __doPostBack(btn, "");
            return false;
        }
    }
}

function SendEmail(psSubject, psURL) {

    psURL = psSubject.replace('&', '%26') + psURL;
    var cpModule = new LoadModule('ConnectPopups/SendEmail', 'Email.ascx');

    cpModule.ReturnForm = ElemPrefix;
    cpModule.Params = psURL;
    cpModule.WinSizeX = 470;
    cpModule.WinSizeY = 430;
    cpModule.ReturnFunction = null;
    cpModule.Title = 'Send Email';
    cpModule.ScrollBars = false;
    cpModule.MenuBar = false;
    cpModule.Modal = false;
    cpModule.PostBack = false;
    cpModule.WaitPage = true;
    cpModule.WaitTitle = 'Processing Your Request';
    cpModule.Show();
}

function ShowMapCard(psSiteID, psCheckSum, pbIsForLease, psMapSource) {
    var sURL = "SiteId=" + psSiteID + "&CheckSum=" + psCheckSum + "&IsForLease=" + pbIsForLease + "&MapSource=" + psMapSource;
    var cpModule = new LoadModule('ConnectPopups/MapCard', 'VEMapCard.ascx');

    cpModule.ReturnForm = ElemPrefix;
    cpModule.Params = sURL;
    cpModule.WinSizeX = 600;
    cpModule.WinSizeY = 800;
    cpModule.ReturnFunction = null;
    cpModule.Title = 'Map Card';
    cpModule.ScrollBars = false;
    cpModule.MenuBar = true;
    cpModule.Modal = false;
    cpModule.PostBack = false;
    cpModule.WaitPage = true;
    cpModule.WaitTitle = 'Processing Your Request';
    cpModule.Show();
}


function NavigatorOnGoClick() {
    var sPageNo = Trim(document.forms[0].elements[ElemPrefix + "$txtPageNo"].value);
    if (sPageNo == "" || isNaN(sPageNo)) {
        alert("Invalid page number.");
        document.forms[0].elements[ElemPrefix + "$txtPageNo"].value = document.forms[0].elements[ElemPrefix + "$htmlPageNumberInput"].value
        return false;
    }
    return true;
}

function NavigatorOnBottomGoClick() {
    var sPageNo = Trim(document.forms[0].elements[ElemPrefix + "$txtPageNoBottom"].value);
    if (sPageNo == "" || isNaN(sPageNo)) {
        alert("Invalid page number.");
        document.forms[0].elements[ElemPrefix + "$txtPageNoBottom"].value = document.forms[0].elements[ElemPrefix + "$htmlPageNumberInput"].value
        return false;
    }
    return true;
}			