function jsMapOnlineHelp(strMapId){
    //jsOpenOLHelp("onlinehelpfail.html");
switch(strMapId){
    //About Summary
    case "summary\System.htm":
        jsOpenOLHelp("The-Summary-Screen.html");
        break;
		
	case "summary\Summary_virus.htm":
        jsOpenOLHelp("Scan-Status-for-Toda.html");
        break;
	
	case "summary\Scanmonitor.htm":
		jsOpenOLHelp("Understanding-the-Re.html");
		break;
		
	case "summary\server_management_console.htm":
		jsOpenOLHelp("Understanding-the-Se.html");
        break;
	
	//About Risk Security Scan
	case "config_sec_risk_scan_target_settings.htm":
		jsOpenOLHelp("Configuring-Security.html");
		break;
	
	case "config_sec_risk_scan_action_settings.htm":
		jsOpenOLHelp("Configuring-Security_001.html");
		break;	
		
	case "security_risk_scan_notifications.htm":
		jsOpenOLHelp("Configuring-Security_002.html");
		break;
	
	//About File Blocking
	case "adding_a_file_blocking_for_moss_2010.htm":
		jsOpenOLHelp("Configuring-File-Blo.html");
		break;
		
	case "step_1_specify_rules_file_blocking_add_policy_moss_2010.htm":
		jsOpenOLHelp("Step-1.-File-Blockin.html");
		break;
		
	case "step_2_exceptions_fb_moss_2010.htm":
		jsOpenOLHelp("Step-3.-File-Blockin.html");
		break;
		
	case "step_3_specify_action_fb_moss_2010.htm":
		jsOpenOLHelp("Step-4.-File-Blockin.html");
		break;
		
	case "step_4_specify_notification_fb_moss_2010.htm":
		jsOpenOLHelp("Step-5.-File-Blockin.html");
		break;
		
	case "step_5_name_and_priority_fb_moss_2010.htm":
		jsOpenOLHelp("Step-2.-File-Blockin.html");
		break;
		
	case "Attachmentblocking_Edit_Policy.htm":
		jsOpenOLHelp("Editing-a-File-Block.html");
		break;
				
	//About Content Filtering
	case "configuring_content_filtering.htm":
		jsOpenOLHelp("Configuring-Content-.html");
		break;
	
	case "scan\Contentfiltering_edit_2010.htm":
		jsOpenOLHelp("Editing-a-Content-Fi.html");
        break;
	
	//About Data Loss Prevention
	//DLP Policies
	case "scan\Datalossprevention_RS_Rule_List.htm":
        jsOpenOLHelp("Data-Loss-Prevention_001.html");
        break;
		
	case "scan\datalossprevention_edit_2010.htm":
		jsOpenOLHelp("Editing-a-Data-Loss-.html");
        break;
				
	/*case "step_1_specify_rules_dp_moss_2010.htm":
		jsOpenOLHelp("Step-1_-Specify-Rule_001.html");
		break;
	
    case "step_2_exceptions_dp_moss_2010.htm":
		jsOpenOLHelp("Step-2_-Exceptions-(.html");
		break;
	
    case "step_3_action_dp_moss_2010.htm":
		jsOpenOLHelp("Step-3_-Specify-Acti_001.html");
		break;
	
    case "step_4_specify_notification_dp_moss_2010.htm":
		jsOpenOLHelp("Step-4_-Specify-Noti_001.html");
		break;
	
    case "step_5_name_priority_dp_moss_2010.htm":
		jsOpenOLHelp("Step-5_-Name-and-Pri_001.html");
		break;*/
	
	//DLP Templates
    case "scan\Datalossprevention_Templates_List.htm":
	case "scan\Datalossprevention_Templates_Add.htm":
	case "scan\Datalossprevention_Templates_Edit.htm":
		jsOpenOLHelp("DLP-Compliance-Templ.html");
        break;		

	//DLP Data Identifiers
	case "scan\Datalossprevention_ExpressionKeywords_List.htm":
		jsOpenOLHelp("Data-Identifier-Type.html");
		break;		
		
	case "scan\Datalossprevention_Expression_Add.htm":
	case "scan\Datalossprevention_Expression_Edit.htm":
		jsOpenOLHelp("Expressions.html");
		break;		
		
	case "scan\Datalossprevention_Keyword_Add.htm":
	case "scan\Datalossprevention_Keyword_Edit.htm":
		jsOpenOLHelp("Keywords.html");
		break;		
    	
	//About Web Reputation
	case "config_web_reputation_target_settings.htm":
		jsOpenOLHelp("Configuring-Web-Repu.html");
		break;
	
	case "config_web_reputation_action_settings.htm":
		jsOpenOLHelp("Configuring-Web-Repu_001.html");
		break;
		
    case "web_reputation_notifications.htm":
		jsOpenOLHelp("Configuring-Web-Repu_002.html");
		break;
		
	/*case "scan\about_web_reputation.htm":
		jsOpenOLHelp("Web-Reputation_001.html");
        break;*/
	
	//About Manual Scan
	case "scan\Manualscan.htm":
        jsOpenOLHelp("Configuring-a-Manual.html");
        break;
    
    case "scan\Manualscan_Status.htm":
        jsOpenOLHelp("Manual-Scan.html");
        break;
	
	//MS Security Risk Scan
	case "configuring_manual_scan_security_risk_scan_target_tab.htm":
		jsOpenOLHelp("Step-1.-Configuring-.html");
		break;
	
	case "config_man_scan_sec_risk_scan_action_tab.htm":
		jsOpenOLHelp("Step-2.-Configuring-.html");
		break;

	case "config_man_scan_sec_risk_scan_notif_tab.htm":	
		jsOpenOLHelp("Step-3.-Configure-Ma.html");
		break;

	//MS File Blocking
	case "configuring_manual_scan_file_blocking.htm":
		jsOpenOLHelp("Configuring-Manual-S_001.html");
        break;
		
	case "step_1_man_scan_file_block_add_policy_specify_rules.htm":
		jsOpenOLHelp("Step-1.-Manual-Scan_.html");
        break;
		
	case "step_2__specify_sites_to_be_excluded_.htm":
		jsOpenOLHelp("Step-2.-Manual-Scan_.html");
        break;
		
	case "step_3_manual_scan_file_blocking_add_policy.htm":
		jsOpenOLHelp("Step-3.-Manual-Scan_.html");
        break;
		
	case "step_4_manual_scan_file_blocking_specify_notification.htm":
		jsOpenOLHelp("Step-4.-Manual-Scan_.html");
        break;
		
	case "step_5_manual_scan_file_blocking_(name_and_priority).htm":
		jsOpenOLHelp("Step-5.-Manual-Scan_.html");
        break;
		
	case "scan\Attachmentblocking_Import_Rule_List.htm":  
		jsOpenOLHelp("Importing-File-Block.html");
		break;
	
	//MS Content Filtering
	case "configuring_manual_scan_content_filtering.htm":
		jsOpenOLHelp("Configuring-Manual-S_002.html");
		break;
	
	case "scan\Contentfiltering_Import_Rule_List.htm":
		jsOpenOLHelp("Importing-content-fi.html");
		break;
				
    //MS DLP 
	case "scan\Datalossprevention_MS_Rule_List.htm":
        jsOpenOLHelp("Configuring-Manual-S_003.html");
        break;
	
	case "scan\DLP_Import_Rule_List.htm":
		jsOpenOLHelp("Importing-Data-Loss-.html");
		break;
		
	//case "configuring_manual_scan__web_reputation":
	
	//About Schedule Scan
	case "scan\Scheduledscan_List.htm":        
        jsOpenOLHelp("Configuring-a-Schedu.html");
        break;

    case "scan\Scheduledscan.htm":        
        jsOpenOLHelp("Adding-or-Editing-a-.html");
        break;
	
	//SS Security Risk Scan
	case "configuring_scheduled_scan_task_(target_tab).htm":	
	case "configuring_scheduled_scan_task_(action_tab).htm": 	
	case "configuring_scheduled_scan_task_(notification_tab).htm":
        jsOpenOLHelp("Configuring-Schedule_001.html");
        break;
	
	//SS File Blocking
	case "add_a_scheduled_scan_task_file_blocking.htm":
		jsOpenOLHelp("Configuring-Schedule_002.html");
		break;
		
	case "step_1_specify_rules_scheduled_scan_file_blocking.htm":
		jsOpenOLHelp("Step-1.-Scheduled-Sc_001.html");
		break;	
		
	case "step_2_exceptions_scheduled_scan_file_blocking.htm":
		jsOpenOLHelp("Step-2.-Scheduled-Sc.html");
		break;	
		
	case "step_3_specify_action_scheduled_scan_file_blocking.htm":
		jsOpenOLHelp("Step-3.-Scheduled-Sc.html");
		break;	
		
	case "step_4_specify_notification_scheduled_scan_file_blocking.htm":
		jsOpenOLHelp("Step-4.-Manual-Scan__001.html");
		break;	
		
	case "step_5_name_and_priority_scheduled_scan_file_blocking.htm":
		jsOpenOLHelp("Step-5.-Scheduled-Sc.html");
		break;	
	
	//SS Content Filtering
	case "configuring_scheduled_scan_content_filtering.htm":	
		jsOpenOLHelp("Configuring-Schedule_003.html");
		break;
		
	/*case "step_1_specify_rules_scheduled_scan_content_filtering.htm":
	case "step_2_specify_sites_exclud_sched_scan_cont_filtering.htm":
	case "step_3_specify_action_scheduled_scan_content_filtering.htm":
	case "step_4_specify_notification_scheduled_scan_content_filtering.htm":
	case "step_5_name_and_priority_scheduled_scan_content_filtering.htm":*/

	//SS DLP 
	case "scan\Datalossprevention_SS_Rule_List.htm":
        jsOpenOLHelp("Configuring-Schedule_004.html");
        break;
					
	/*case "step_1_specify_rules_scheduled_scan_dp.htm":
    case "step_2_specify_sites_to_be_excluded_scheduled_dp.htm":
    case "step_3_specify_action_scheduled_scan_dp.htm":
    case "step_4_specify_notification_scheduled_scan_dp.htm":
    case "step_5_name_and_priority_scheduled_scan_dp.htm":*/
	
	//case "configuring_scheduled_scan_web_reputation":
		
	//About Smart Protection
	case "scan\scan_method_setting.htm":
		jsOpenOLHelp("Choosing-a-Security-.html");
		break;
		
	case "scan\smart_source_setting.htm":
		jsOpenOLHelp("Smart-Protection-Sou_001.html");
		break;
		
	case "scan\smart_source_add.htm":
	case "scan\smart_source_edit.htm":
		jsOpenOLHelp("Configuring-Smart-Pr.html");
		break;
	
	//About Updates
	 case "updates\Manual.htm":
        jsOpenOLHelp("Manually-Updating-Yo.html");
        break;
    
    case "updates\UpdateProgress.htm":
        jsOpenOLHelp("Manually-Updating-Yo.html");
        break;
    
    case "updates\Scheduled.htm":
        jsOpenOLHelp("Configuring-Schedule.html");
        break;
		
	/*case "updates\Source.htm":
        jsOpenOLHelp("select_download_source.htm");
        break;*/	
	
	//About Alerts
	case "alert_setting/alertsSystem.htm":
        jsOpenOLHelp("Configuring-Security_002.html");
        break;
   
    case "alert_setting/alertsOutbreak.htm":
        jsOpenOLHelp("Configuring-Security_002.html");
        break;    

    case "alerts\System.htm":
        jsOpenOLHelp("System-Events.html");
        break;    
	
    case "alerts\Outbreak.htm":
        jsOpenOLHelp("Outbreak-Alert.html");
        break;

	//About Reports
    case "reports\Onetime_List.htm":
        jsOpenOLHelp("Generating-a-One-tim.html");
        break;
    
    case "reports\Onetime_Edit.htm":
        jsOpenOLHelp("Generating-a-One-tim.html");
        break; 
    
	case "reports\Scheduled_List.htm":
        jsOpenOLHelp("Creating-a-Scheduled.html");
        break;
		
    case "reports\Scheduled_Edit.htm":
        jsOpenOLHelp("Creating-a-Scheduled.html");
        break;
       
    case "reports\Scheduled_Report_List.htm":
        jsOpenOLHelp("Creating-a-Scheduled.html");
        break;	
		
	case "reports\Maintenance.htm":
        jsOpenOLHelp("Report-Maintenance.html");
        break;
	
	//About Logs
	case "logs\Query.htm":
        jsOpenOLHelp("Performing-a-Log-Que.html");
        break;
	
	case "logs\Maintenance_Manual.htm":
        jsOpenOLHelp("Manually-Deleting-Lo.html");
        break;

    case "logs\Maintenance_Automatic.htm":
        jsOpenOLHelp("Automatically-Deleti.html");
        break;
		
	//About Quarantine
	case "quarantine\query.htm":
        jsOpenOLHelp("Quarantine-Query.html");
        break;
		
	case "quarantine\manually_delete_quarantined_files.htm":
        jsOpenOLHelp("Manually-Deleting-Qu.html");
        break;
		
	case "quarantine\automatically_delete_quarantined_files.htm":
        jsOpenOLHelp("Automatically-Deleti_001.html");
        break;
    	
	//About Administration
	case "administration\Proxy_Settings.htm":
        jsOpenOLHelp("Configuring-Global-P.html");
        break;

    case "administration\Notification_Settings.htm":
        jsOpenOLHelp("Configuring-Global-N.html");
        break;
		
	case "administration\SSORBA_Settings.htm":
        jsOpenOLHelp("About-Access-Control.html");
        break;   	
		
	case "administration\SSO_setting_Authentication.htm":
        jsOpenOLHelp("Access-Control-Authe.html");
        break; 
        
    case "administration\SSO_setting_Permissions.htm":
        jsOpenOLHelp("Access-Control-Permi.html");
        break;  

    case "administration\Product_License.htm":
        jsOpenOLHelp("Product-License.html");
        break;
    
    case "administration\Product_License_Edit.htm":
        jsOpenOLHelp("Activating-PortalPro.html");
        break;
   
    case "administration\CM_Settings.htm":
    case "administration\CM_Settings_Connect_Fail.htm":
    case "administration\CM_Settings_Progress.htm":
    case "administration\CM_Settings_Progress_TestConnect.htm":
    case "administration\CM_Settings_Progress_Unregister.htm":
    case "administration\CM_Settings_Register_Fail.htm": 
    case "administration\CM_Settings_registered.htm":
        jsOpenOLHelp("Configuring-Control-.html");
        break;
		
    case "administration\Admin_debugger.htm":
        jsOpenOLHelp("System-Debugger.html");
        break;
		
	case "scan\global_approved_list.htm":
		jsOpenOLHelp("Global-Approved-List_001.html");
		break;
	
    default:
       // jsOpenOLHelp(strMapId);
	   jsOpenOLHelp("Introducing-PortalPr.html");
        break;   
    }
	
}
function jsOpenOLHelp(sURL) {
	// init variant
	var vSession, vKey, vStamp;
	var allcookie = unescape(document.cookie);
	var CookiePair = allcookie.split(";");
	for(i=0;i<CookiePair.length;i++){
        if(CookiePair[i].indexOf("session=") != -1){
            vSession = CookiePair[i].substring(CookiePair[i].indexOf("=")+1,CookiePair[i].length);
        }
        else if(CookiePair[i].indexOf("key=") != -1){
            vKey = CookiePair[i].substring(CookiePair[i].indexOf("=")+1,CookiePair[i].length);
        }
        else if(CookiePair[i].indexOf("stamp=") != -1){
            vStamp = CookiePair[i].substring(CookiePair[i].indexOf("=")+1,CookiePair[i].length);
        }
    }
	
	var sBase = "./online_help/";
	var sName = "SMEX_HELP_" + vSession + "_" + vKey + "_" + vStamp;
	
	sURL = sBase + sURL;
	var rv = window.open(sURL,sName,"toolbar=no,menubar=no,directories=no,scrollbars=yes,resizable=yes,dependent=yes");
	rv.opener = self;
	
	// resize window
	rv.resizeTo((screen.availWidth*6)/10+1, screen.availHeight);
	rv.moveTo((screen.availWidth*4)/10, 0);
	rv.focus();
}



