function scrollbar() 
{
	var wndo = new dw_scrollObj('contenu_textuel', 'article_big');
	wndo.setUpScrollbar("drag", "track", "v", 1, 1);
	wndo.setUpScrollControls('scrollbar', true, 'v');
}

function scrollbar_2() 
{
	var wndo = new dw_scrollObj('contenu_textuel_2', 'article_big_2');
	wndo.setUpScrollbar("drag_2", "track_2", "v", 1, 1);
	wndo.setUpScrollControls('scrollbar_2', true, 'v');
}

function cleanMsg(idElem, valueTxt, secondValue){
	if(secondValue != "") {
		if((idElem).value==valueTxt || (idElem).value==secondValue) (idElem).value="";	
	}
	else {
		if((idElem).value==valueTxt) idElem.value="";
	}
}


function displayPics() 
{ 
    var photos = $('galerie_mini'); 
    var liens = photos.getElementsByTagName('a'); 
    var big_photo = $('big_pict');
    var titre_photo = $('photo').getElementsByTagName('dt')[0]; 
 
    for(var i=0; i<liens.length ; ++i) 
    { 
        liens[i].onclick = function() { 
            big_photo.src = this.href;
            big_photo.alt = this.title;
            titre_photo.firstChild.nodeValue = this.title; 
            return false;
        }; 
    } 
} 

function _print(div)
{
    var zi = $(div).innerHTML;
    
    var Headers = '<!DOCTYPE HTML PUBLIC ><html><head><title></title></head><body style="padding:10px;color:black;font-family:Arial;font-size:12px;background-color:white;" onload="window.print();window.close();">';
    var Footers = "</body></html>";
    
    var f = window.open("", "ZoneImpr", "height=600, width=600,toolbar=1, menubar=1, scrollbars=1, resizable=1, status=0, location=0, left=10, top=10");
   
    f.document.write ("" + Headers + zi +Footers);
    f.document.close();
    return;
}
