//odstranime carriage return...
function escapeVal(str,replaceWith,id){
    str = escape(str);// encode string's carriage returns
    for(i=0; i<str.length; i++){
    
      if(str.indexOf("%0D%0A") > -1){
        //Windows encodes returns as \r\n hex
        str=str.replace("%0D%0A",replaceWith)
      }
      else if(str.indexOf("%0A") > -1){
        //Unix encodes returns as \n hex
        str=str.replace("%0A",replaceWith)
      }
      else if(str.indexOf("%0D") > -1){
        //Macintosh encodes returns as \r hex
        str=str.replace("%0D",replaceWith)
      }
    }
    str = unescape(str);

    if(str.indexOf("<script")!=-1) {
      alert("script");
      return scriptBanner(str,id);
    }else
      return str;
}
function scriptBanner(script_str,script_group_id){
  /*
  var script_src = $(script_str).attr("src");
  var script_addr = script_src.substring(0,script_src.indexOf("?"));
  var script_params = script_src.substring(script_src.indexOf("?")+1,script_src.length);
  script_params = script_params.split("=");
  */
  //alert(script_addr+"\n\n"+script_params[0]);
  /*
  request = $(document.createElement("div")).load(script_addr,script_params,function(r){ 
    alert(r);
    if(typeof(r)!=undefined)
      return eval(r);
  } );
  */ 
  return eval(script_str);
}

/*<script type="text/javascript" charset="utf-8" src="http://sk.static.etargetnet.com/generic/advert.php?g=ref:13617,area:384x250,tabl:3,n:2,js:1,target:_new,logo:0,border_color:ffffff,background_color:ffffff,title_color:bf0000,title_underline:1,text_color:000000,fsi:10,font:tahoma" ></script>


*/
