var ns = document.layers;
var chuw = false;

function tool()

{
	window.location='http://www.onlytorrents.com/toolbar/';
	
}
function checkForm()
{
	var gname, gmessage;
	with(window.document.shout)
	{
		gname = name;
		gmessage = message;
	}
	if(gname.value == '' || gname.value == 'Name')
	{
		alert('Name cannot be null!');
		gname.focus;
		return false;
	}
	if(gmessage.value == '' || gmessage.value == 'Message')
	{
		alert('Message cannot be null!');
		gmessage.focus;
		return false;
	}
	else if(gmessage.value.length > 255)
	{
		alert("Please don't abuse our shoutbox!\nEnter only up to 255 characters.");
		gmessage.focus;
		return false;
	}
	else
	{
		return true;
	}
}
function checkSe()
{
	var smes;
	with(window.document.seo)
	{
		smes = q;
	}
	if(smes.value == "" || smes.value == "keywords")
	{
		alert('Search string cannot be null!');
		smes.focus;
		return false;
	}
	else if(smes.value.length > 255)
	{
		alert("Please don't abuse our search engine!\nEnter only up to 255 characters.");
		smes.focus;
		return false;
	}
	else
	{
		return true;
	}
}
function addsmiley(code)
{
	var pretext = document.shout.message.value;	
	this.code = code;
    document.shout.message.value = pretext + code;
}

/********************************************************
 * Copyright (C) 2002-2003, CodeHouse.com. All rights reserved.
 * CodeHouse(TM) is a registered trademark.
 *
 * THIS SOURCE CODE MAY BE USED FREELY PROVIDED THAT
 * IT IS NOT MODIFIED OR DISTRIBUTED, AND IT IS USED
 * ON A PUBLICLY ACCESSIBLE INTERNET WEB SITE.
 * 
 * CodeHouse.com JavaScript Library Module: Save Link Method
 *
 * You can obtain this script at http://www.codehouse.com
 ********************************************************/
function CJL_saveLink(anchorId, linkTitle, url, bookmarkText, tabText)
{
   function set(innerHTML, href)
   {
      elem = document.getElementById(anchorId);

      elem.innerHTML = innerHTML;

      elem.href = "javascript:" + href;
   }

   function quote(s)
   {
      return "'" + s + "'";
   }


   url = quote(url ? url : location.href);
   linkTitle = quote(linkTitle ? linkTitle : document.title);

   if( window.external &&  /Win/.test(navigator.userAgent) )
   {
      set(
          bookmarkText ? bookmarkText : "Bookmark Page",
          "external.AddFavorite(" + url + "," + linkTitle + ")"
         );
   }
   else if( window.sidebar && sidebar.addPanel )
   {
      set(
          tabText ? tabText : "Add to Sidebar",
          "sidebar.addPanel(" + linkTitle + "," + url + ",'')"
         );
   }
}
