var thepathandpage = Exceptions(location.pathname)
var default_org4 = "Unassigned"
var default_org5 = "Unassigned"
var culture = (typeof wa_queryObj.culture == "undefined") ? "no UI" : wa_queryObj.culture;
var query = (typeof wa_queryObj.q == "undefined") ? "Advanced Search" : wa_queryObj.q;
var default_orgX = default_org5 + "|" + thepathandpage
var org4=((typeof window.p_org4 == "undefined") || (!p_org4)) ? default_org4 : p_org4;
var orgX=((typeof window.p_org5 == "undefined") || (!p_org5)) ? default_orgX : p_org5 + "|" + thepathandpage;
var wa_pageName=thepathandpage
var wa_geo="asmo-na"
var wa_language="eng"
var wa_org1="CIM"
var wa_org2="Corporate Search"
var wa_org3=""
var wa_org4=org4
var wa_orgX=orgX
var wa_urlQueryString=""
//var wa_reportSuites="intelcorpsearch, intelsearch"
var wa_reportSuites=SetReportSuites();
var wa_ngipDocId=""
var wa_ngipUniqueId=""
var wa_campaign=(typeof wa_queryObj.ppc_cid == "undefined") ? "" : wa_queryObj.ppc_cid;
var wa_events="event5"
var wa_custom01=""
var wa_custom02=""
var wa_custom03=""
var wa_custom04=LoadReportingVariables(document.getElementById('reporting-clicksource'));
var wa_custom05=""
var wa_custom06=""
var wa_custom07=""
var wa_custom08=""
var wa_custom09=""
var wa_custom10=""
//var wa_custom11=(typeof wa_queryObj.q == "undefined") ? "" : "corp search: " + wa_queryObj.q;
var wa_custom11= "corp search: " + culture + ": " + decodeURI(query);
var wa_custom12=""
var wa_custom13=""
var wa_custom14=""
var wa_custom15=LoadReportingVariables(document.getElementById('reporting-category'));
var wa_custom36=location.protocol + "//" + location.host + unescape(location.pathname);
var wa_custom37=LoadReportingVariables(document.getElementById('reporting-client'));
var wa_custom38=LoadReportingVariables(document.getElementById('reporting-site'));
//var wa_c39=LoadReportingVariables(document.getElementById('reporting-UserQuery'));
var wa_custom39=decodeURI(query);
var wa_custom40=LoadReportingVariables(document.getElementById('reporting-results'));
var wa_custom41=LoadReportingVariables(document.getElementById('reporting-access'));
var wa_custom42=""
var wa_custom43=""
var wa_custom44=""
var s_charSet='utf-8';

function Exceptions(pagename){
	// Capture all index pages as index.htm.
	// e.g. /support/chipsets/ should be renamed to /support/chipsets/index.htm
	pagename = pagename.replace(/(\/)$/, "/index.htm");
	return pagename;
}

function LoadReportingVariables(ReportingVariable){

    if (ReportingVariable==null)
    {
        return "";
    }
    else
    {
        return ReportingVariable.value;
    }    
}
//if there is not search value then do not send data to the intelsearch suite
function SetReportSuites(ReportingVariable){

    if (document.getElementById('reporting-UserQuery')==null)
    {
        return "intelcorpsearch";
    }
    else
    {
        return "intelcorpsearch,intelsearch";
    }    
}

