document.writeln("<style type='text/css'>body{word-wrap:break-word;word-break:break-all;margin:auto;font-family:arial;font-size:16px;background-color:#ffdeef;text-align:center}h1,h2{font-size:20px;color:red;text-align:center}form{margin:0px}img{border:0px}div{margin:auto}a:link,a:visited{color:#000;text-decoration:none;padding:4px}a:hover{color:#ff0000;font-weight:bold}.input{cursor:pointer;border:#ff0000 1px solid;color:#ff0000;width:300px;padding:4px;font-weight:bold}.l{text-align:left}.t{margin:auto;border:0px;margin-bottom:12px;width:780px;text-align:center}td{vertical-align:top;}.c1{border:1px solid #ffdeef}.c2{border:1px solid #808080;cursor:pointer;width:14px;height:16px}</style>")
document.writeln("<iframe name='upfrm' style='display:none' src='about:blank' width='0' height='0'></iframe>")
var xmlHttp=false;var c0;try{xmlHttp=new XMLHttpRequest()}catch(trymicrosoft){try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(othermicrosoft){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(failed){xmlHttp=false}}}if(!xmlHttp){alert("启用Ajax功能失败，您可能无法使用本站的部分功能！")}
function zhenbi(url){if (document.all.id.value==""){alert("额，总得上传一张图片，或者说些什么吧？^.^ 急切网！");return false}document.getElementById('up').disabled=true;var MyWebSend="id="+encodeURIComponent(document.all.id.value)+"&id1="+encodeURIComponent(document.all.id1.value)+"&id2="+encodeURIComponent(document.all.id2.value)+"&id3="+encodeURIComponent(document.all.id3.value)+"&id4="+encodeURIComponent(document.all.id4.value)+"&id5="+encodeURIComponent(document.all.id5.value);if (document.all.id6.value=="jiqie"){MyWebSend=MyWebSend+"&id7="+encodeURIComponent(document.all.id7.value)+"&id8="+encodeURIComponent(document.all.id8.value)+"&id9="+encodeURIComponent(document.all.id9.value)+"&id10="+encodeURIComponent(document.all.id10.value)+"&id11="+encodeURIComponent(document.all.id11.value)+"&id12="+encodeURIComponent(document.all.id12.value)}else{MyWebSend=MyWebSend+"&id6="+encodeURIComponent(document.all.id6.value)}xmlHttp.open("POST",url,true);xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");xmlHttp.onreadystatechange=zhenbi_com;xmlHttp.send(MyWebSend);document.getElementById("show").innerHTML="<img src=/im/loading.gif>图片加载中..."}
function zhenbi_com(){if(xmlHttp.readyState==4){setTimeout(function(){document.getElementById('up').disabled=false},2000);document.getElementById("show").innerHTML="&nbsp;";if(xmlHttp.status==200){document.getElementById("show").innerHTML="⒈右击图片⒉ 图片另存为(S)<br>"+xmlHttp.responseText}else{document.getElementById("show").innerHTML="<img src=/im/loading.gif>网络错误或者服务器繁忙,请访问www.jiqie.com更换其他服务器!<br>"}}}
function l0(){var jiqie=document.all.upfile.value.split('.')[document.all.upfile.value.split('.').length-1].toLowerCase();if(jiqie!='jpg'&&jiqie!='jpeg'&&jiqie!='png'&&jiqie!='gif'){alert('请确认您上传的是否是图片哦! \n 只能使用gif、jpg、png格式的图片哦!^_^');return false}document.upfor.submit();document.all.upfor.style.display='none';document.all.upinfo.innerHTML="<img src=/im/loading.gif>上传中…"}
function l1(msg){document.all.id.value=msg;document.all.upinfo.innerHTML="<font color='red'>恭喜您，成功上传图片！</font><br>说明：制作间隔2秒，10秒后可以[重新上传]";setTimeout(function(){document.getElementById("upinfo").innerHTML="<font color='red'>恭喜您，成功上传图片！</font><br><a style='cursor:pointer' onclick='window.external.AddFavorite(location.href,document.title);'>[加入收藏]</a><a style='cursor:pointer'onclick='l2();'>[重新上传]</a>"},10000)}
function l2(msg){if(msg)alert(msg);document.all.upinfo.innerHTML="";document.all.upfor.style.display=''}
function d1(color){c0.style.backgroundColor=c0.value;}
function d2(color){c0.style.backgroundColor=color;}
function d3(color){c0.value=color;c0.style.backgroundColor=color;c0.style.borderColor="#FFF";document.getElementById("col").innerHTML=""}
function col(c1){c0=c1;var c2="<table border=0  cellspacing=0 cellpadding=0>";var c3=new Array("00","33","66","99","CC","FF");var j=0;
for(var r=5;r>=0;r--){for(var g=5;g>=0;g--)for(var b=5;b>=0;b--){c4="#"+c3[r]+c3[g]+c3[b];c2+="<td class='c1' onmouseout=\"parent.d1('"+c4+"')\" onmouseover=\"parent.d2('"+c4+"')\" onmousedown=\"parent.d3('"+c4+"')\"><table class ='c2' bgcolor='"+c4+"'><tr><td></td></tr></table></td>";j++;if(j%18==0 && j>1){c2+="<tr></tr>"} }}c2+="</table>";document.getElementById("col").innerHTML=c2}