
var W3CDOM;

// is browser sufficiently advanced for true W3C DOM scripting ?
if (document.getElementById && document.createElement && document.childNodes)
	W3CDOM = true;
else
	W3CDOM = false;


window.onload = focusTitleBox;

function focusTitleBox()
{
	if (W3CDOM)
	{
		// focus on Text Box using the W3C DOM
		if (document.getElementById("txtTheLink"))
		document.getElementById("txtTheLink").focus();
	}
}


function bookmarklet()
{
javascript:void(location.href='http://moourl.com/create/?source='+escape(location.href));

javascript:void(location.href='http://tinyurl.com/create.php?url='+encodeURIComponent(location.href))
}
