function clearinput(thefield){
	if (thefield.defaultValue == thefield.value){
		thefield.value = ""
	}
}

function flash(file, w, h){
   document.write('<object style="display:block;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' +w+ '" height="' +h+ '">\n');
   document.write('<param name="movie" value="flash/' +file+ '.swf" />\n');
   document.write('<param name="quality" value="high" />\n');
   document.write('<param name="scale" value="noborder" />\n');
   document.write('<param name="wmode" value="transparent" />\n');
   document.write('<embed src="flash/' +file+ '.swf" wmode="transparent" quality="high" width="' +w+ '" height="' +h+ '"></embed>\n');
   document.write('</object>\n');
}




function h1_flash(id) {
	var text = document.getElementById(id).innerHTML;
	document.getElementById(id).innerHTML = h1_output(text);
}

function h1_output(text){

	var output ='<object style="display: block;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="720" height="43">'+
				'<param name="flashvars" value="h1text=' + text + '" />'+
				'<param name="movie" value="flash/h1_text.swf" />'+
				'<param name="quality" value="high" />'+
				'<param name="scale" value="noborder" />'+
				'<param name="wmode" value="transparent" />'+
				'<embed flashvars="h1text=' + text + '" src="flash/h1_text.swf" wmode="transparent" quality="high" width="720" height="43"></embed>'+
				'</object>';
	
	return output;

}

function h2_flash(id) {
	var text = document.getElementById(id).innerHTML;
	document.getElementById(id).innerHTML = h2_output(text);
}

function h2_output(text){

	var output ='<object style="display: block;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="210" height="40">'+
				'<param name="flashvars" value="h2text=' + text + '" />'+
				'<param name="movie" value="flash/h2_text.swf" />'+
				'<param name="quality" value="high" />'+
				'<param name="scale" value="noborder" />'+
				'<param name="wmode" value="transparent" />'+
				'<embed flashvars="h2text=' + text + '" src="flash/h2_text.swf" wmode="transparent" quality="high" width="210" height="40"></embed>'+
				'</object>';
	
	return output;

}

function h3_flash(id) {
	var text = document.getElementById(id).innerHTML;
	document.getElementById(id).innerHTML = h3_output(text);
}

function h3_output(text){

	var output ='<object style="display: block;" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="60">'+
				'<param name="flashvars" value="h3text=' + text + '" />'+
				'<param name="movie" value="flash/h3_text.swf" />'+
				'<param name="quality" value="high" />'+
				'<param name="scale" value="noborder" />'+
				'<param name="wmode" value="transparent" />'+
				'<embed flashvars="h3text=' + text + '" src="flash/h3_text.swf" wmode="transparent" quality="high" width="400" height="60"></embed>'+
				'</object>';
	
	return output;

}
