var wa_geo = "unassigned";
var wa_language = (wa_queryObj.lang ? wa_queryObj.lang : "eng");
//var wa_reportSuites = "intelcorpsupp";
var wa_reportSuites=SetReportSuites();
var wa_org1 = "supp";
var wa_org2 = "search";
var wa_org3 = (metatagsObj['PageTitle'] ? metatagsObj['PageTitle'] : location.pathname.toLowerCase());
var wa_org4 = wa_language;
var wa_pageName = ' ' + wa_org3;
if(wa_pageName == " search_results_new"){
	var a, b, c, d;
	a = ((wa_queryObj.as_q == "" || wa_queryObj.as_q == null) ? "" : "all");
	b = ((wa_queryObj.as_epq == "" || wa_queryObj.as_epq == null) ? "" : "+exact");
	c = ((wa_queryObj.as_oq == "" || wa_queryObj.as_oq == null) ? "" : "+any");
	d = ((wa_queryObj.as_eq == "" || wa_queryObj.as_eq == null) ? "" : "+not" );
	var wa_custom09;
	if((a + b + c + d) == ''){
		wa_custom09 = "search_fields_not_used";
	}
	else{
		wa_custom09 = a + b + c + d;
		wa_custom09 = (wa_custom09.substring(0,1) == "+" ? "search_" + wa_custom09.substring(1,wa_custom09.length) : "search_" + wa_custom09);
	}
	if(wa_queryObj.q != ""){var wa_custom10 = "search_" + unescape(unescape(wa_queryObj.q))}
	var wa_custom11;
	if(wa_queryObj.selProduct != ""  && wa_queryObj.selProduct != null){ wa_custom11 = "search_family+line+product"}
	else if(wa_queryObj.selLine != ""  && wa_queryObj.selLine != null){ wa_custom11 = "search_family+line"}
	else if(wa_queryObj.selFamily != "All" && wa_queryObj.selFamily != null){ wa_custom11 = "search_family"}
	else{wa_custom11 = "search_no_dropdowns"}
	if(wa_queryObj.iid){
		if(wa_queryObj.iid.toLowerCase() == "support_left_nav"){
			if(wa_queryObj.id){
				var queryId = "" + wa_queryObj.id;
				if(queryId.search(",") > 0){wa_custom11 = "search_product_filter";}
				else{wa_custom11 = "search_category_filter";}
			}
			else{wa_custom11 = "search_no_filters";}
		}
	}
	var wa_custom12 = (metatagsObj['NumberOfResults'] == "0" ? "search_zero_results" : "search_more_than_zero_results");
}
if(wa_queryObj.iid){var wa_custom15 = "search_" + wa_queryObj.iid.toLowerCase()}

var wa_custom02=LoadReportingVariables(document.getElementById('reporting-category'));
var wa_custom04=LoadReportingVariables(document.getElementById('reporting-clicksource'));
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_custom39=LoadReportingVariables(document.getElementById('reporting-UserQuery'));
var wa_custom40=LoadReportingVariables(document.getElementById('reporting-results'));
var wa_custom41=LoadReportingVariables(document.getElementById('reporting-access'));

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 "intelcorpsupp";
    }
    else
    {
        return "intelcorpsupp,intelsearch";
    }    
}

