function changeFormAction(id, action)
{
	var form = document.getElementById(id);
	form.action = action;
}

function changeFormPage( form, input )
{
	var form = document.getElementById(id);
	var inputField = document.getElementById(input);
	alert ( inputField );
	form.action = 'page_'.inputField.value;
}

function confirmLink( message )
{
	if ( true != confirm( message ))
	{
		return false;
	}
	else return true;
}

function openImage(src, w, h, title)
{
	var x = (self.screen.width - w) / 2;
	if (x < 0) { x = 0; }
 	var y = (self.screen.height - h) / 2;
 	if (y < 0) { y = 0; }
 	var myWindow = window.open("", "full", 'left=' + x + ',' + 'top=' + y + ',toolbar=no,menubar=no,resizable=no,status=no,titlebar=no,width=' + w +',height=' + h);
	myWindow.document.write('<html><head><title>' + title + '</title></head><body style="padding: 0; margin: 0;"><img src="' + src + '" width="' + w + '" height="' + h + '" alt="' + title + '" title="' + title + '" style="margin: 0;"></body></html>');
	return false;
}

function show_other(id)
{
	var elem = document.getElementById('answers_other_' + id);
	var box = document.getElementById('variant_' + id + '_other');
	elem.disabled = ( box.checked ? false : true );
}

function printImage(href)
	{
	 	var myWindow = window.open( href );
		return false;
	}
