var win;
var xx = 0;

function reset() {
xx = 0;
}

function firsttime() {
	if (xx==0) {
		xx=1;
		setTimeout("reset()",2000);
		return true;
	} else { return false; }
}

function firstpop(pop_height,pop_width) {
	if (firsttime()) {
		win = window.open("","Poll","width="+pop_width+",height="+pop_height);
		return true;
	} else {
		win.focus();
		return false;
	}
}


var r = location.href;
var val = "";
ndx = r.lastIndexOf("?");  
if (ndx > 0) {
	val = "&" + r.substring(ndx+1);  
	r = r.substring(0,ndx);
}

document.write("<script language='JavaScript' SRC='http://services.coolmaps.com/poll/poll.cfm?id=" + id + "&r=" + r  + val +"'></script>");
