<!-- Hide from JavaScript-Impaired Browsers
// Script by Riverdrift 2002
function makeit(form) {
var txt = '<html>\r\n<head>\r\n';
if (document.cd.text.value != "") {
txt = txt + '<title>' + document.cd.text.value + '</title>\r\n</head>\r\n';
}
if (document.cd.day.value != "") {
txt = txt + '<body bgcolor=\"#000000\">\r\n<div align=\"center\">\n';
}
if (document.cd.img.value != "") {
txt = txt + '<table bgcolor="' + document.cd.tab.value + '" border="6"><tr><td align="center">\n';
}
if(document.cd.img.value && !document.cd.tab.value) { 
txt = txt +='<table bgcolor="' + document.cd.tab.value + '" border="6"><tr><td align="center">\n';
}
if (document.cd.img.value != "") {
txt = txt + '<img src="' + document.cd.img.value + '"';
}
if (document.cd.iw.value != "") {
txt = txt + ' width="' + document.cd.iw.value + '"';
}
if (document.cd.ih.value != "") {
txt = txt + ' height="' + document.cd.ih.value + '"';
}
if (document.cd.img.value != "") {
txt = txt + ' border="0" alt="gif" />\n</td></tr></table>\n<br><br>\n';
}
if (document.cd.tab.value != "") {
txt = txt + '<table bgcolor="' + document.cd.tab.value + '" border=\"6\"><tr><td align=\"center\">\n';
}
if (document.cd.font.value != "") {
txt = txt + '<font color="' + document.cd.font.value + '">\n';
}
if (document.cd.text2.value != "") {
txt = txt + '' + document.cd.text2.value + '\n';
}
if (document.cd.mo.value != "") {
txt = txt + '<script type="text/javascript">\n';
}
if (document.cd.mo.value != "") {
txt = txt + '<!-- Begin\nvar date = new Date("' + document.cd.mo.value + ' ';
}
if (document.cd.day.value != "") {
txt = txt + '' + document.cd.day.value + ', ';
}
if (document.cd.year.value != "") {
txt = txt + '' + document.cd.year.value + '");\n ' +
'var now = new Date();\n ' +
'var diff = date.getTime() - now.getTime();\n ' +
'var days = Math.floor(diff / (1000 * 60 * 60 * 24));\n ' +
'if (days > 1) {\n ' +
'document.write(days+1 + " Days");\n}\n ' +
'else if (days == 1) {\n ' +
'document.write("Two Days");\n}\n ' +
'else if (days == 0) {\n ' +
'document.write("Tomorrow");\n}\n ' +
'else {\ndocument.write("Today");\n ' +
'}\n// End -->\n<\/script>\n';
}
if (document.cd.text.value != "") {
txt = txt + '' + document.cd.text.value + '\n</font>\n';
}
if (document.cd.tab.value != "") {
txt = txt + '</td></tr></table>\n';
}
txt = txt + '</div>\n</body>\n</html>\n'
document.cd.count.value=txt;
}
function viewit() 
{ 
document.write (document.cd.count.value) 
} 
function copy()  {
document.cd.count.focus();
document.cd.count.select();
} 
function ResetPage(form) {
{ 
form.count.value="";    
form.year.value="";  
form.mo.value="";  
form.day.value="";  
form.text.value="";  
form.text2.value="";  
form.tab.value="";  
form.font.value="";  
form.img.value="";  
form.ih.value="";  
form.iw.value="";  
}
}
// End Hiding -->


