			function showThumbnail(which, e)
			{
				var thumb = document.getElementById('thumb');
				if (thumb && thumb.style.visibility == 'hidden') {
					var lLeft = 0;
					var lTop = 0;
					if (e.pageX) {
						// Mozilla
						lLeft = pageXOffset + e.clientX + 20;
						lTop = pageYOffset + e.clientY;
					} else {
						// IE
						if (document.documentElement) {
							lLeft = document.documentElement.scrollLeft + e.x + 20;
							lTop = document.documentElement.scrollTop + e.y;
						} else {
							lLeft = document.body.scrollLeft + e.x + 20;
							lTop = document.body.scrollTop + e.y;
						}
					}
					thumb.style.left = lLeft + 'px';
					thumb.style.top = lTop + 'px';
					thumb.innerHTML = '<img src="' + unescape(which) + '" width="71" height="101" />';
					thumb.style.visibility = 'visible';
				}
			}

			function closeThumbnail()
			{
				var thumb = document.getElementById('thumb');
				if (thumb) thumb.style.visibility = 'hidden';
			}

			function DisableSubmit()
			{
				document.search.submit.value = ' Please Wait ';
				document.search.submit.disabled = true;
				return true;
			}

			function popup(mylink, windowname)
			{
				if (!window.focus) return true;
				var href;
				if (typeof(mylink) == 'string') {
					href = mylink;
				} else {
					href = mylink.href;
				}
				window.open(href + "?babepage", windowname, 'width=610,height=550,scrollbars=yes,resizable=yes');
				return false;
			}

			function popupStats(mylink, windowname)
			{
				if (!window.focus) return true;
				var href;
				if (typeof(mylink) == 'string') {
					href = mylink;
				} else {
					href = mylink.href;
				}
				window.open(href + "?statspage", windowname, 'width=820,height=700,scrollbars=yes,resizable=yes');
				return false;
			}


			function confirmDeadLink(aLinkId)
			{
				if (confirm('Are you sure that you want to report this link as dead ?\nNote: to view a link, click on the red coloured text link !!')) {
					window.location = 'http://www.opentothepublic.ca/shemale/index.php?p=reportdead&link_id=' + aLinkId
				}
				return false;
			}

			function links()
			{
				document.write('links');
			}


			function removeBottomBorders(aTableId)
			{
				var lTable = (document && document.getElementById) ? document.getElementById(aTableId) : null;
				var lTableRows = (lTable && lTable.getElementsByTagName) ? lTable.getElementsByTagName('TR') : new Array();
				for (var i = 0; i < lTableRows.length; i++) {
					if (lTableRows[i] && lTableRows[i].id && lTableRows[i].id.substring(0, 14) == 'nobottomborder' && i > 0) {
						for (var j = (i - 1); j >= 0; j--) {
							if (lTableRows[i].parentNode == lTableRows[j].parentNode) {
								var lTableDatas = (lTableRows[j] && lTableRows[j].getElementsByTagName) ? lTableRows[j].getElementsByTagName('TD') : new Array();
								for (var k = 0; k < lTableDatas.length; k++) {
									lTableDatas[k].style.borderBottom = '0px';
								}
								break;
							}
						}
					}
				}
			}
