/* Sawpit No-spam Email Wizard by Allan Saw */

/* Copyright © 2002, all rights reserved */

function MakeIt(form)
{

var info='<!-- Countdown Wizard by EreNeT.NET. © 2002, all rights reserved.-->\n\n';

if (form.openhead.value)
info+='<font size="'+ form.font.value +'">\n<script language=\"JavaScript\">\n<!--\nvar today = new Date;\nvar Future0 = new Date;\nThisYear = '+ form.FullYear.value +';\nvar FutureMonth = '+ form.mon.value +';\nvar FutureDate = '+ form.dat.value +';\nvar faraevent = "'+ form.EventName.value +'";\nFuture0.setMonth(FutureMonth, FutureDate);\nFuture0.setFullYear(ThisYear);\ntoday1 = Date.parse(today);\nfuture1 = Date.parse(Future0);\nsecleft = future1 - today1;\nmiliday = 24 * 60 * 60 * 1000;\ndaysleft = secleft/miliday;\ndaysleftint = Math.round(daysleft);\nif (daysleftint > 1)\ndocument.write(\"There are \", daysleftint, \" days until \", faraevent , \"! \");\nelse if (daysleftint == 1)\ndocument.write(faraevent, \" is tomorrow! \");\nelse if (today1 == future1)\ndocument.write(faraevent, \" is today! \");\n//-->\n</script>\n</font>';


form.source.value=info;
}

function AddText(form, Action)
{
var AddTxt="";
var info="";
form.keywords.value+=AddTxt;
}

function doClear(theText) {
if (theText.value == theText.defaultValue) {
theText.value = ""
}
}

/* Copy Script */

function highlight() {
document.countdown.source.select(); document.countdown.source.focus()
}

function copy() {
highlight();
textRange = document.countdown.source.createTextRange();
textRange.execCommand("RemoveFormat");
textRange.execCommand("Copy");
alert("Tüm Kodu Kopyaladınız.\n\nŞimdi Bu Kodu Sitenizin uygun yerine yapıştırınız.\n\nEreNeT.NeT i Tercih ettiğiniz için teşekkürler.");
}

/* End Copy script */

/* Text Box - clear text */

function doClear(theText) {
if (theText.value == theText.defaultValue) {
theText.value = ""
}
}

/* End Text Box - clear text */
