var seemorewin = null;

function seeMore (pid, qid, aid, width, height, admin) {
	var location = "";
	if (admin > 0) { location = "../"; }
	if (seemorewin) { seemorewin.close(); }
	var seemorewin = window.open(location+"more.php?pid="+pid+"&qid="+qid+"&aid="+aid, "link", "directories=no,toolbar=no,menubar=no,location=no,resize=yes,status=no,resizable=yes,scrollbars=yes,width="+width+",height="+height);
	seemorewin.focus();
}

function changeMore (label, uid, action) {
	if (action == 'b')
		document.seemoreform.newother.value = eval('document.seemoreform.ip'+label+'.value');
	else
		document.seemoreform.newother.value = eval('document.seemoreform.other'+label+'.value');
	document.seemoreform.action.value = action;
	document.seemoreform.uid.value = uid;
	document.seemoreform.submit();
}

function previewAlert () {
	alert('Submit and Results buttons do not work during poll preview!');
}

