function syserrorOccuredOmniture() { //for omniture //first check if omniture variable is defined or not if(typeof( window[ 's' ] ) != "undefined") { s.prop9="system error"; } } function omnitureFormError(pageName, formName, errorMsg) { if(typeof pageName != "undefined" && pageName.indexOf("ERROR") < 0){ var pn = "ERROR:"+pageName + ":" + formName+":"+errorMsg; s.channel="errors"; s.prop9 = pn; } }