<script language=JavaScript>
/*
All Files are Designed & Writen by Windy_sk, you can use it freely but ...
YOU MUST KEEP THIS ITEM !
Email: seasonx@163.net
*/
window.onload = function(){
var color_list = new Array();
var hex = new Array(6);
var CurColor;
var CurIndex;
hex[0] = "FF"
hex[1] = "CC"
hex[2] = "99"
hex[3] = "66"
hex[4] = "33"
hex[5] = "00"
for(var x=0;x<6;x++){
for(var y=0;y<6;y++){
for(var z=0;z<6;z++){
CurColor = hex[x] + hex[y] + hex[z];
CurIndex = color_start.options.length;
color_start.options[CurIndex] = new Option("",CurColor);
color_start.options[CurIndex].style.backgroundColor = "#"+ CurColor;
CurIndex = color_end.options.length;
color_end.options[CurIndex] = new Option("",CurColor);
color_end.options[CurIndex].style.backgroundColor = CurColor;
}
}
}
}
function Dec2Any(str,num){
if(!/\d+/.test(str)) return NaN;
if(!/\d+/.test(num)) return NaN;
var num=eval(num);
if(num>36 || num<2) return NaN;
var the_str="0123456789abcdefghijklmnopqrstuvwxyz";
var str=eval(str);
var residue=0;
var result="";
while(true){
residue=str%num;
result = the_str.charAt(residue) + result;
if(str<num) break;
str=Math.floor(str/num);
}
return(result);
}