  //main
var H1="home_page.htm"
var H2="Temple_Mission.htm"
var H3="Temple_History.htm"
var H4="Historical_Marker.htm"
var H5="Programs.htm"
var H6="Religious_Services.htm"
var H7="Priest_Schedule.htm"
var H8="Forms_and_Guidelines_Main_link.htm"
var H9="Educational.htm"
var H10="Rental_and_Sales_Main_link.htm"
var H11="Food_Main_link.htm"
var H12="Pay_Donation.htm"
var H13="Collect_Donation.htm"
var H14="Community_Services.htm"
var H15="Library.htm"
var H16="Publication.htm"
var H17="Management.htm"
var H18="Members.htm"
var H19="Local_Business.htm"
var H20="Ohio_Temples.htm"

//main sub pages
var H21="Location.htm"
var H22="Direction.htm"
var H23="Contact_Us.htm"
var H24="Forgot_Password.htm"
var H25="Login_Screen.htm"
var H26="Search_Page.htm"
var H27="Main_Payment_Mode.htm"
var H28="Main_Pay_Cash_Check.htm"
var H29="Main_Pay_Online.htm"
var H30="Confirmation_Page.htm"
var H31="Thanks_Page.htm"
var H32="Shopping_Cart.htm"
var H33="Standing_Committees.htm" //(sub publication)



//member
var H34="user_profile.htm"
var H35="Personal_Profile.htm"
var H36="view_programs.htm"
var H37="Temple_Service_Code.htm"
var H38="Forms_and_Guidelines.htm"
var H39="Temple_Service.htm"
var H40="Community_Services-Member.htm"
var H41="Library-Member.htm"
var H42="Publication-Member.htm"
var H43="Management-Member.htm"
var H44="Members-Members.htm"
var H45="Local_Business-member.htm"
var H46="Ohio_Temple.htm"
var H47="Donation_History.htm"
var H48="Year_End_Donation.htm"
var H49="Priest_Leave_Details.htm"
var H50="Banners.htm"
var H51="Bulk_E-mail.htm"
var H52="Refund_Donation.htm"
var H53="Change_Password.htm"
var H54="Priest_Schedule_Report.htm"

//member sub pages
var H55="Spouse_&_Kids.htm"
var H56="Company.htm"
var H57="Membership.htm"
var H58="Roles.htm"
var H59="Programs_Create.htm"
var H60="Category_Event.htm"
var H61="Temple_Service_Code_List.htm"
var H62="Temple_Service_List.htm"
var H63="Pooja_List.htm"
var H64="Forms_and_Guidelines_Create.htm"
var H65="Educational_Programs.htm"
var H66="Rental_and_Sales.htm"
var H67="Mahaprasad.htm"
var H68="Food.htm"
var H69="Category.htm"
var H70="Community_Services-Edit.htm"
var H71="Library-Edit.htm"
var H72="Category-Library.htm"
var H73="Publication-Edit.htm"
var H74="Sub_Publication.htm"
var H75="Category-Committee.htm"
var H76="Category-Designation.htm"
var H77="Members-Membership_Type.htm"
var H78="Members-Sponsor_Type.htm"
var H79="Local_Business-Edit.htm"
var H80="Category-Local_Business.htm"
var H81="Ohio_Temples-Edit.htm"
var H82="View_Donation_History.htm"
var H83="Donation_History_Details.htm"
var H84="Year_End_Donation-view.htm"
var H85="Add_Priest_Leave_Details.htm"
var H86="New_Banner_details.htm"
var H87="Refund_Donation-Edit.htm"
var H88="Touch_Screen.htm"
var H89="Authorization.htm"
var H90="Error.htm"



//Copyright Patrick Roebuck roebuck@v-page.com www.v-page.com
var newWindow
var newWindowSimple
var helpWindow 
var helpWindowSimple
var strProjectFramesPagePlus = "CHT.htm#"//defines the name of the start or frameset page for the WebHelp project
var strProjectPath
var strHelpPage
var isNav4 = (navigator.appName == "Netscape" && parseInt(navigator.appVersion) == 4)
var gblfilename
gblfilename=""
function callHelp(strProjectPath,strHelpPage)
{
	var strTriHelpWindowOptions = ",toolbar=yes,resizable=yes";//defines whether to display the toolbar (yes) or hides it (no)
	strTriHelpWindowOptions += ",top=10";//defines the distance from the top of the screen that the browser window is opened
	strTriHelpWindowOptions += ",left=05";//defines the distance from the left of the screen that the browser window is opened
	strTriHelpWindowOptions += ",width=780";//defines the width of the browser window
	strTriHelpWindowOptions += ",height=460";//defines the height of the browser window
	if (isNav4)
	{
		helpWindow = window.open("", newWindow, strTriHelpWindowOptions);
		if (helpWindowSimple && !helpWindowSimple.closed)
		{
			helpWindowSimple.close();
		}
		helpWindow.close();
		helpWindow = window.open("", newWindow, strTriHelpWindowOptions);
		helpWindow.location.href = strProjectPath + strProjectFramesPagePlus + strHelpPage;
		helpWindow.focus();
	}
	else if (helpWindow == null || helpWindow.closed)
	{
		if (helpWindowSimple && !helpWindowSimple.closed)
		{
			helpWindowSimple.close();
		}
		helpWindow = window.open("", newWindow, strTriHelpWindowOptions);
		helpWindow.location.href = strProjectPath + strProjectFramesPagePlus + strHelpPage;
		callHelp(strProjectPath,strHelpPage)
	}
	else if (helpWindow && !helpWindow.closed)
	{
		if (helpWindowSimple && !helpWindowSimple.closed)
		{
			helpWindowSimple.close();
		}
		//helpWindow.bsscright.location.href = strProjectPath + strHelpPage;
		//helpWindow.focus();
		if(helpWindow !=null)
		{
			helpWindow.close()
		}
		helpWindow = window.open("", newWindow, strTriHelpWindowOptions);
		helpWindow.location.href = strProjectPath + strProjectFramesPagePlus + strHelpPage;
	}
}



function isHelp(file)
{
	gblfilename=file
	var browser_type = (navigator.appName == "Netscape")
	if(browser_type==true)
	{
			//non IE
			if( Event.KEYUP )
			{
				//NS 4, NS 6+, Mozilla 0.9+
				document.captureEvents( Event.KEYUP );
			}
			/* this next line tells the browser to detect a keyup
			event over the whole document and when it detects it,
			it should run the event handler function 'alertkey'  */
	document.onkeyup = alertkey;
	} 
	else
	{
		if( document.captureEvents ) 
		{ 
			document.captureEvents( Event.KEYUP ); 
		}
	document.onkeyup = alertkey;
	//where alertKey is a function that will handle the event
	}
}

//NOW CREATE THE EVENT HANDLER FUNCTION TO PROCESS THE EVENT
function alertkey(e) {
    if( !e ) {
        //if the browser did not pass the event information to the
        //function, we will have to obtain it from the event register
        if( window.event ) {
            //DOM
            e = window.event;
        } else {
            //TOTAL FAILURE, WE HAVE NO WAY OF REFERENCING THE EVENT
            return;
        }
    }
    
    if( typeof( e.which ) == 'number' )
    {
        //NS 4, NS 6+, Mozilla 0.9+, Opera
        e = e.which;
    }
    else if( typeof( e.keyCode ) == 'number'  )
	{
		//IE, NS 6+, Mozilla 0.9+
		 e = e.keyCode;
	} 
    else if( typeof( e.charCode ) == 'number'  ) 
    {
        //also NS 6+, Mozilla 0.9+
        e = e.charCode;
    }
    else 
    {
        //TOTAL FAILURE, WE HAVE NO WAY OF OBTAINING THE KEY CODE
        return
    }
    if(e==112)
    {
		if(str_UserID =="")
		{
			callHelp('WebHelpNonmember/',gblfilename)
		}
		else
		{
			callHelp('WebHelpMember/',gblfilename)
		}
	}
	
    //window.alert('The key pressed has keycode ' + e +
       // ' and is key ' + String.fromCharCode( e ) );
}



