function inverse(color) { if(color.length == 7) { color = color.substring(1, 7); } color = '00000' + (0xffffff - parseInt(color, 16)).toString(16); return color.substr(color.length - 6, 6); }document.write('Your Ad HereBuy an ad right now!');