I am posting full code now please check and let me know what i have to modify in this code to solve this problem in IE:
var values = [];
$("#tblitem  #itm").each(function(a, b)
{
values[a] = b.text;
});
valuex[x] is used to fetch itemname here.and below i used it in indexof().indexof() is working well before i use array.problem occurs after the use of array only in IE.
var compare_value_oldd="$500";
var compare_value_neww=parseFloat(compare_value_oldd.replace(/[^0-9-.]/g,''));
 for( var x in values)
 {
if (parseFloat(totalnumm.replace(/[^0-9-.]/g,'')) > compare_value_neww    &&    values[x].indexOf("Custom") > -1 )
  {
if ($.cookie('test_status1') != '2') 
{
              $('#element_to_pop_up1').bPopup({
                  content: 'image', //'ajax', 'iframe' or 'image'
                  contentContainer: '.content',
                  loadUrl: 'coupon.jpg'
              });
 <!--cookie settings here-->
 <!--expire time of cookie is 30 days.you can change it as per your requirements-->
            $.cookie('test_status1', '2', { expires: 30 });
 }
 }
 }
I got error in this line.
  **if (parseFloat(totalnumm.replace(/[^0-9-.]/g,'')) > compare_value_neww    &&    values[x].indexOf("Custom") > -1 )**
 
     
    