function id_exists(myid){return(document.getElementById(myid));}
function _parseInt(str){
 str=parseInt(str);
 if(isNaN(str))str=0;
 return str;
}
var br=String.fromCharCode(13,10);
  //start some jQuery functions/////////////////////////////////////////////////////////////////////////////////////////
jQuery.fn.outerHTML = function() {
	return $('<div>').append( this.eq(0).clone() ).html();
};
  //end some jQuery functions/////////////////////////////////////////////////////////////////////////////////////////