
function makecode()
{
document.ct_uploader.elements['codeholder'].value='';
var codestring='';
var imgurl=document.ct_uploader.elements['imgURL'].value;
if (document.ct_uploader.elements['ctsize'].value=='huge')
{
codestring+='<style type="text/css">';
codestring+='.contactTable {';
codestring+='	width:300px!important; ';
codestring+='	height:300px!important; ';
codestring+='	padding:0px!important; ';
codestring+='	background-image:url(\''+imgurl+'\'); ';
codestring+='	background-attachment:scroll; ';
codestring+='	background-position:center center; ';
codestring+='	background-repeat:no-repeat; ';
codestring+='	background-color:transparent;';
codestring+='}';
codestring+='.contactTable table, table.contactTable td {';
codestring+='	padding:0px !important; ';
codestring+='	border:0px; ';
codestring+='	background-color:transparent; ';
codestring+='	background-image:none;';
codestring+='}';
codestring+='.contactTable a img {';
codestring+='	visibility:hidden; ';
codestring+='	border:0px!important;';
codestring+='}';
codestring+='.contactTable a {';
codestring+='	display:block; ';
codestring+='	height:55px; ';
codestring+='	width:135px;';
codestring+='	margin-bottom:10px;';
codestring+='	margin-top:-5px;';
codestring+='}';
codestring+='.contactTable .text {';
codestring+='	font-size:1px!important;';
codestring+='}';
codestring+='.contactTable .text, .contactTable a, .contactTable img {';
codestring+='	filter:none!important;';
codestring+='}';
codestring+='</style>';
/* END */
}

if (document.ct_uploader.elements['ctsize'].value=='mini')
{
codestring+='<style type="text/css">';
codestring+='.contactTable { ';
codestring+='	width:226px !important; ';
codestring+='	height:132px !important; ';
codestring+='	padding:0px !important; ';
codestring+='	background-image:url(\''+imgurl+'\'); ';
codestring+='	background-attachment:scroll; ';
codestring+='	background-position:center center; ';
codestring+='	background-repeat:no-repeat; ';
codestring+='	background-color:transparent;';
codestring+='} ';
codestring+='.contactTable table, table.contactTable td { ';
codestring+='	padding:0px !important; ';
codestring+='	border:0px; ';
codestring+='	background-color:transparent; ';
codestring+='	background-image:none;';
codestring+='} ';
codestring+='.contactTable a img {';
codestring+='	visibility:hidden; ';
codestring+='	border:0px !important;';
codestring+='} ';
codestring+='.contactTable v {';
codestring+='	width:224;';
codestring+='	height:130;';
codestring+='	weight:none !Important';
codestring+='} ';
codestring+='.contactTable a {';
codestring+='	display:block; ';
codestring+='	height:23px; ';
codestring+='	width:140px;';
codestring+='} ';
codestring+='.contactTable .text {';
codestring+='	font-size:1px !important;';
codestring+='} ';
codestring+='.contactTable .text, .contactTable a, .contactTable img {';
codestring+='	filter:none !important;';
codestring+='} ';
codestring+='.contactTable .whitetext12 {';
codestring+='	padding-left:	38px;';
codestring+='} ';
codestring+='</style>';
/* END */
}



if (document.ct_uploader.elements['ctsize'].value=='standard')
{
codestring+='<style type="text/css"> ';
codestring+='.contactTable {';
codestring+='	width:300px!important; ';
codestring+='	height:150px!important; ';
codestring+='	padding:0px!important; ';
codestring+='	background-image:url(\''+imgurl+'\'); ';
codestring+='	background-attachment:scroll; ';
codestring+='	background-position:center center; ';
codestring+='	background-repeat:no-repeat; ';
codestring+='	background-color:transparent;';
codestring+='} ';
codestring+='.contactTable table, table.contactTable td {';
codestring+='	padding:0px !important; ';
codestring+='	border:0px; ';
codestring+='	background-color:transparent; ';
codestring+='	background-image:none;';
codestring+='} ';
codestring+='.contactTable a img {';
codestring+='	visibility:hidden; ';
codestring+='	border:0px!important;';
codestring+='} ';
codestring+='.contactTable a {';
codestring+='	display:block; ';
codestring+='	height:30px; ';
codestring+='	width:135px;';
codestring+='} ';
codestring+='.contactTable .text {';
codestring+='	font-size:1px!important;';
codestring+='}';
codestring+='.contactTable .text, .contactTable a, .contactTable img {';
codestring+='	filter:none!important;';
codestring+='}';
codestring+='</style>';
/* END */
}

codestring+='<div style="z-index: 100; position:absolute; top: 00px; left: 0px;" ><a href="http://www.ourspacer.com/"><img src="http://www.ourspacer.com/images/topimage.jpg" style="filter:alpha(opacity=50); -moz-opacity:0.5; opacity:0.5; -khtml-opacity:0.5;"></a></div>';
codestring+='<br /><a href="http://www.ourspacer.com/contact_table_uploader/" title="Contact Table Uploader">Contact Table Uploader</a><br /><a href="http://www.ourspacer.com/">Myspace Layout Generator</a></div>';
document.ct_uploader.elements['codeholder'].value=codestring;

}
