if (document.layers) { if (top.location !=self.location) { top.location=self.location }; } else { if (self != top) { if (document.images) { top.location.replace(self.location); } else { top.location=self.location; } } } // *** Common function *** function MM_findObj (n,d) { var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i0) { return } while (a 0) { for (var i = 0;i < SrcArry.length;i++) { if (SrcArry[i] == SearchStr) { return (i); } } } return (-1); } function Number_Format (Num,NumDecimal,DecPoint,ThousandsSep) { Num = (Math.round (Num * Math.pow (10,NumDecimal)) / Math.pow(10,NumDecimal)).toString (); var DecPosition = Num.indexOf ("."); if (DecPosition == -1) { Num += ".00"; } else { var DecLocation = Num.substring (DecPosition,Num.length); if (DecLocation.length == 2) { Num += "0"; } } Num = Num.replace (".",DecPoint); var DecPosition = Num.indexOf (","); var IntPart = Num.substring (0,DecPosition); var FloatPart = Num.substring (DecPosition,Num.length); if (IntPart.length > 3) { var NewIntPart = ""; var DCnnt = 0; for (var i = IntPart.length;i >= 0;i--) { NewIntPart += IntPart.charAt (i); ++DCnnt; if (DCnnt == 4) { NewIntPart += ThousandsSep; DCnnt = 0; } } var DefNum = ""; for (var i = NewIntPart.length;i >= 0;i--) { DefNum += NewIntPart.charAt (i); } Num = DefNum + FloatPart; } return (Num); }