<!--

	// fn log_to_dcs() : generates the image source of a DCS tag tracking the custom
	// parameters (see below) which must be set by the calling page.
	// presupposes the existence of an image on the calling page with name="DCSIMG"
	
	function log_to_dcs () {
	
		// Copyright 2001 Webtrends Corporation
		var gTagPath = "dcs0oatfwghjg5e6ym5wj21gv_4r8q";
		
		var P="";
		// Add your CUSTOM PARAMETERS here

		// these parameters are defined template-side:
		// 
		// 		site_id
		// 		olh_region
		// 		state
		// 		page_type
		// 		page_title
		// 		object_id
		// 		category
		// 		search_term
		// 		exit_link
		//		gTagPath
		
		P += "&site_id="+escape(site_id);
		P += "&olh_region="+escape(olh_region);
		P += "&state="+escape(state);
		P += "&page_type="+escape(page_type);
		P += "&page_title="+escape(page_title);
		P += "&object_id="+escape(object_id);
		P += "&category="+escape(category);
		P += "&search_term="+escape(search_term);
		P += "&exit_link="+escape(exit_link);
		
		// End of customize code
		
		log_dcs_standard (gTagPath, P);
	}
	
	// fn track_link( url ) : log the outbound link specified in 'url' and redirect
	// the user to that location.  this function has the same prerequisites as
	// the function 'log_to_dcs()'
	
	function track_link ( url ) {
		page_type = "exit";
		exit_link = url;
		log_to_dcs();
		window.location = url;
	}

	function log_page_hit () {
	
		var gTagPath = "dcsqzc7kxghjg5e6ym5wj21gv_3r3s";

		var P="";
		P += "&page_title="+(dcs_pageTitle);
		P += "&module="+(dcs_module);
		P += "&view="+(dcs_view);

		log_dcs_standard (gTagPath, P);
	}

        function log_dcs_click (from, to) {
	
		var gTagPath = "dcs7mr8lyghjg5e6ym5wj21gv_2r2v";
		var P="";
		
		P += "&click_from="+escape(from);
		P += "&click_to="+escape(to);

		log_dcs_standard (gTagPath, P);
	}
	
// build up custom parm string as P before calling this function
	function log_dcs_standard (tagId, custom) {
	
		var dCurrent = new Date();
		var sCurrent = "";
		sCurrent = dCurrent;
		
		// add the new parameters
		var P="";
		P += "dcsuri="+window.location.pathname;
		P += "&dcsqry="+escape(window.location.search);
		
		if ((window.document.referrer != "") && (window.document.referrer!= "-")){
			if (!(navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion) < 4) ){
				P+="&dcsref="+escape(window.document.referrer);
			}
		}
		
		P += "&dcssip="+escape(window.document.domain);
		
		sCurrent += ":"+dCurrent.getMilliseconds();
		
		P += "&dcsdat="+escape(sCurrent);
                
		P += dcs_profile;
                P += custom;
                // is this necessary for the hosted model?
		P += "&gTagPath="+escape(tagId);
		
                var img;
                if ( document.images ) {
                       // attempt to address missing page_hits using HTML tagged image per DCS recommended approach
                       img = document.images[ "DCSIMG" ];
                }
                if (img == null) {
                        // this appraoch does not seem to be 100% reliable
                        // but there may be some other reason for missing page_hits
                        img = new Image();
                }
                img.src="https://dcshm.verizon.net/" + tagId + "/dcs.gif?"+P;
	}
	
// -->