function redirect()
{
	top.location = "../";
}

function redirect_timeout()
{
	setTimeout('redirect()', 10000);
}

function show_skin_form()
{
	if (
		String(document.getElementById('serialnr').value).substr(0,5) == "73100"
		&& String(document.getElementById('serialnr').value).length == 13
		)
	{
		document.getElementById("freeskinform").style.display = 'block';
	}
	else
	{
		document.getElementById("freeskinform").style.display = 'none';
	}
}

function submitFreeSkin()
{
	var error = '';
	
	error += (document.form_freeskin.customer_name.value == "") ? "- You didn't fill in your name\n" : "";
	error += (document.form_freeskin.customer_tel.value == "") ? "- You didn't fill in your telephone number\n" : "";
	error += (document.form_freeskin.customer_email.value == "") ? "- You didn't fill in your e-mail address\n" : "";
	error += (document.form_freeskin.customer_address1.value == "") ? "- You didn't fill in your address\n" : "";
	error += (document.form_freeskin.customer_zip.value == "") ? "- You didn't fill in your zipcode\n" : "";
	error += (document.form_freeskin.customer_city.value == "") ? "- You didn't fill in your city\n" : "";
	error += (document.form_freeskin.customer_country.value == "") ? "- You didn't fill in your country\n" : "";
	
	if (error != "")
	{
		error += "\n Please press OK and compleet your order form.";
		alert(error);
	}
	else
	{
		document.form_freeskin.submit();
	}
}