function update_code()
{
    var ob = document.getElementById("code_url");
    var disp = document.getElementById("display_code");
	
    disp.innerHTML = gen_code(ob.value);
}

function gen_code(text)
{
	str = "";
	label = document.getElementById("code_url");		
	
	str = "<div style='position:absolute; left:-350px; top:-450px;'><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:130px; top:150px; width:16px; height:548px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='3' style='position:absolute; left:177px; top:170px; width:16px; height:388px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:225px; top:190px; width:16px; height:324px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:265px; top:180px; width:16px; height:499px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:325px; top:160px; width:16px; height:411px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:239px; top:190px; width:16px; height:251px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='1' style='position:absolute; left:141px; top:150px; width:16px; height:221px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='7' style='position:absolute; left:289px; top:170px; width:16px; height:230px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:108px; top:230px; width:16px; height:241px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='2' style='position:absolute; left:370px; top:190px; width:16px; height:386px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='2' style='position:absolute; left:394px; top:150px; width:16px; height:484px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='2' style='position:absolute; left:430px; top:170px; width:16px; height:442px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='3' style='position:absolute; left:475px; top:200px; width:16px; height:423px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='6' style='position:absolute; left:559px; top:170px; width:16px; height:541px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='2' style='position:absolute; left:580px; top:200px; width:16px; height:423px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:533px; top:170px; width:16px; height:385px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='1' style='position:absolute; left:614px; top:200px; width:16px; height:332px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='3' style='position:absolute; left:651px; top:250px; width:16px; height:386px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:684px; top:290px; width:16px; height:514px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='1' style='position:absolute; left:658px; top:180px; width:16px; height:247px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='1' style='position:absolute; left:694px; top:160px; width:16px; height:216px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='2' style='position:absolute; left:738px; top:200px; width:16px; height:392px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='1' style='position:absolute; left:753px; top:150px; width:16px; height:544px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:800px; top:180px; width:16px; height:404px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:830px; top:150px; width:16px; height:548px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='3' style='position:absolute; left:877px; top:170px; width:16px; height:388px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:925px; top:190px; width:16px; height:324px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:965px; top:180px; width:16px; height:499px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:1025px; top:160px; width:16px; height:411px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:1039px; top:190px; width:16px; height:251px;'><span style='color: !important;'>" + label.value + "</span></marquee></div>";
	
	
	str += "<textarea name='text_code' cols=40 rows=3 style='border-style:dashed' onclick='this.select()'>";
	
	str += "<marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:130px; top:150px; width:16px; height:548px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='3' style='position:absolute; left:177px; top:170px; width:16px; height:388px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:225px; top:190px; width:16px; height:324px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:265px; top:180px; width:16px; height:499px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:325px; top:160px; width:16px; height:411px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:239px; top:190px; width:16px; height:251px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='1' style='position:absolute; left:141px; top:150px; width:16px; height:221px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='7' style='position:absolute; left:289px; top:170px; width:16px; height:230px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:108px; top:230px; width:16px; height:241px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='2' style='position:absolute; left:370px; top:190px; width:16px; height:386px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='2' style='position:absolute; left:394px; top:150px; width:16px; height:484px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='2' style='position:absolute; left:430px; top:170px; width:16px; height:442px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='3' style='position:absolute; left:475px; top:200px; width:16px; height:423px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='6' style='position:absolute; left:559px; top:170px; width:16px; height:541px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='2' style='position:absolute; left:580px; top:200px; width:16px; height:423px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:533px; top:170px; width:16px; height:385px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='1' style='position:absolute; left:614px; top:200px; width:16px; height:332px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='3' style='position:absolute; left:651px; top:250px; width:16px; height:386px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:684px; top:290px; width:16px; height:514px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='1' style='position:absolute; left:658px; top:180px; width:16px; height:247px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='1' style='position:absolute; left:694px; top:160px; width:16px; height:216px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='2' style='position:absolute; left:738px; top:200px; width:16px; height:392px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='1' style='position:absolute; left:753px; top:150px; width:16px; height:544px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:800px; top:180px; width:16px; height:404px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:830px; top:150px; width:16px; height:548px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='3' style='position:absolute; left:877px; top:170px; width:16px; height:388px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:925px; top:190px; width:16px; height:324px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:965px; top:180px; width:16px; height:499px;'><span style='color: !important;'>" + label.value + "</span></marquee> <marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:1025px; top:160px; width:16px; height:411px;'><span style='color: !important;'>" + label.value + "</span></marquee><marquee behavior='scroll' direction='down' scrollamount='5' style='position:absolute; left:1039px; top:190px; width:16px; height:251px;'><span style='color: !important;'>" + label.value + "</span></marquee>";
	
	str += "<div style='position: absolute; left:0px; top:0px; width:100px; height:60px; z-index:9;'><a href='http://www.christianmyspacecodes.com' title='Myspace Layouts'><img src='http://www.christianmyspacecodes.com/images/myspace_layout.gif' alt='Christian Myspace Layouts' border='0' /></a></div>I edited my profile at <a href='http://www.christianmyspacecodes.com/' title='Christian Myspace Codes' target='_blank'>http://www.christianmyspacecodes.com</a><br /><a href='http://www.dittytalk.com/' title='Christian Myspace' target='_blank'>Christian Myspace</a>";
	str += "</textarea>";

    return str;
}