function reloadSignup(form)
{
	var fname=form.firstname.value;
	var sname=form.surname.value;
	var gender=form.gender.options[form.gender.options.selectedIndex].value;
	var byear=form.byear.value;
	var mail1=form.email1.value;
	var mail2=form.email2.value;
	var addrl1=form.addressl1.value;
	var addrl2=form.addressl2.value;
	var addrl3=form.addressl3.value;
	var town=form.town.value;
	var pc=form.postcode.value;
	var addrcountry = form.addrcountry.options[form.addrcountry.options.selectedIndex].value;
	var usrnme=form.usernamesubmit.value;
	var linker=form.link.value;

	self.location='signup.php?firstname=' + fname + '&surname=' + sname+ '&gender=' + gender + '&byear=' + byear + '&email1=' + mail1 + '&email2=' + mail2 + '&addressl1=' + addrl1 + '&addressl2=' + addrl2 + '&addressl3=' + addrl3 + '&town=' + town + '&postcode=' + pc + '&addrcountry=' + addrcountry + '&usernamesubmit=' + usrnme + '&link=' +linker;
}

function reloadBilling(form)
{
var bcard=form.card.options[form.card.options.selectedIndex].value;

self.location='billing.php?card=' + bcard;
}

function expand(thistag)
{
	styleObj=document.getElementById(thistag).style;
	if(styleObj.display==='none'){styleObj.display='';}
	else {styleObj.display='none';}
}

function expandProvince(ListElem, Legend1, Legend2)
{
	styleObjLeg1=document.getElementById(Legend1).style;
	styleObjLeg2=document.getElementById(Legend2).style;
	var county_field=document.getElementById("country");
	var country_value = county_field.options[county_field.options.selectedIndex].value;
	if(country_value == "IT")
	{
		styleObj=document.getElementById(ListElem).style;
		styleObj.display='list-item';
		styleObjLeg1.display='none';
		styleObjLeg2.display='inline';
	}
	else
	{
		styleObj=document.getElementById(ListElem).style;
		styleObj.display='none';
		styleObjLeg1.display='inline';
		styleObjLeg2.display='none';
	}
}
