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="507" height="25">'+
				'<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="507" height="25"></embed>'+
				'</object>';

	return output;

}


function rm_2(){

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

	return output;

}




function autofill(){

	var myform = document.register;
	
	var add1	= myform.add1.value;
	var add2	= myform.add2.value;
	var city	= myform.city.value;
	var state	= myform.state.value;
	var pcode	= myform.pcode.value;

	if(myform.af1.checked == 1){
	
		myform.d_add1.value		= add1;
		myform.d_add2.value		= add2;
		myform.d_city.value		= city;
		myform.d_state.value	= state;
		myform.d_pcode.value	= pcode;
		
	} else {
	
		myform.d_add1.value		= '';
		myform.d_add2.value		= '';
		myform.d_city.value		= '';
		myform.d_state.value	= '0';
		myform.d_pcode.value	= '';
	
	}

}

