or download this
function choosecolor(form, name, title) {
colorWindow=window.open("about:blank","colorWindow","width=400
+,height=120,resizable=yes")
...
}
colorWindow.document.write(" </tr>");
colorWindow.document.write("</table></font><form><input type=b
+utton value=' Cancel ' onclick='self.close()'></form></center>");