rem: showDP.datefieldID=dateFieldID; 
add:  var alreadybox=getObjectFromID("DPCancel"); if (alreadybox) closeDPBox();   showDP.datefieldID=dateFieldID; 
context: function showDP(base,dateFieldID,format){	showDP.datefieldID=dateFieldID;	var dateField=getObjectFromID(dateFieldID);		//check to see if another box is already showing	var alreadybox=getObjectFromID("DPCancel");	if(alreadybox) closeDPBox();	//get positioning	var thetop=getTop(dateField)+dateField.offsetHeight;//	var xxx=getObjectFromID('bottompage');//alert(xxx.style.pixelTop);//alert(document.body.clientHeight);//alert(document.body.style.offsetTop);//alert(thetop);//alert(window.innerHeight);	if (thetop+160 > window.innerHeight)		thetop=thetop-160-20;	var theleft=getLeft(dateField);	if (theleft+140 > window.innerWidth)		theleft= theleft-140+dateField.offsetWidth-15;	showDP.box=document.createElement("div");	showDP.box.className="bodyline";	showDP.box.style.siplay="block";	showDP.box.style.position="absolute";	showDP.box.style.top=thetop + "px";	showDP.box.style.left=theleft + "px";		if (dateField.value)	// Si il y avait valeur initiale dans champ	{		selDate=getDateFromFormat(dateField.value,format);		if (selDate)		{			// Success to parse value in field according to format			year=selDate.getFullYear();			month=selDate.getMonth()+1;			day=selDate.getDate();			datetime=selDate.getTime();			ymd=formatDate(selDate,'yyyyMMdd');		}		else		{			// Failed to parse value in field according to format			selDate=new Date();			year=selDate.getFullYear();			month=selDate.getUTCMonth()+1;			day=selDate.getDate();			datetime=selDate.getTime();			ymd=formatDate(selDate,'yyyyMMdd');		}	}	else	{		selDate=new Date();		year=selDate.getFullYear();		month=selDate.getUTCMonth()+1;		day=selDate.getDate();		datetime=selDate.getTime();		ymd=formatDate(selDate,'yyyyMMdd');	}	loadMonth(base,month,year,ymd);	hideSelectBoxes();	document.body.appendChild(showDP.box);}
meta: 3540	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/3540/21fe55afeecc125a60ec4b912b08fac832f19a90/lib_head.js/clean/htdocs/lib/lib_head.js