// JScript File
function help(path)
	{ 
	var url=document.location.pathname.toLowerCase();
	if(url=="/admin/admin_default.aspx")
	{
		window.open(path+"help/dashboard.html#d","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_tickets.aspx")
	{
		window.open(path+"help/dashboard.html#t","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_tickets_view.aspx")
	{
		window.open(path+"help/dashboard.html#etd","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_customer_search.aspx")
	{
		window.open(path+"help/dashboard.html#ctc","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_tickets_department.aspx")
	{
		window.open(path+"help/dashboard.html#sd","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/tickets_add.aspx")
	{
		window.open(path+"help/dashboard.html#at","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/collaboratetickettokb.aspx")
	{
		window.open(path+"help/dashboard.html#cta","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	
	else if(url=="/admin/livechat/livechat.aspx")
	{
		window.open(path+"help/dashboard.html#c","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/operatorchatwindow.aspx")
	{
		window.open(path+"help/dashboard.html#opw","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/report.aspx")
	{
		window.open(path+"help/dashboard.html#lcr","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/rating.aspx")
	{
		window.open(path+"help/dashboard.html#sqe","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/cannedresponsesettings.aspx")
	{
		window.open(path+"help/dashboard.html#cr","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/cannedresponsecreate.aspx")
	{
		window.open(path+"help/dashboard.html#aecr","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	
	else if(url=="/admin/livechat/settings/icons.aspx")
	{
		window.open(path+"help/dashboard.html#icon","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/faq/safaq_dashboard.aspx")
	{
		window.open(path+"help/adminkbaxis.html#kb","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/faq/safaq_categorylist.aspx")
	{
		window.open(path+"help/adminkbaxis.html#cl","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/faq/safaq_categoryadd.aspx")
	{
		window.open(path+"help/adminkbaxis.html#ac","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/faq/safaq_categoryedit.aspx")
	{
		window.open(path+"help/adminkbaxis.html#ec","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/faq/safaq_deactivecategorylist.aspx")
	{
		window.open(path+"help/adminkbaxis.html#iac","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/faq/safaq_questionlist.aspx")
	{
		window.open(path+"help/adminkbaxis.html#al","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/faq/safaq_addquestion.aspx")
	{
		window.open(path+"help/adminkbaxis.html#aa","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/faq/safaq_editquestion.aspx")
	{
		window.open(path+"help/adminkbaxis.html#ea","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/faq/safaq_inactivequestionlist.aspx")
	{
		window.open(path+"help/adminkbaxis.html#iaa","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configuration_usermanagement_select.aspx")
	{
		window.open(path+"help/usermanagement.html#sm","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configure_permission_select.aspx")
	{
		window.open(path+"help/usermanagement.html#r","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configure_designation_roles.aspx")
	{
		window.open(path+"help/usermanagement.html#ar","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configure_roles_edit.aspx")
	{
		window.open(path+"help/usermanagement.html#er","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configuration_department_select.aspx")
	{
		window.open(path+"help/usermanagement.html#d","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configuration_usermanagement_department.aspx")
	{
		window.open(path+"help/usermanagement.html#aad","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configuration_department_edit.aspx")
	{
		window.open(path+"help/usermanagement.html#ead","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configuration_usermanagement_add.aspx")
	{
		window.open(path+"help/usermanagement.html#asp","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configuration_usermanagement_edit.aspx")
	{
		window.open(path+"help/usermanagement.html#esp","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configure_customer_select.aspx")
	{
		window.open(path+"help/usermanagement.html#c","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configure_customer_add.aspx")
	{
		window.open(path+"help/usermanagement.html#acp","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configure_customer_edit.aspx")
	{
	    window.open(path+"help/usermanagement.html#ecp","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/visitor/tickets/tickets.aspx")
	{
	    window.open(path+"help/ticketaxis.html#ctd","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/visitor/tickets/selectdepartment.aspx")
	{
	    window.open(path+"help/ticketaxis.html#aatsd","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/visitor/tickets/tickets_add.aspx")
	{
	    window.open(path+"help/ticketaxis.html#aattf","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/visitor/tickets/tickets.aspx")
	{
	    window.open(path+"help/ticketaxis.html#sat","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/visitor/tickets/viewtickets.aspx")
	{
	    window.open(path+"help/ticketaxis.html#uat","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/visitor/tickets/register.aspx")
	{
	    window.open(path+"help/ticketaxis.html#ncr","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	
	else if(url=="/visitor/tickets/nonregisteredticket.aspx")
	{
	    window.open(path+"help/ticketaxis.html#qt","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	
	else if(url=="/visitor/tickets/myaccount_edit.aspx")
	{
	    window.open(path+"help/ticketaxis.html#ep","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	
	else if(url=="/admin/configure_companysettings.aspx")
	{
	    window.open(path+"help/settingsconfig.html#sc","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/configuration_usermanagement_edit.aspx")
	{
	    window.open(path+"help/settingsconfig.html#uat","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configuration_messages.aspx")
	{
	    window.open(path+"help/settingsconfig.html#tsefus","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configuration_message_edit.aspx")
	{
	    window.open(path+"help/settingsconfig.html#cme","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configuration_slamessage_edit.aspx")
	{
	    window.open(path+"help/settingsconfig.html#msmm","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/forgotpasswordmessage_edit.aspx")
	{
	    window.open(path+"help/settingsconfig.html#mfpmm","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/registrationmessage_edit.aspx")
	{
	    window.open(path+"help/settingsconfig.html#mcrm","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_plans_manage.aspx")
	{
	    window.open(path+"help/settingsconfig.html#sp","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_plans_add.aspx")
	{
	    window.open(path+"help/settingsconfig.html#ap","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_plans_edit.aspx")
	{
	    window.open(path+"help/settingsconfig.html#ep","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_schedule_manage.aspx")
	{
	    window.open(path+"help/settingsconfig.html#s","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_schedule_add.aspx")
	{
	    window.open(path+"help/settingsconfig.html#as","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_schedule_edit.aspx")
	{
	    window.open(path+"help/settingsconfig.html#es","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_forms_manage.aspx")
	{
	    window.open(path+"help/settingsconfig.html#ff","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_form_add.aspx")
	{
	    window.open(path+"help/settingsconfig.html#af","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_forms_edit.aspx")
	{
	    window.open(path+"help/settingsconfig.html#ef","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_controls.aspx")
	{
	    window.open(path+"help/settingsconfig.html#ac","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_controls_display.aspx")
	{
	    window.open(path+"help/settingsconfig.html#apc","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/tickets/configure_controls_edit.aspx")
	{
	    window.open(path+"help/settingsconfig.html#ec","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/settings.aspx")
	{
	    window.open(path+"help/settingsconfig.html#c","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/customfields.aspx")
	{
	    window.open(path+"help/settingsconfig.html#lcff","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/customfields_add.aspx")
	{
	    window.open(path+"help/settingsconfig.html#cfa","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/customfields_edit.aspx")
	{
	    window.open(path+"help/settingsconfig.html#cfe","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/banner.aspx")
	{
	    window.open(path+"help/settingsconfig.html#b","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/popupsettings.aspx")
	{
	    window.open(path+"help/settingsconfig.html#cws","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/managelivechatsettings.aspx")
	{
	    window.open(path+"help/settingsconfig.html#ws","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/graphicschatbutton.aspx")
	{
	    window.open(path+"help/settingsconfig.html#gcbc","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/textchatbuttoncode.aspx")
	{
	    window.open(path+"help/settingsconfig.html#clh","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/customimagecode.aspx")
	{
	    window.open(path+"help/settingsconfig.html#cgcbc","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/emailchatbuttoncode.aspx")
	{
	    window.open(path+"help/settingsconfig.html#lfe","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/noscriptcode.aspx")
	{
	    window.open(path+"help/settingsconfig.html#cncb","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/monitor.aspx")
	{
	    window.open(path+"help/settingsconfig.html#cwm","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/offlinesettings.aspx")
	{
	    window.open(path+"help/settingsconfig.html#os","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/messagesettings.aspx")
	{
	    window.open(path+"help/settingsconfig.html#cms","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/livechat/settings/transcriptsettings.aspx")
	{
	    window.open(path+"help/settingsconfig.html#cts","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/faq/safaq_settings.aspx")
	{
	    window.open(path+"help/settingsconfig.html#mkbs","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/news/newssettings.aspx")
	{
	    window.open(path+"help/settingsconfig.html#mnas","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/news/newssettings.aspx")
	{
	    window.open(path+"help/settingsconfig.html#mnas","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/news/newslist.aspx")
	{
	    window.open(path+"help/newsaxis.html#unal","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/news/activenews.aspx")
	{
	    window.open(path+"help/newsaxis.html#pnal","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/news/inactivenewslist.aspx")
	{
	    window.open(path+"help/newsaxis.html#anal","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/news/newsedit.aspx")
	{
	    window.open(path+"help/newsaxis.html#ena","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/news/newsadd.aspx")
	{
	    window.open(path+"help/newsaxis.html#ana","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/news/commentslist.aspx")
	{
	    window.open(path+"help/newsaxis.html#caal","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/news/commentsedit.aspx")
	{
	    window.open(path+"help/newsaxis.html#eco","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/troubleshooter/commentslist.aspx")
	{
	    window.open(path+"help/resloveaxis.html#comlist","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/troubleshooter/categorylist.aspx")
	{
	    window.open(path+"help/resloveaxis.html#catlist","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/troubleshooter/categoryadd.aspx")
	{
	    window.open(path+"help/resloveaxis.html#ac","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/troubleshooter/categoryedit.aspx")
	{
	    window.open(path+"help/resloveaxis.html#ec","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(url=="/admin/troubleshooter/managesteps.aspx")
	{
	    window.open(path+"help/resloveaxis.html#ms","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
		else if(url=="/admin/troubleshooter/settings.aspx")
	{
	    window.open(path+"help/settingsconfig.html#mras","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}

	
	else if(url=="" || url=="/home.aspx" || url=="/" )
	{
		window.open(path+"help/ticketaxis.html#chp","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
}

function kbhelp(path,filepath)
{
    if(filepath=="/visitor/knowledgebase/default.aspx")
	{
		window.open(path+"help/kbaxis.html#kb","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(filepath=="/visitor/knowledgebase/category.aspx")
	{
		window.open(path+"help/kbaxis.html#sc","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(filepath=="/visitor/knowledgebase/questions.aspx")
	{
		window.open(path+"help/kbaxis.html#article","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(filepath=="/visitor/knowledgebase/searchpanel.aspx")
	{
		window.open(path+"help/kbaxis.html#as","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(filepath=="/visitor/knowledgebase/search.aspx")
	{
		window.open(path+"help/kbaxis.html#sr","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
}
function newshelp(path,filepath)
{
    if(filepath=="/visitor/news/default.aspx")
	{
		window.open(path+"help/visitornews.html#vns","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(filepath=="/visitor/news/news.aspx")
	{
		window.open(path+"help/visitornews.html#pna","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
}
function tshelp(path,filepath)
{
    if(filepath=="/visitor/troubleshooter/default.aspx")
	{
		window.open(path+"help/visitorts.html#vts","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(filepath=="/visitor/troubleshooter/category.aspx")
	{
		window.open(path+"help/visitorts.html#vtsc","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
	else if(filepath=="/visitor/troubleshooter/steps.aspx")
	{
		window.open(path+"help/visitorts.html#vtss","mywindow","location=0,status=0,scrollbars=1,width=500,height=420,resize=0");
	}
}
