/*
 * $Id: cmcustom-10085747-90137357-060611.txt 171490 2011-06-06 17:49:45Z whbird $
 * $Revision: 171490 $
 *
 * Coremetrics Tag v4.0, 8/7/2006
 * COPYRIGHT 1999-2002 COREMETRICS, INC. 
 * ALL RIGHTS RESERVED. U.S.PATENT PENDING
 *
 * The following functions aid in the creation of Coremetrics data tags.
 *
 *  06/06/11	WHBIRD	-	 cmcustom created for conversion to hosted libraries
 */

function cmCreateManualPageviewTag(pageID,categoryID,DestinationURL,ReferringURL,customerID,subClass,attributes,searchString,searchResults,extraFields) {
	cmMakeTag(["tid","1","pi",pageID,"cg",categoryID,"ul",DestinationURL,"rf",ReferringURL,"pv1",customerID,"pv2",subClass,"se",searchString,"sr",searchResults,"cmAttributes",attributes,"cmExtraFields",extraFields]);
}

function cmCreateTechPropsTag(pageID, categoryID, customerID, subClass, attributes, extraFields) {
	cmMakeTag(["tid","6","pi",pageID,"cg",categoryID,"pv1",customerID,"pv2",subClass,"pc","Y","cmAttributes",attributes,"cmExtraFields",extraFields]);
}

function cmCreatePageviewTag(pageID, categoryID, searchString, searchResults, customerID, subClass, attributes, extraFields) {
	cmMakeTag(["tid","1","pi",pageID,"cg",categoryID,"se",searchString,"sr",searchResults,"pv1",customerID,"pv2",subClass,"cmAttributes",attributes,"cmExtraFields",extraFields]);
}

function cmCreateRegistrationTag(customerID, customerEmail, customerCity, customerState, customerZIP, newsletterName, subscribe, subClass, repCode, customerCountry, attributes) {
	cmMakeTag(["tid","2","cd",customerID,"em",customerEmail,"ct",customerCity,"sa",customerState,"zp",customerZIP,"nl",newsletterName,"sd",subscribe,"rg11",subClass,"rg12",repCode,"cy",customerCountry,"cmAttributes",attributes]);
}

// DEPRECATED - Creates an error tag
function cmCreateErrorTag(pageID, categoryID) {
	cmMakeTag(["tid","404","pi",pageID,"cg",categoryID,"pc","N"]);
}
