 // ´
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);
function getBody(){return(document.getElementsByTagName('BODY').item(0));}
 var jdocw;
 var jdoch;
 var jdocl;
 var jdoct;
 var jwinw;
 var jwinh;
 var jdoc;
 var jwin;
 var iswip;
$(document).ready(function() {//*************************************************************************************************
 jdoc=$(document);
 jwin=$(window);
 iswip=(typeof titleedit_pos=='function')?true:false;
});
function iget_docsize(){
 if(iswip==null)iswip=(typeof titleedit_pos=='function')?true:false;
 if(!jdoc)jdoc=$(document);
 if(!jwin)jwin=$(window);
 jdocw=jdoc.width();
 jdoch=jdoc.height();
 jdocl=jdoc.scrollLeft();
 jdoct=jdoc.scrollTop();
 jwinw=jwin.width();
 jwinh=jwin.height();
 // var tempo_=['jdocw : '+jdocw,'jdoch : '+jdoch,'jdocl : '+jdocl,'jdoct : '+jdoct,'jwinw : '+jwinw,'jwinh : '+jwinh];
 // return tempo_.join('<br>');
}
  //start some jQuery functions/////////////////////////////////////////////////////////////////////////////////////////
jQuery.fn.outerHTML = function() {
	return $('<div>').append( this.eq(0).clone() ).html();
};
jQuery.fn.isvisible = function() {
	return ($(this).css('display')=='none')?false:true;
};
jQuery.fn.ishidden = function() {
	return ($(this).css('display')=='none')?true:false;
};
function formulaire(id_form_){
	if(typeof mrg_form!='function'){
	 $.getScript('jquery.form.js',function(){go_mrg_form(id_form_);});
	}else go_mrg_form(id_form_);
};
  //end some jQuery functions/////////////////////////////////////////////////////////////////////////////////////////
/*
jQuery.fn.extend({
   check: function() {
     return this.each(function() { this.checked = true; });
   },
   uncheck: function() {
     return this.each(function() { this.checked = false; });
   }
 }); 
 */