

var i = 1;

var adcom_ro_total = 0;

function getById(id)
{
	return document.getElementById?document.getElementById(id):(document.all?document.all(id):null);
}

function termspopup(url)
{
	terms = window.open(url,"absolut_terms","width=500,height=400,scrollbars=1,resizable=1,menubar=0");
	terms.focus();
}

function privacypopup(url)
{
	privacy = window.open(url,"privacy_policy","width=500,height=400,scrollbars=1,resizable=1,menubar=0");
	privacy.focus();
}

function responsibilitypopup(url)
{
	responsibility = window.open(url,"responsibility","width=500,height=400,scrollbars=1,resizable=1,menubar=0");
	responsibility.focus();
}

function log(section, section_type, activity, freetext)
{
	if (i > 5)
		i = 1;
	var source = "http://stats.absolut.com/log.aspx?site=plymouthgin-com&section="+escape(section)+"&type="+escape(section_type)+"&activity="+escape(activity)+"&freetext="+escape(freetext)+"&tmp=" + Math.random();
	getById("tracker"+i).src = ""+source;
	i++;
}
