function newimg(arg) { if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function achimg(array) { if (prlfl == true) { var d = document; var img; for (var i=0; i 10) || (Math.abs(y-y1) > 10)))) { copyAttempt = 1; flag = 0; alert(msg); return false; } } function clearIt() { flag = 0; if (copyAttempt) { copyAttempt = 0; return false; } }