function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function top_sub_menu_action(obj){
  //MM_swapImgRestore();
  for(i=1;i<=7;i++){
	tmp = eval("document.all.sub_menu"+i);
	if(i == obj){
		tmp.style.display = "block";
	}else{
		tmp.style.display = "none";
	}
  }if(obj == "0")MM_swapImgRestore();
}

function top_sub_menu_action2(obj){
  for(i=1;i<=7;i++){
	tmp = eval("document.all.sub_menu"+i);
	if(i == obj){
		tmp.style.display = "block";
	}else{
		tmp.style.display = "none";
		MM_swapImgRestore();
	}
  }
}
////////////////////////////////////////TOPÆäÀÌÁö ¼­ºê¸Þ´º ·Îµå ///////////////////////////////////////////


function area_free_view(obj){
	obj = eval("document.all."+obj);
	if(obj.style.display == "none"){
		obj.style.display = "block";
	}else{
		obj.style.display = "none";
	}
}

function search_word_reset(){
	if(search_category.search_word.value == "---°Ë»ö¾î¸¦ ³Ö¾îÁÖ¼¼¿ä.---"){
		search_category.search_word.value = "";
	}
	else if(search_category.search_word.value == ""){
		search_category.search_word.value = "---°Ë»ö¾î¸¦ ³Ö¾îÁÖ¼¼¿ä.---";
	}
}

function search_category_form_check(){
	A=document.search_category.search_word;
	if(A.value == "" || A.value == "---°Ë»ö¾î¸¦ ³Ö¾îÁÖ¼¼¿ä. °Ë»ö¹æ¹ýÀ» ½áÁÖ¸é ÁÁ°Ú³ß---" || A.value == "---°Ë»ö¾î¸¦ ³Ö¾îÁÖ¼¼¿ä.---"){
		alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.');
		A.focus();
		return false;
	}
	return true;
}

function ecard_tiny_memo_check(){
	if(document.tinymsgform.tiny_msg.value == ""){
		alert('¸Þ¼¼Áö¸¦ ÀÔ·ÂÇÏÁö ¾ÊÀ¸¼Ì½À´Ï´Ù.');
		document.tinymsgform.tiny_msg.focus();
		return false;
	}else{
		document.tinymsgform.action = "card_ecard_recmd.php";
		document.tinymsgform.target = "init_win";
		return true;
	}
}
function ipop_tiny_memo_check(){
	if(document.tinymsgform.tiny_msg.value == ""){
		alert('¸Þ¼¼Áö¸¦ ÀÔ·ÂÇÏÁö ¾ÊÀ¸¼Ì½À´Ï´Ù.');
		document.tinymsgform.tiny_msg.focus();
		return false;
	}else{
		document.tinymsgform.action = "ipop_recmd.php";
		document.tinymsgform.target = "init_win";
		return true;
	}
}

function eletter_tiny_memo_check(){
	if(document.tinymsgform.tiny_msg.value == ""){
		alert('¸Þ¼¼Áö¸¦ ÀÔ·ÂÇÏÁö ¾ÊÀ¸¼Ì½À´Ï´Ù.');
		document.tinymsgform.tiny_msg.focus();
		return false;
	}else{
		document.tinymsgform.action = "card_eletter_recmd.php";
		document.tinymsgform.target = "init_win";
		return true;
	}
}

function ecard_send_preview(){
	window.open('about:blank','ecard_send_preview','width=600,height=400,toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=1');
	send_card_form.action = "card_ecard_preview.php";
	send_card_form.target = "ecard_send_preview";
	send_card_form.submit();
}

function scard_send_preview(){
	window.open('about:blank','scard_send_preview','width=600,height=400,toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=1');
	send_card_form.action = "scard_self_preview.php";
	send_card_form.target = "scard_send_preview";
	send_card_form.submit();
}

function eletter_send_preview(){
	window.open('about:blank','eletter_send_preview','width=600,height=400,toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=1');
	send_letter_form.action = "card_eletter_preview.php";
	send_letter_form.target = "eletter_send_preview";
	send_letter_form.submit();
}
function ipop_send_preview(){
	window.open('about:blank','ipop_send_preview','width=600,height=400,toolbar=0,scrollbars=1,location=0,status=0,menubar=0,resizable=1');
	ipop_preview.action = "ipop_preview.php";
	send_letter_form.target = "ipop_preview";
	ipop_form.submit();
}

function ecard_update_form_check(){
	if(e_card_update_form.swf_file_on_off.value=="on" || e_card_update_form.img_file_on_off.value=="on"){
		if(!confirm("ÆÄÀÏÀ» º¯°æÇÏ¼Ì½À´Ï´Ù.\n\n°è¼ÓÇÏ½Ã¸é ÀÌÀü ÆÄÀÏµéÀº »èÁ¦µÇ°í \n\n»õ·Î¿î ÆÄÀÏ·Î ´ëÃ¤µË´Ï´Ù.\n\n±×·¡µµ ¼öÁ¤À» ÇÏ½Ã°Ú½À´Ï±î?"))return false;
	}
	return true;
}
function eletter_update_form_check(){
	if(e_card_update_form.swf_file_on_off.value=="on" || e_card_update_form.img_file_on_off.value=="on"){
		if(!confirm("ÆÄÀÏÀ» º¯°æÇÏ¼Ì½À´Ï´Ù.\n\n°è¼ÓÇÏ½Ã¸é ÀÌÀü ÆÄÀÏµéÀº »èÁ¦µÇ°í \n\n»õ·Î¿î ÆÄÀÏ·Î ´ëÃ¤µË´Ï´Ù.\n\n±×·¡µµ ¼öÁ¤À» ÇÏ½Ã°Ú½À´Ï±î?"))return false;
	}
	return true;
}
function ecard_admin_delete(obj){
	if(!confirm("°è¼ÓÇÏ½Ã¸é Àü¿¡ ÀÖ´ø ÆÄÀÏµéÀº »èÁ¦µÇ°í \n\nº¹±¸ ÇÒ ¼ö ¾ø°Ô µË´Ï´Ù.\n\n±×·¡µµ »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?"))return;
	init_win.location.replace("e_card_delete.php?ecard_num="+obj);
}
function eletter_admin_delete(obj){
	if(!confirm("°è¼ÓÇÏ½Ã¸é Àü¿¡ ÀÖ´ø ÆÄÀÏµéÀº »èÁ¦µÇ°í \n\nº¹±¸ ÇÒ ¼ö ¾ø°Ô µË´Ï´Ù.\n\n±×·¡µµ »èÁ¦ ÇÏ½Ã°Ú½À´Ï±î?"))return;
	init_win.location.replace("e_letter_delete.php?eletter_num="+obj);
}

function card_send_check(){
	if(send_card_form.ecard_to_name.value == ""){
		alert('¹ÞÀ¸½Ã´ÂºÐ ÀÌ¸§ÀÌ ¾ø½À´Ï´Ù.');
		send_card_form.ecard_to_name.focus();
		return false;
	}
	if(send_card_form.ecard_to_email.value == ""){
		alert('¹ÞÀ¸½Ã´ÂºÐ ÀÌ¸ÞÀÏ ÁÖ¼Ò°¡ ¾ø½À´Ï´Ù.');
		send_card_form.ecard_to_email.focus();
		return false;
	}
	if(send_card_form.ecard_from_name.value == ""){
		alert('º¸³»½Ã´ÂºÐ ÀÌ¸§ÀÌ ¾ø½À´Ï´Ù.');
		send_card_form.ecard_from_name.focus();
		return false;
	}
	if(send_card_form.ecard_from_email.value == ""){
		alert('º¸³»½Ã´ÂºÐ ÀÌ¸ÞÀÏ ÁÖ¼Ò°¡ ¾ø½À´Ï´Ù.');
		send_card_form.ecard_from_email.focus();
		return false;
	}

	if(send_card_form.ecard_message.value == ""){
		alert('º¸³»½Ç Ä«µå ³»¿ëÀ» Àû¾îÁÖ¼¼¿ä.');
		send_card_form.ecard_message.focus();
		return false;
	}
	send_card_form.action = "card_ecard_stamp.php";
	send_card_form.target = "_self";
	send_card_form.submit();
	return true;
}

function letter_send_check(){
	if(send_letter_form.eletter_to_name.value == ""){
		alert('¹ÞÀ¸½Ã´ÂºÐ ÀÌ¸§ÀÌ ¾ø½À´Ï´Ù.');
		send_letter_form.eletter_to_name.focus();
		return false;
	}
	if(send_letter_form.eletter_to_email.value == ""){
		alert('¹ÞÀ¸½Ã´ÂºÐ ÀÌ¸ÞÀÏ ÁÖ¼Ò°¡ ¾ø½À´Ï´Ù.');
		send_letter_form.eletter_to_email.focus();
		return false;
	}
	if(send_letter_form.eletter_from_name.value == ""){
		alert('º¸³»½Ã´ÂºÐ ÀÌ¸§ÀÌ ¾ø½À´Ï´Ù.');
		send_card_form.eletter_from_name.focus();
		return false;
	}
	if(send_letter_form.eletter_from_email.value == ""){
		alert('º¸³»½Ã´ÂºÐ ÀÌ¸ÞÀÏ ÁÖ¼Ò°¡ ¾ø½À´Ï´Ù.');
		send_letter_form.eletter_from_email.focus();
		return false;
	}

	if(send_letter_form.eletter_message.value == ""){
		alert('º¸³»½Ç Ä«µå ³»¿ëÀ» Àû¾îÁÖ¼¼¿ä.');
		send_letter_form.eletter_message.focus();
		return false;
	}
	send_letter_form.action = "card_eletter_stamp.php";
	send_letter_form.target = "_self";
	send_letter_form.submit();
	return true;
}

function char_select_chg(obj){
	for(i=0;i<obj.char_chg.length;i++){
		if(obj.char_chg.options[i].selected == true){
			location.replace("/contents/cardbox/e_letter/card_eletter_sub_category.php?bigcate=ÄÉ¸¯ÅÍ ·¹ÅÍ&smallcate="+obj.char_chg.options[i].text+"&search_word="+obj.char_chg.options[i].value);
		}
	}
}	
///////////////////////////////ÄíÅ°°ü·Ã ///////////////////////////////////////////////////

function SetCookie (name, value) {  
	var argv = SetCookie.arguments;  
	var argc = SetCookie.arguments.length;  
	var expires = (argc > 2) ? argv[2] : null;  
	var path = (argc > 3) ? argv[3] : null;  
	var domain = (argc > 4) ? argv[4] : null;  
	var secure = (argc > 5) ? argv[5] : false;  
	document.cookie = name + "=" + escape (value) + 
	((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
	((path == null) ? "" : ("; path=" + path)) +  
	((domain == null) ? "" : ("; domain=" + domain)) +    
	((secure == true) ? "; secure" : "");
}
function addCookie(){
	var expDays = 30; // ÄíÅ° ¸¸·áÀÏÀÚ¸¦ ¼³Á¤ ÇÏ¼¼¿ä
	var exp = new Date(); 
	exp.setTime(exp.getTime() + (expDays*24*60*60*1000));

	var temp_year = meet_year.value;
	var temp_month = meet_month.value;
	var temp_day = meet_day.value;
	SetCookie('cook_year',temp_year,exp);
	SetCookie('cook_month',temp_month,exp);
	SetCookie('cook_day',temp_day,exp);
}
function GetCookie(obj){
	var temp = document.cookie.split("; ");
	for(var i=0; i < temp.length; i++){
		var temp2 = temp[i].split("=");
		if( temp2[0] == obj && temp2[1] !=null){
			return temp2[1];
		}
	}
}


/////////////////////////////////½Ã°£ °ü·Ã/////////////////////////////
function DateCount(meet_year,meet_month,meet_day){
	if(meet_year.length > 0 && meet_month.length > 0 && meet_day.length > 0){
		var today = new Date();
		var start = new Date(meet_year,meet_month - 1,meet_day -1);
		var count = today.getTime() - start.getTime();
		count = Math.floor(count/(24*60*60*1000));
		result1.innerText = count;
	}
}
function DateCount2(count,meet_year,meet_month,meet_day){
	if(meet_year.length > 0 && meet_month.length > 0 && meet_day.length > 0 && count.length > 0){
		var newdate=new Date(meet_year,meet_month-1,meet_day - 1);
		var newtimems=newdate.getTime()+(count*24*60*60*1000);
		newdate.setTime(newtimems);
		var newdate1 = newdate.toLocaleString();
		result2_year.innerText = newdate1.substr(0,4);
		var temp = newdate1.substr(6,40);
		temp = temp.split("¿ù");
		result2_month.innerText = temp[0];
		var temp = newdate1.substr(9,40);
		temp = temp.split("ÀÏ");
		result2_day.innerText =temp[0];
	}
}


//////////////////////////////////////////////////////////////////////////////////////////////////

function r_day_setting(){
	year	= eval(document.all.r_year);
	month	= eval(document.all.r_month);
	day		= eval(document.all.r_day);
	var loops	= 28;

	if(month.value == "1" || month.value == "3" || month.value == "5" || month.value == "7" || month.value == "8" || month.value == "10" || month.value == "12"){
		loops = 31;
	}
	if(month.value == "4" || month.value == "6" || month.value == "9" || month.value == "11"){
		loops = 30;
	}
	
	if(month.value == "2"){
		if((year.value % 400) == 0)loops = 29;
		else if((year.value % 100) == 0)loops = 28;
		else if((year.value % 4) == 0)loops = 29;
	}
	
	day.options.length = 0;
	
	for(i=0;i<loops;i++){
		day[i] = new Option((i+1),(i+1));
	}

}

/////////////////////////////////// Ä¿¹Â´ÏÆ¼ °ü·Ã ///////////////////////////////////////////
	var select_obj;
	function layer_action(num,id,status,style){ 
		var obj= eval("document.all.layer_short_menu");
		
		switch(style){
			case "card":
				style1 = "#d5edfa"; //onmouseover
				style2 = "#4da6c8";	//font
				style3 = "#6cb6d4";	//table
			break;
			case "love":
				style1 = "#ffe2e8"; //onmouseover
				style2 = "#DB4D80";	//font
				style3 = "#f499b4";	//table
			break;
			case "fun":
				style1 = "#f0a125"; //onmouseover
				style2 = "#db69c0";	//font
				style3 = "#ea8f00";	//table
			break;
			case "my":
				style1 = "#95c358"; //onmouseover
				style2 = "#6d9d2e";	//font
				style3 = "#7aab39";	//table
			break;
			default:
				style1 = "#ffe2e8"; //onmouseover
				style2 = "#DB4D80";	//font
				style3 = "#f499b4";	//table
		}

		if(num){
			var printHeight = 0;
			var printMain="";
			
			printMain = printMain + "<tr onMouseOver=this.style.backgroundColor='"+style1+"' onMouseOut=this.style.backgroundColor='' onclick=go_hompy('"+num+"')><td style=font-family:±¼¸²;font-size:9pt height=18 nowrap><font color='"+style2+"'>º°Â¯º¸±â</font></td></tr>";
			printHeight = printHeight + 16;
			
			printMain = printMain +	"<tr bgcolor='"+style3+"' height='1'><td></td></tr>";
			printHeight = printHeight + 1;
			
			printMain = printMain +	"<tr onMouseOver=this.style.backgroundColor='"+style1+"' onMouseOut=this.style.backgroundColor='' onclick=sendSlip('"+id+"');><td style=font-family:±¼¸²;font-size:9pt height=18 nowrap><font color='"+style2+"'>ÂÊÁöº¸³»±â</font></td></tr>";
			printHeight = printHeight + 16;
			
			printMain = printMain +	"<tr onMouseOver=this.style.backgroundColor='"+style1+"' onMouseOut=this.style.backgroundColor='' onclick=openRoom('"+GetCookie('SESS_NAB')+"','"+id+"');><td style=font-family:±¼¸²;font-size:9pt height=18 nowrap><font color='"+style2+"'>1:1´ëÈ­½ÅÃ»</font></td></tr>";
			printHeight = printHeight + 16;
			
			printMain = printMain +	"<tr onMouseOver=this.style.backgroundColor='"+style1+"' onMouseOut=this.style.backgroundColor='' onclick=;><td style=font-family:±¼¸²;font-size:9pt height=18 nowrap><font color='"+style2+"'>ÂòÇÏ±â</font></td></tr>";
			printHeight = printHeight + 16;
			
			printMain = printMain +	"<tr bgcolor='"+style3+"' height='1'><td></td></tr>";
			printHeight = printHeight + 1;
			
			printMain = printMain +	"<tr onMouseOver=this.style.backgroundColor='"+style1+"' onMouseOut=this.style.backgroundColor='' onclick=\"temp_win.location.href='/contents/mybox/friends/friends_reg.php?fr_act=REG&f_flag=0x01&f_idindex[]="+id+"'\"><td style=font-family:±¼¸²;font-size:9pt height=18 nowrap><font color='"+style2+"'>Ä£±¸·Î µî·Ï</font></td></tr>";
			printHeight = printHeight + 16;

			printMain = printMain +	"<tr onMouseOver=this.style.backgroundColor='"+style1+"' onMouseOut=this.style.backgroundColor='' onclick=\"temp_win.location.href='/contents/mybox/friends/friends_reg.php?fr_act=REG&f_flag=0x04&f_idx[]="+id+"'\"><td style=font-family:±¼¸²;font-size:9pt height=18 nowrap><font color='"+style2+"'>³ª»Û Ä£±¸·Î µî·Ï</font></td></tr>";
			printHeight = printHeight + 16;

			
			
			var printHeader = "<table border=0><tr><td colspan=3 onMouseover=layer_action('"+num+"','"+id+"','none') height=3></td></tr><tr><td width=5 onMouseover=layer_action('"+num+"','"+id+"','none') rowspan=2>&nbsp;</td><td height=5></td></tr><tr><td><table style=cursor:hand border='0' cellspacing='1' cellpadding='0' bgcolor='"+style3+"' width=100% height=100%><tr><td valign=top bgcolor=white><table border=0 cellspacing=0 cellpadding=3 width=100% height=100%>";
			var printFooter = "</table></td></tr></table></td><td width=5 rowspan=2 onMouseover=layer_action('"+num+"','"+id+"','none')>&nbsp;</td></tr><tr><td colspan=3 height=10 onMouseover=layer_action('"+num+"','"+id+"','none')></td></tr></table>";
			obj.style.height = printHeight;
			obj.innerHTML = printHeader+printMain+printFooter;
		}
		var _tmpx,_tmpy, marginx, marginy;
		_tmpx = event.clientX + parseInt(obj.offsetWidth);
		_tmpy = event.clientY + parseInt(obj.offsetHeight);
		_marginx = document.body.clientWidth - _tmpx;
		_marginy = document.body.clientHeight - _tmpy ;
		if(_marginx < 0)
			_tmpx = event.clientX + document.body.scrollLeft + _marginx ;
		else
			_tmpx = event.clientX + document.body.scrollLeft ;
		if(_marginy < 0)
			_tmpy = event.clientY + document.body.scrollTop + _marginy +20;
		else
			_tmpy = event.clientY + document.body.scrollTop ;
		obj.style.posLeft=_tmpx-13;
		obj.style.posTop=_tmpy-12;
		if(status=='block') {
			if(select_obj) {
				select_obj.style.display='none';
				select_obj=null;
			}
			select_obj=obj;
		}else{
			select_obj=null;
		}
		obj.style.display=status; 
	}

	function layer_menu_ready(){
		var printHeight = 0;
		var printbody = "<div id='layer_short_menu' style='position:absolute; left:10px; top:25px; width:127; height: "+printHeight+"; z-index:1; display:none;' onclick=layer_action('0','','none')></div>";
		document.writeln(printbody);
	}



function go_hompy (serial,go) {
	window.open("http://villa.nartbox.com/"+serial+"/home.cgi?go="+go, "hompy", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,width=850,height=590");
}

//IE ActiveX°ü·Ã ÆÐÄ¡¿¡ µû¸¥ Ã³¸®
function draw_flash(){
    var contents    = (arguments[0])?arguments[0]:"";
	var width		= (arguments[1])?arguments[1]:"400";
    var height		= (arguments[2])?arguments[2]:"300";
    var quality		= (arguments[3])?arguments[3]:"high";
	var bgcolor		= (arguments[4])?arguments[4]:"";
	var src			= (arguments[5])?arguments[5]:arguments[0];

    var obj_str ="";
    obj_str    +="<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' id=intro2 width='"+width+"' height='"+height+"'>";
    obj_str    +=" <param name=movie value='"+contents+"'>\n";
    obj_str    +=" <param name=quality value=high>\n";
    obj_str    +=" <param name=loop value=true>\n";
    obj_str    +=" <param name=menu value=false>\n";
    obj_str    +=" <param name=scale value=exactfit>\n";
    if(bgcolor)    obj_str +="<param name='BGCOLOR' value='"+bgcolor+"'>\n";
    obj_str    +=" <param name=salign value=T>\n";
    obj_str    +=" <param name=allowScriptAccess value=always />\n";
    obj_str    +=" <param name=devicefont value=true>\n";
    obj_str    +=" <embed src='"+src+"' loop=true menu=false quality=high scale=exactfit salign=T devicefont=true bgcolor=#FFFFFF width='"+width+"' height='"+height+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'></embed>\n";
    obj_str    +="</object>\n";

    if(contents){
		document.write(obj_str);
	}else{
		return;
	}
}

  function gcard_movie_call(f_width,f_height,f_name,f_loadurl,f_bgcolor){
    var tmp = "";

    tmp += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ";
    tmp += "codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ";
    tmp += "width='"+f_width+"' height='"+f_height+"' id='"+f_name+"' align='middle'>\n";
    tmp += "\t\t<param name='allowScriptAccess' value='sameDomain' />\n";
    tmp += "\t\t<param name='movie' value='"+f_loadurl+"' />\n";
    tmp += "\t\t<param name='quality' value='high' />\n";
    tmp += "\t\t<param name='bgcolor' value='"+f_bgcolor+"' />\n";
    tmp += "\t\t<embed src='"+f_loadurl+"' quality='high' bgcolor='"+f_bgcolor+"' width='"+f_width+"' height='"+f_height+"' name='"+f_name+"' ";
    tmp += "align='middle' allowScriptAccess='sameDomain' ";
    tmp += "type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />\n";
    tmp += "\t\t</object>\n";

    document.write(tmp);
  }
