////////////////////////////////////////////////////////////
// FM APP ver 1.0 (Make By Jun-Young, Park)
//ÆÄÀÏ¸í	:	common.init_form.php
//ÀÛ¼ºÀÚ	:	¹ÚÁØ¿µ (park@whois.co.kr)
//ÃÖÃÊÀÛ¼ºÀÏ:	2006-01-03
//ÃÖ±Ù¼öÁ¤ÀÏ:	2006-01-13
////////////////////////////////////////////////////////////

/***********************************************************
ÇÁ·Î±×·¥ ¼³¸í :
¼³Á¤
***********************************************************/

	
	function init_select(f, v){
		for(i=0; i<f.length; i++){
			if(f[i].value == v){ f[i].selected = true; }
		}
	}


	function init_checkbox(f, v){
		if(f.value == v){ f.checked = true; }
	}

	function init_radio(f, v){
		for(i=0; i<f.length; i++){
			if(f[i].value == v){ f[i].checked = true; }
		}
	}

	function init_text(f, v){
		f.value = v;
	}


	function swf(url, id, name, width, height, bgcolor, wmode){
		html = '';
		html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+width+'" height="'+height+'">';
		html += '<param name="allowScriptAccess" value="always">';
		html += '<param name="wmode" value="'+wmode+'">';
		html += '<param name="movie" value="'+url+'">';
		html += '<param name="quality" value="high">';
		html += '<param name="bgcolor" value="'+bgcolor+'">';
		html += '<param name="menu" value="false">';
		html += '<param name="swliveconnect" value="true">';
		html += '<embed src="'+url+'" quality="high" bgcolor="'+bgcolor+'" menu="false" wmode="'+wmode+'" width="'+width+'" height="'+height+'" swliveconnect="true" id="'+id+'" name="'+name+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
		html += '<\/object>';
		document.write(html);
	}
