<!-- Begin
var email = GetCookie('email_address');
if (email == null) {
email = 'your email here';
}
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0)
break;}
return null;}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = ".internet.com";
// (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" +
expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");}

function checkCodeMail() {
invalid = ""
email = document.mail.user.value;
code = document.mail.source.value;
if (code == "") {
invalid += "Before you can send your code to yourself you need to ";
invalid += "follow the instructions above to output the code.  When "
invalid += "the code has been generated, click \"Done\" to email it!\r\n\r\n";}
if (email.indexOf("@")<1 || email == "your email here" || email == "") {
invalid += "Invalid email address!  Be sure that in your email address ";
invalid += "you included your Username, the '@' Sign, and the Domain Name.";}
if (invalid == "") {
doAd();
return true;
}
else {
alert(invalid);
return false;}}
function doAd() {
pathname = location.pathname;
myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var largeExpDate = new Date ();
largeExpDate.setTime(largeExpDate.getTime() + (24 * 3600 * 1000));
SetCookie('email_address',email,largeExpDate,myDomain);
page = "http://www.anouksweb.nl?" + email;
window.open(page, "AdWindow", "width=515,height=150");
return true;}
function uncode() {
smut="&lt;";
replacewords="< ";
txt=document.mail.source2.value;
tstx="";
space=replacewords.indexOf(" ");
wrd=replacewords.substring(0,space);
wrdl=wrd.length
replacewords=replacewords.substring(space+1,replacewords.length);
while (txt.indexOf(wrd)>-1){
space=txt.indexOf(wrd);
txt=txt.substring(0,space)+smut+txt.substring((space+wrdl),txt.length);}
smut="&gt;";
replacewords="> ";
space=replacewords.indexOf(" ");
wrd=replacewords.substring(0,space);
wrdl=wrd.length
replacewords=replacewords.substring(space+1,replacewords.length);
while (txt.indexOf(wrd)>-1){
space=txt.indexOf(wrd);
txt=txt.substring(0,space)+smut+txt.substring((space+wrdl),txt.length);}
document.mail.source2.value=txt;}
// End -->
</SCRIPT>
<SCRIPT language=JavaScript>
<!-- Idea by:  anouk -->
<!-- Web URL:  http://www.anouksweb.nl -->

<!--  Begin
function generate(form){
page = document.inputForm.page.value;
toolbars = document.inputForm.toolbars.checked;
scrollprops = document.inputForm.scrollit.checked;
locations = document.inputForm.locations.checked;
statusbars = document.inputForm.statusbars.checked;
menubars = document.inputForm.menubars.checked;
resizeable = document.inputForm.resizeable.checked;
width = document.inputForm.width.value;
if (!width) width = screen.width;
height = document.inputForm.height.value;
if (!height) height = screen.height;
howto = document.inputForm.howtoopen.options[document.inputForm.howtoopen.selectedIndex].value;
center = document.inputForm.center.checked;

start = "<";

if(howto == 'body') {
otherOutput = start + "!-- STAP TWEE: Plak deze  onLoad event handler in de  BODY tag -->\n\n" + start + "BODY onLoad=\"javascript:popUp('" + page + "')\">";
}
if(howto == 'link') {
otherOutput = start + "!-- STAP TWEE: gebruik de volgende link om de wondow te openen -->\n\n" + start + "A HREF=\"javascript:popUp('" + page + "')\">Open de  Popup Window" + start + "/A>";
}
if(howto == 'button') {
otherOutput = start + "!-- STAP TWEE: gebruik de volgende button code om de window te openen -->\n\n" + start + "form>\n" + start + "input type=button value=\"Open de Popup Window\" onClick=\"javascript:popUp('" + page + "')\">\n" + start + "/form>";
}

scriptOutput = start + '!-- de volgende 2 stappen om de pop-up te instaleren:\r\n\r\n'
+ '   1.  Plak de volgende code tussen de <head> tags van je HTML document\r\n'
+ '   2.  Gebruik de code om de pop-up te openen op je site  -->\r\n\r\n'
+ '<!-- STAP EEN: Plak de volgende code tussen de <head> tags van je HTML document  -->\r\n\r\n'
+ '<HEAD>\r\n\r\n' + start + 'SCRIPT LANGUAGE="JavaScript">\r\n' 
+ '<!-- Idea by:  anouk -->\r\n'
+ '<!-- Web URL:  http://www.anouksweb.nl -->\r\n\r\n'
+ '<!--  -->\r\n'
+ '<!--  -->\r\n\r\n'
+ '<!-- Begin\r\n'
+ 'function pop' + 'Up(URL) {\nday = new Date();\nid = day.getTime();\n';

scriptOutput += "eval(\"page\" + id + \" = window.open(URL, '\" + id + \"', '" +

((toolbars) ? "toolbar=1," : "toolbar=0,") + 
((scrollprops) ? "scrollbars=1," : "scrollbars=0,") +
((locations) ? "location=1," : "location=0,") +
((statusbars) ? "statusbar=1," : "statusbar=0,") +
((menubars) ? "menubar=1," : "menubar=0,") +
((resizeable) ? "resizable=1" : "resizable=0") +
((width) ? ",width=" + width : "") +
((height) ? ",height=" + height : "") +
((center) ? ",left = " + ((screen.width - width) / 2) : "") +
((center) ? ",top = " + ((screen.height - height) / 2) : "") +
"');\");\n}\n// End -->\n" + start + "/sc" + "ript>\n";

output = scriptOutput + "\n\n" + otherOutput + '\n\n' + start +'! graag gedaan !'+'>';

document.mail.source.value = output;
document.mail.source2.value = output;

uncode();
}
// End -->
