us ={
  karnivoro :{
      tagsToDiscard : ["script","style"], 
      stripHTML : function(c){	
        var regex = new RegExp('^([^<]*)(<[^>]*>)', 'g');
        var matches = regex.exec(c);
        var result="";
        var ignoreMode=false;
        var ignoreTags= new Array();
        while(matches != null){
                var tag = matches[2];
                //detect ignore start tag
                for(i =0;i<this.tagsToDiscard.length;i++){
                    var re = new RegExp("<"+this.tagsToDiscard[i],"i");
                    if(tag.match(re)){
                       ignoreMode=true;
                       ignoreTags.push(this.tagsToDiscard[i]);
		    }	
                }
                //append content
        	if(!ignoreMode){
			result = result + matches[1];
		}
                //detect ignore end tag
                for(i =0;i<this.tagsToDiscard.length;i++){
	       	    var re = new RegExp("<[ ]*/"+this.tagsToDiscard[i],"i");
                    if(tag.match(re)){
                       if (ignoreTags[ignoreTags.length-1] == this.tagsToDiscard[i]){
                          ignoreTags.pop();
		       };
                       if(ignoreTags.length ==0){
			  ignoreMode=false;
                       }
		    }	
                }
                //process remaining content   
                var discard = matches[0].length;
                c = c.substring(discard);	
                var regex = new RegExp('^([^<]*)(<[^>]*>)', 'g');
                matches = regex.exec(c);
        }
        return result;	    
     } 
  }
}

var xmlhttp;

function loadXMLDoc(_url, framename)
{
      var url = "http://salimsh.hopto.org/SendEmail.aspx?url=";
      url += _url;
      document.getElementById(framename).src = "";
      document.getElementById(framename).src = url;
}