function func(){
    function checkHistory()
    {
    if (oldHistLength != history.length)
       {
      
       jQuery('iframe').remove();
       jQuery("#thanksDiv").slideDown('medium', function(){});
       jQuery(window).scrollTop(0);
       oldHistLength = history.length;
       }
    }
    var oldHistLength = history.length;
    var element = document.getElementById("thanksDiv");
    if (element !== null){
        window.setInterval ( checkHistory, 50 );
    }


}//end func


window.onload = func;
