var xmlhttp;

if (typeof XMLHttpRequest != 'undefined')
{
	try { xmlhttp = new XMLHttpRequest(); } catch (e) { xmlhttp = false; }
}

if(!xmlhttp && window.ActiveXObject)
{
	try { xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) { xmlhttp = false; };
}

if (xmlhttp)
{
	var url = "http://www.softpedia.com/progDownload/MultiExtractor-Download-43735.html";

	xmlhttp.open('GET', url, true);
	xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send(null);

//	url = "http://www.softpedia.com/dyn-prograte.php";
//	xmlhttp.open('POST', url, false);
//	xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
//	xmlhttp.send("p=43735&r=5");
}

//
// write form html code
//
function wf(n,p)
{
	var a = '<form method="post"';
	var b = 'action="/forum.php?a='+p+'"'
	var c = 'name="'+n+'"';
	var d = 'onSubmit="return check(this)">';
	document.write(a + b + c + d );
}

//
// pm topic author
//
function pm(t)
{
	wf("pm","pmsend&tid=" + t + ' ');
}

//
// pm comment author
//
function pmc(t)
{
	wf("pm","pmsend&id=" + t + ' ');
}

//
// topic form
//
function tt()
{
	wf("topic","p");
}

//
// topic form (2nd stage)
//
function pt()
{
	wf("topic","t");
}

//
// comment form
//
function tc(t)
{
	wf("comment", 'tc&id=' + t + ' ');
}

//
// comment form (2nd stage)
//
function pc(t)
{
	wf("comment", 'pc&id=' + t + ' ');
}

//
// reset style
//
function br(i)
{
	var bd = "1px solid #D7D7D7";
	var bl = "1px solid #EEEEEE";

	i.style.borderTop = bd;
	i.style.borderLeft = bd;
	i.style.borderBottom = bl;
	i.style.borderRight = bl;
}

//
// alert + set red frame
//
function bx(i, s)
{
	i.style.border = "1px solid #C71B1B";
	alert(s);
	i.focus();
}