//Extend String prototype
String.prototype.asInteger = function () { return parseInt (this, 10); }

//This will be set to true by another script by means of IE conditional comments
var retarded_browser = false;

//Wrapper for getElementById
function _elem (id)
{
	return document.getElementById (id);
}

function del (id)
{
	if (confirm ("Are you sure you want to stop watching this page?"))
	{
		window.location.href = "/watch/pages?del=" + escape (id);
	}
}

function other_captcha ()
{
	var e = _elem ('img_captcha');
	var s = e.src.replace (/&ts=\d+/, '');
	e.src = s + '&ts=' + new Date ().getTime ();
}