var IE = (document.all)? true:false ;
var NS = (document.layers)? true:false ;

/*
############## ÇÑ±Û Byte ±æÀÌ Ã¼Å© ###############
*/

var TOG_WORD				= '%0D';
//´Ü¹®¸Þ½ÃÁö¿¡¼­ ¸Þ½ÃÁöÀÇ ±æÀÌ¸¦ Ã¼Å©ÇÏ°í Â¥¸£´Â ÇÔ¼ö
function checkShrtMsgLen(obj,sByteLen) {
	var bResult		= checkMsgLen(obj,sByteLen);
	var iCountByte	= 0;
	var sContentMsg	= '';

	if (!bResult){
		sByteLen_k = Math.floor(sByteLen / 2);
		alert(sByteLen + " Byte¸¦ ³ÑÀ»¼ö ¾ø½À´Ï´Ù.\n\n(ÇÑ±Û " + sByteLen_k + " ÀÚ, ¿µ¹® " + sByteLen + " ÀÚ)");
		sContentMsg = cutText(obj,sByteLen);
		obj.value = sContentMsg;
	}
//	iCountByte = getByteLen(obj);
//	document.frmsms.COUNTBYTE.value = iCountByte[0];
}


function checkMsgLen(obj,sByteLen) {

	var iCounts = new Array();
	iCounts = getByteLen(obj);											//º¯¼öÀÇ ±æÀÌ¸¦ ±¸ÇÏ´Â ÇÔ¼ö

	if (iCounts[0] > sByteLen)
		return false;
	else
		return true;
}


function InputOnlyNum(v) {
	if (v < 48 || v > 57) {
		return false;
	}
	return true;
}


function FocusMove(len, obj1, obj2) {
	key	= event.keyCode;
	if (key != 9 && key != 16) {
		flag	= obj1.value.length;
		if (flag == len) {
			obj2.focus();
		}
	}
}


//ÀÏÁ¤ ¹ÙÀÌÆ® ÀÌ»ó µÇ¸é º¯¼öÀÇ ±æÀÌ¸¦ ÀÚ¸£´Â ÇÔ¼ö
function cutText(obj,sByteLen) {

	var sTmpMsg			= '';
	var iTmpMsgLen		= 0;
	var sOneChar		= '';
	var iCount			= 0;
	var sOneCharNext	= '';

	sTmpMsg = new String(obj.value);
	iTmpMsgLen = sTmpMsg.length;

	for (var k = 0 ;k < iTmpMsgLen ; k++) {
		sOneChar = sTmpMsg.charAt(k);
		sOneCharNext = sTmpMsg.charAt(k+1);
		if (escape(sOneChar) == TOG_WORD) {
			iCount++;
			if (iCount > sByteLen-1) {
				sTmpMsg = sTmpMsg.substring(0,k);
				break;
			}
		}
		else if (escape(sOneChar).length > 4) {
			iCount += 2;
		}
		else {
			iCount++;
		}
		if (iCount > sByteLen) {
			sTmpMsg = sTmpMsg.substring(0,k);
			break;
		}
	}
	return sTmpMsg;
}


//ÇÑ±ÛÀÏ °æ¿ì¿¡´Â 2byte¸¦ ±×¿ÜÀÇ ¹®ÀÚ´Â 1byte·Î °è»êÇÏ¿©  iCounts¿¡ ÀúÀåÇÏ¿© return ÇØÁØ´Ù.
function getByteLen(obj,sMsgLng) {

	var sMsg       = obj.value;
	var sTmpMsg    = '';												//¸Þ½ÃÁö¸¦ ÀÓ½Ã·Î ÀúÀåÇÏ´Â º¯¼ö
	var sTmpMsgLen = 0;													//ÀÓ½Ã·Î ÀúÀåµÈ ¸Þ½ÃÁöÀÇ ±æÀÌ¸¦ ÀúÀåÇÏ´Â º¯¼ö
	var sOneChar   = '';												//ÇÑ¹®ÀÚ¸¦ ÀúÀåÇÏ´Â º¯¼ö
	var iCounts    = new Array();										//ÃÑ ¹ÙÀÌÆ®¿Í ÆäÀÌÁö´ç ¹ÙÀÌÆ® ¼ö¸¦ ÀúÀåÇÏ´Â ¹è¿­

	iCounts[0]=0;														//ÃÑ ¹ÙÀÌÆ®¸¦ ÀúÀå ÇÏ´Â º¯¼ö

	if (sMsgLng != null) {
		sTmpMsg	= new String(sMsgLng);
	}
	else
		sTmpMsg	= new String(sMsg);
	sTmpMsgLen	= sTmpMsg.length;

	for (k = 0 ;k < sTmpMsgLen ;k++) {
		sOneChar = sTmpMsg.charAt(k);
		if (escape(sOneChar) == TOG_WORD) {
			iCounts[0]++;
		}
		else if (escape(sOneChar).length > 4) {
			iCounts[0] += 2;
		}
		else  {
			iCounts[0]++;
		}
	}

	return iCounts;
}

// ÁÖ¹Î¹øÈ£ Ã¼Å©
function chk_jumin(Jno)
{
	J1 = Jno.substr(0,6);
	J2 = Jno.substr(6,7);
	var SUM=0;
	// ÁÖ¹Îµî·Ï¹øÈ£ 1 ~ 6 ÀÚ¸®±îÁöÀÇ Ã³¸®
	// ÁÖ¹Îµî·Ï¹øÈ£¿¡ ¼ýÀÚ°¡ ¾Æ´Ñ ¹®ÀÚ°¡ ÀÖÀ» ¶§ Ã³¸®
 	for(i=0;i<J1.length;i++){
        	if (J1.charAt(i) >= 0 || J1.charAt(i) <= 9) {
        		// ¼ýÀÚ¸é °ªÀ» °öÇØ ´õÇÑ´Ù.
			if(i == 0){
				SUM = (i+2) * J1.charAt(i);
			} else {
				SUM = SUM +(i+2) * J1.charAt(i);
			}
		} else {
			// ¼ýÀÚ°¡ ¾Æ´Ñ ¹®ÀÚ°¡ ÀÖÀ» ¶§ÀÇ Ã³¸®
//			alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä");
			return false;
		}
	}

	// ÁÖ¹Îµî·Ï¹øÈ£ 7 ~  8 ÀÚ¸®±îÁöÀÇ Ã³¸®
	for(i=0;i<2;i++){
	        if (J2.charAt(i) >= 0 || J2.charAt(i) <= 9) {
	        	SUM = SUM + (i+8) * J2.charAt(i);
		}else{
			// ¼ýÀÚ°¡ ¾Æ´Ñ ¹®ÀÚ°¡ ÀÖÀ» ¶§ÀÇ Ã³¸®
//		   	alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä");
       		return false;
		}
	}

	// ÁÖ¹Îµî·Ï¹øÈ£ 9 ~ 12 ÀÚ¸®±îÁöÀÇ Ã³¸®
	for(i=2;i<6;i++){
	        if (J2.charAt(i) >= 0 || J2.charAt(i) <= 9) {
		   SUM = SUM + (i) * J2.charAt(i);
		}else{
			// ¼ýÀÚ°¡ ¾Æ´Ñ ¹®ÀÚ°¡ ÀÖÀ» ¶§ÀÇ Ã³¸®
//		   	alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä");
       		return false;
		}
	}

	// ³ª¸ÓÁö ±¸ÇÏ±â
	 var checkSUM = SUM % 11;
	// ³ª¸ÓÁö°¡ 0 ÀÌ¸é 10 À» ¼³Á¤
	if(checkSUM == 0){
	   var checkCODE = 10;
	// ³ª¸ÓÁö°¡ 1 ÀÌ¸é 11 À» ¼³Á¤
	}else if(checkSUM ==1){
	   var checkCODE = 11;
	}else{
	   var checkCODE = checkSUM;
	}
	// ³ª¸ÓÁö¸¦ 11 ¿¡¼­ »«´Ù
	var check1 = 11 - checkCODE;
	if (J2.charAt(6) >= 0 || J2.charAt(6) <= 9) {
		var check2 = parseInt(J2.charAt(6))
	}else{
		// ¼ýÀÚ°¡ ¾Æ´Ñ ¹®ÀÚ°¡ ÀÖÀ» ¶§ÀÇ Ã³¸®
//		alert("¼ýÀÚ¸¸ ÀÔ·ÂÇÏ¼¼¿ä");
		return false;
	}

	if(check1 != check2){
		// ÁÖ¹Îµî·Ï¹øÈ£°¡ Æ²¸± ¶§ÀÇ Ã³¸®
//		alert("ÁÖ¹Îµî·Ï ¹øÈ£¸¦ ´Ù½Ã È®ÀÎ ÇÏ¼¼¿ä.");
		return false;
	}else{
		return true;
	}
}


//¿Ü±¹ÀÎ ÁÖ¹Î¹øÈ£ Ã¼Å©
function chk_foreigner(reg_no) {
	if (reg_no.length != 13) {
		return false;
	}

    var sum = 0;
    var odd = 0;

    buf = new Array(13);
    for (i = 0; i < 13; i++) buf[i] = parseInt(reg_no.charAt(i));

    odd = buf[7]*10 + buf[8];   // ¾Õ¿¡¼­ 8,9¹øÂ° ÀÚ¸®¼ýÀÚ

    if (odd%2 != 0) {		//odd°¡ Â¦¼öÀÌ¾î¾ß ÇÔ
      return false;
    }

    if ((buf[11] != 6)&&(buf[11] != 7)&&(buf[11] != 8)&&(buf[11] != 9)) {  //12¹øÂ° ¼ýÀÚ´Â 6,7,8,9 Áß ÇÏ³ª
      return false;
    }

    multipliers = [2,3,4,5,6,7,8,9,2,3,4,5];
    for (i = 0, sum = 0; i < 12; i++) sum += (buf[i] *= multipliers[i]);


    sum = 11 - (sum % 11);

    if (sum >= 10) sum -= 10;

    sum += 2;

    if (sum >= 10) sum -= 10;

    if ( sum != buf[12]) {
      return false;
    }
    else {
        return true;
    }
}



function Link(obj) {
	obj.target = pageTarget;
}

function ChangeTarget(val) {
	var exp = new Date();
	exp.setTime(exp.getTime() + (365 * 24 * 60 * 60 * 1000));

	pageTarget = val;
	SetCookie ("dgdTarget", val, exp, "/", ".daganda.com");
}

function MakeInfoWindow(wURL, wFeature) {
	var mDate = new Date();
	sec = mDate.valueOf();
	window.open(wURL, "info_window" + sec, wFeature);
}


//trim ¸Þ¼Òµå

function trim(str) {
	var count = str.length;
	var len = count;
	var st = 0;

	while ((st < len) && (str.charAt(st) <= ' ')) {
		st++;
	}
	while ((st < len) && (str.charAt(len - 1) <= ' ')) {
		len--;
	}
	return ((st > 0) || (len < count)) ? str.substring(st, len) : str ;
}


// email Çü½Ä Ã¼Å©
function IsEmail(str) {
  // regular expression Áö¿ø ¿©ºÎ Á¡°Ë
	var supported = 0;
	if (window.RegExp) {
		var tempStr = "a";
		var tempReg = new RegExp(tempStr);
		if (tempReg.test(tempStr)) supported = 1;
	}
	if (!supported) return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);

	var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
	var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");

	return (!r1.test(str) && r2.test(str));
}


function CtrlStatus() {
	strStatus	= "¿­¸°¼¼»ó, ¿­¸°Á¤º¸, ´Ù°£´Ù´åÄÄ"
	self.status = strStatus;
	return true;
}


function MakePaymentWin(amt, prod) {
	if (amt == "" || amt == 0)
	{
		alert("°¡°ÝÀ» ¼±ÅÃÇÏ¼¼¿ä");
		return;
	}

	winW = 400;
	winH = 313;
	winL = (window.screen.width - winW) / 2;
	winT = (window.screen.height - winH) / 2;
	dURL = "/pay/paycheck.asp?amt=" + amt + "&productName=" + prod + "&service=" + escape('http://www.donga.com/movie/cinezone/bstillimage.php?gubun=200312090003&stillno=1');
	window.open(dURL, "dgdPay", "width=" + winW + ",height=" + winH + ",left=" + winL + ",top=" + winT);
}


function Open_MyWallet(wURL) {
	winW = 400;
	winH = 313;
	winL = (window.screen.width - winW) / 2;
	winT = (window.screen.height - winH) / 2;
//	dURL = "/pay/paycheck.asp?amt=" + amt + "&productName=" + prod + "&service=" + escape('http://www.donga.com/movie/cinezone/bstillimage.php?gubun=200312090003&stillno=1');
	window.open(wURL, "dgdPay", "width=" + winW + ",height=" + winH + ",left=" + winL + ",top=" + winT);
}


function GetFileNamefromURL(sURL) {
	patt = /\/([^\/\?]+)[^\/]*$/g;
	var re = new RegExp(patt);
	arr = re.exec(sURL);

	return arr[1];
}

function LayerMenu(o) {
	o.style.visibility = (o.style.visibility == "visible")? "hidden" : "visible";
}

function LayerMenu2(o, mode) {
	if (IE)
	{
		obj = eval("document.all['" + o + "']");
		obj.style.visibility = mode;
	}
	else
	{
		obj = eval("document." + o);
		obj.style.visibility = (mode == "visible")? "show" : "hide";
	}
}

function ChatWindow(wtype)
{
	wURL = "/chat/client.asp?mode=" + wtype;
	window.open(wURL,'dgdChat','width=776,height=538');
}

function LayerCtrl() {
	cW = document.body.clientWidth;
	cH = document.body.clientHeight;
	oH = document.body.offsetHeight;
	sH = document.body.scrollHeight;
	sT = document.body.scrollTop;

//	topBtn.style.top = cH - 75 + sT;
	adultMenu.style.left = (cW / 2) + 400;
}

document.onmouseover = CtrlStatus;



//// User Profile : chat
function ViewProfile(idx)
{
	pURL = "http://www.daganda.com/chat/profile.asp?mem=" + idx;
	window.open(pURL, "HostProfile", "width=380,height=457");
}

function ViewAlbum(idx)
{
	pURL = "http://www.daganda.com/chat/album.asp?mem=" + idx;
	window.open(pURL, "HostProfile", "width=380,height=457");
}


///// Header and Footer

function PrintTopHeader()
{
	if (IsLogin()) {
		loginStr = "<a href=\"/members/logout.asp\" onclick=\"return BeforeLogout();\"><font color=\"#666666\">·Î±×¾Æ¿ô</font></a>";
	}
	else {
		loginStr = "<a href=\"/members/loginform.asp\"><font color=\"#666666\">·Î±×ÀÎ</font></a>";
	}

	document.write("" +
		"<table width='380' height='30' border='0' cellpadding='0' cellspacing='0'>" +
		"<tr>" +
		"<td width='285' height='15'></td>" +
		"<td width='95'>&nbsp;</td>" +
		"</tr>" +
		"<tr>" +
		"<td height='15' colspan='2' align='right' valign='bottom'> <font color='#666666'><b>¢¹</b></font>" +
		"<a href='/movie.asp'><font color='#666666'>¿µÈ­</font></a>" +
		" | " +
		"<a href='/bbs/flash/board.asp?id=dgdFlash'><font color='#666666'>°¨µ¿ÇÃ·¡½Ã</font></a>" +
		" | " +
		"<a href='http://fortune.daganda.com'><font color='#666666'>¿î¼¼</font></a>" +
		" | " +
		"<a href='http://game.daganda.com'><font color='#CC0000'>°í½ºÅé/Æ÷Ä¿</font></a>" +
		" | " +
		"<a href='/pay/wallet.asp'><font color='#666666'>»çÀÌ¹ö¸Ó´Ï</font></a> | " + 
		loginStr +
		" &nbsp;</td></tr></table>");
}


function PrintMainMenu(prefix)
{
	if (docHost == "mangazzang.daganda.com" || docHost == "adult1.daganda.com" || baseHref.match(/\/adult\//i))
	{
		adult_menu_on = "_on";
		game_menu_on = "";
		cartoon_menu_on = "";
	}
	else if (docHost == "cartoon.daganda.com")
	{
		adult_menu_on = "";
		game_menu_on = "";
		cartoon_menu_on = "_on";
	}
	else
	{
		adult_menu_on = "";
		game_menu_on = "";
		cartoon_menu_on = "";
	}
	str = "" +
		"<td rowspan=\"2\"><a href=\"http://www.no-ad.co.kr/members/p_gateway.asp?scode=daganda\" target='_blank' onMouseOver=\"MM_swapImage('topImage1','','/gif/06top" + prefix + "_menu01_on.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/gif/06top" + prefix + "_menu01.gif\" name=\"topImage1\" width=\"77\" height=\"65\" border=\"0\" id=\"topImage1\"></a></td>" +
		"<td rowspan=\"2\"><a href=\"http://cartoon.daganda.com\" onMouseOver=\"MM_swapImage('topImage2','','/gif/06top" + prefix + "_menu02_on.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/gif/06top" + prefix + "_menu02" + cartoon_menu_on + ".gif\" name=\"topImage2\" width=\"76\" height=\"65\" border=\"0\" id=\"topImage2\"></a></td>" +
		"<td rowspan=\"2\"><a nohref=\"/slimdonkey/\" nonMouseOver=\"MM_swapImage('topImage3','','/gif/06top" + prefix + "_menu03_on.gif',1)\" nonMouseOut=\"MM_swapImgRestore()\"><img src=\"/gif/06top" + prefix + "_menu03.gif\" name=\"topImage3\" width=\"76\" height=\"65\" border=\"0\" id=\"topImage3\"></a></td>" +
		"<td width=\"71\" height=\"32\"><a href=\"/chat/main.asp\" onMouseOver=\"MM_swapImage('topImage51','','/gif/10top" + prefix + "_menu07_on.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/gif/10top_menu07.gif\" name=\"topImage51\" width=\"71\" height=\"32\" border=\"0\" id=\"topImage51\"></a></td>" +
		"<td width=\"62\" height=\"32\"><a href=\"/bbs/daganda/board.asp?id=dgdBizarre\" onMouseOver=\"MM_swapImage('topImage4','','/gif/10top" + prefix + "_menu04_on.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/gif/10top_menu04.gif\" name=\"topImage4\" width=\"62\" height=\"32\" border=\"0\" id=\"topImage4\"></a></td>" +
		"<td width=\"63\" height=\"32\"><a href=\"/bbs/adult2/board.asp?id=dgdadt2\" onMouseOver=\"MM_swapImage('topImage7','','/gif/10top" + prefix + "_menu05_on.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/gif/10top_menu05.gif\" name=\"topImage7\" width=\"63\" height=\"32\" border=\"0\" id=\"topImage7\"></a></td>" +
		"<td width=\"63\" height=\"32\"><a href=\"/bbs/daganda/board.asp?id=dgdrcg\" onMouseOver=\"MM_swapImage('topImage5','','/gif/10top" + prefix + "_menu06_on.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/gif/10top_menu06.gif\" name=\"topImage5\" width=\"63\" height=\"32\" border=\"0\" id=\"topImage5\"></a></td>" +
		"<td width=\"67\" height=\"32\"><a href=\"/bbs/flash/board.asp?id=dgdGame\" onMouseOver=\"MM_swapImage('topImage6','','/gif/10top" + prefix + "_menu08_on.gif',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/gif/10top_menu08.gif\" name=\"topImage6\" width=\"67\" height=\"32\" border=\"0\" id=\"topImage6\"></a></td>" +
		"<td width=\"53\" height=\"32\"><a nohref=\"/adult/adult.asp\" nonMouseOver=\"MM_swapImage('topImage8','','/gif/10top" + prefix + "_menu09_on.gif',1)\" nonMouseOut=\"MM_swapImgRestore()\"><img src=\"/gif/10top" + prefix + "_menu09" + adult_menu_on + ".gif\" name=\"topImage8\" width=\"56\" height=\"32\" border=\"0\" id=\"topImage8\"></a></td>";
	
	document.write(str);
}


function PrintSubMenu(prefix)
{
	docHost = document.location.host;

	menu_adult = "¢º " +
		"<a href='http://mangazzang.daganda.com/default.asp'><font color='#CCCCCC'>ÀÏº»¼ºÀÎ¸¸È­</font></a>" +
		" | " +
		"<a href='http://adult1.daganda.com'><font color='#CCCCCC'>¼ºÀÎ¿µÈ­°ü</font></a>" +
		" | " +
		"<a href='http://xxx.pluslink.com/?a=9308.9477.2' target='_blank'><font color='#CCCCCC'>TOP¼ºÀÎ»çÀÌÆ®</font></a>" +
		" | " +
		"<a href='http://www.daganda.com/bbs/adult/board.asp?id=adultGallary'><font color='#CCCCCC'>°¶·¯¸®</font></a>" +
		" | " +
		"<a href='http://www.daganda.com/adult/camchat/'><font color='#CCCCCC'>È­»óÃ¤ÆÃ</font></a>";

	menu_game = "¢º " +
		"<a href='http://game.daganda.com/game/GAME_pmatgo.asp'><font color='#000000'>°í½ºÅé</font></a>" +
		" | " +
		"<a href='http://game.daganda.com/game/GAME_poker.asp'><font color='#000000'>Æ÷Ä¿</font></a>";

	if (docHost == "mangazzang.daganda.com" || docHost == "adult1.daganda.com" || baseHref.match(/\/adult\//i))
	{
		menu = menu_adult;
	}
//	else if (docHost == "game.daganda.com")
//	{
//		menu = menu_game;
//	}
	else
	{
		menu = "¢º ¿À´Ãµµ ¸¹ÀÌ ¿ô´Â ÇÏ·ç°¡ µÇ¼¼¿ä."
		if (prefix)
		{
			menu = "<font color='#CCCCCC'>" + menu + "</font>"
		}
	}

	str = "<table width='379' height='33' align='right' border='0' cellspacing='0' cellpadding='0'>" +
		"<tr>" +
		"<td width='371'>" +
		menu +
		"</td>" +
		"<td width='10' align='right'><img src='/gif/06top" + prefix + "_menu_bg2.gif' width='3' height='33'></td>" +
		"</tr>" +
		"</table>";

	document.write(str);
}


function PrintFlash(width, height, src, objectID)
{
	var strObjId;
	if (objectID)
	{
		strObjId = " id='" + objectID + "'";
	}
	output = "<OBJECT " + strObjId + " codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' "
		+ "height='" + height + "' width='" + width + "' classid='clsid:D27CDB6E-AE6D-11cf-96B8-44455354000'>"
		+ "<PARAM NAME='Movie' VALUE='" + src + "'>"
		+ "<PARAM NAME='Quality' VALUE='High'>"
		+ "<embed src='" + src + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' "
		+ "type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'></embed></OBJECT>";
	
	document.open();
	document.write(output);
	document.close();

}


function PrintFlash2(divID, width, height, src, objectID)
{
	var obj = document.getElementById(divID);
//	alert(divID);

	if (obj)
	{
		obj.innerHTML = "<span></span><OBJECT id='" + objectID + "' codeBase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' "
					+ "height='" + height + "' width='" + width + "' classid='clsid:D27CDB6E-AE6D-11cf-96B8-44455354000'>"
					+ "<PARAM NAME='Movie' VALUE='" + src + "'>"
					+ "<PARAM NAME='Quality' VALUE='High'>"
					+ "<embed src='" + src + "' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' "
					+ "type='application/x-shockwave-flash' width='" + width + "' height='" + height + "'></embed></OBJECT>";
	}
}





