arrColors = new Array("orange","yellow");
//-------------------------
function flashEffect(element,count){
	if(count<arrColors.length){
	 FindID(element).style.backgroundColor = arrColors[count];
	 count++;
	 setTimeout("flashEffect(\""+ element+"\","+count+")",150); 
	}else{
	 FindID(element).style.backgroundColor = "";
	}
}
//--------------------
function FindID(id) {/*provide cross-browser element's handle */
       if(document.layers) return document.layers[id];
       if(document.all && !document.getElementById) return document.all[id];
       if(document.all && document.getElementById) return document.getElementById(id);
       if(!document.all && document.getElementById) return document.getElementById(id);
}
//--------------------
function JSTriggerDom(zeID, zeValue){	/* "proxy" Method */
 if(FindID(zeID)==null){
  return;		
 }
 FindID(zeID).innerHTML=zeValue;
 var the_first_char=zeValue.charAt(0); 
 FindID(zeID).style.color="black";
if(zeID.indexOf("CN_DIFF_REL")>-1){
	 if(the_first_char.indexOf("-")>-1)
	 {
	 	if(zeValue.length>1){
	  	 FindID(zeID).style.color="red";
	  	 JSTriggerDom(zeID.substring(0,zeID.indexOf("_",zeID.indexOf("_")+1))+"_TREND","<img src='/images/dn.gif' width=10 height=10>");	 		
	 	}else{
	  	  FindID(zeID).style.color="black";
	  	  JSTriggerDom(zeID.substring(0,zeID.indexOf("_",zeID.indexOf("_")+1))+"_TREND","<img src='/images/nil.gif'>");	 	 	
	 	}
	 }else{
	  	FindID(zeID).style.color="green";
	  	JSTriggerDom(zeID.substring(0,zeID.indexOf("_"),zeID.indexOf("_")+1)+"_TREND","<img src='/images/up.gif' width=10 height=10>");
	 }
} 
 flashEffect(zeID,0);
}
//-----------------------------
function showInStatus(strMsg){
if(strMsg.indexOf("xception")>0){
 return;
}
 this.status = strMsg;
}