function amiloaded() { alert("YES"); } var gridScrollSpeed = 0; function initializeGridScroll(){ if (gridScrollSpeed!=0){ scrollGrid(gridScrollSpeed); } } function scrollGrid(speed){ var supported = (document.getElementById); if (!supported) return; var divPath = document.getElementById('screeningPositionReference'); var currPos = parseInt(divPath.style.marginLeft); if( speed < 0 && currPos < -495 ) { gridScrollSpeed=0; divPath.style.marginLeft = "-495px";} if( speed > 0 && currPos >= -0 ) { gridScrollSpeed=0; divPath.style.marginLeft = "-0px";} currPos = currPos + gridScrollSpeed; var ml = currPos + "px"; divPath.style.marginLeft = ml; //setTimeout("scrollGrid('" + id + "'," + speed+ ")",10); } function setGridFirstScreening() { var supported = (document.getElementById); if (!supported) return; var divPath = document.getElementById('screeningPositionReference'); divPath.style.marginLeft = "-480px"; } function GridJumpToEnd() { var supported = (document.getElementById); if (!supported) return; var divPath = document.getElementById('screeningPositionReference'); divPath.style.marginLeft = "-495px"; return; } function GridJumpToStart() { var supported = (document.getElementById); if (!supported) return; var divPath = document.getElementById('screeningPositionReference'); divPath.style.marginLeft = "-0px"; return; } function setNoteTopHeight(ExtNoteID) { var supported = (document.getElementById); if (!supported) return; var notePath = document.getElementById(ExtNoteID); notePath.style.top = notePath.style.height; } function getObject( obj ) { // step 1 if ( document.getElementById ) { obj = document.getElementById( obj ); // step 2 } else if ( document.all ) { obj = document.all.item( obj ); //step 3 } else { obj = null; } //step 4 return obj; } function moveObject( obj, e ) { // step 1 var tempX = 0; var tempY = 0; var offset = 5; var objHolder = obj; // step 2 obj = getObject( obj ); if (obj==null) return; // step 3 if (document.all) { tempX = event.clientX + document.body.scrollLeft; tempY = event.clientY + document.body.scrollTop; } else { tempX = e.pageX; tempY = e.pageY; } // step 4 if (tempX < 0){tempX = 0} if (tempY < 0){tempY = 0} // step 5 obj.style.top = (tempY + offset ) + 'px'; obj.style.left = (tempX + offset - 50) + 'px'; // step 6 displayObject( objHolder, true ); } function displayObject( obj, show ) { // step 1 obj = getObject( obj ); if (obj==null) return; // step 2 obj.style.display = show ? 'block' : 'none'; obj.style.visibility = show ? 'visible' : 'hidden'; }