function theflash(movie, width, height) {
	document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + width + '" height="' + height + '">');
    document.writeln('<param name="movie" value="' + movie + '">');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="menu" value="false">');
	document.writeln('<param name="wmode" value="transparent">');
	document.writeln('<embed src="' + movie + '" width="' + width + '" height="' + height + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false" wmode="transparent"></embed>');
    document.writeln('</object>');
}

function showT(q){ 
document.getElementById('officialImg').setAttribute('src','../images/layup/official0'+q+'.jpg') 
} 

function checkForm() {
givename = document.getElementById("givename").value;
name = document.getElementById("name").value;
comment = document.getElementById("comment").value;

if (givename == "") {
hideAllErrors();
document.getElementById("givenameError").style.display = "block";
document.getElementById("givename").select();
document.getElementById("givename").focus();
return false;
} else if (name == "") {
hideAllErrors();
document.getElementById("nameError").style.display = "block";
document.getElementById("name").select();
document.getElementById("name").focus();
return false;
}
else if (comment == "") {
hideAllErrors();
document.getElementById("commentError").style.display = "block";
document.getElementById("comment").select();
document.getElementById("comment").focus();
return false;
}
return true;
}
function hideAllErrors() {
document.getElementById("givenameError").style.display = "none"
document.getElementById("nameError").style.display = "none"
document.getElementById("commentError").style.display = "none"
}