// JavaScript Document function addText(txt) { //var txt = document.form1.body.value; window.document.form1.bodymain.value += txt; window.document.form1.bodymain.focus(); } // end of addText(txt) function - for forms function addText2(txt) { //var txt = document.form1.body.value; window.document.form1.bodydesc.value += txt; window.document.form1.bodydesc.focus(); } // end of addText(txt) function - for forms function row_onMouseOver() { this.bgColor='#CCCCCC'; } function row_onMouseOut() { this.bgColor='#FFFFFF'; } function messageWindow(title, msg) { var width="300", height="125"; var left = (screen.width/2) - width/2; var top = (screen.height/2) - height/2; var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top; var msgWindow = window.open("","msgWindow", styleStr); var head = ''+title+''; var body = '
'+msg+'

'; msgWindow.document.write(head + body); } // end of messageWindow(title, msg) function function disableRightClick(e) { var message = "Right click disabled"; if(!document.rightClickDisabled) // initialize { if(document.layers) { document.captureEvents(Event.MOUSEDOWN); document.onmousedown = disableRightClick; } else document.oncontextmenu = disableRightClick; return document.rightClickDisabled = true; } if(document.layers || (document.getElementById && !document.all)) { if (e.which==2||e.which==3) { alert(message); return false; } } else { alert(message); return false; } } // end of disableRightClick() function // disableRightClick(); function getLink(elem) { //Credits to Kevin Ar18 and the author of the following articles: //www.pageresource.com/dhtml/ryan/ and http://www.sitepoint.com/article/470 var child_array = elem.childNodes; var i=0; for (; i