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.robsdomein.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;}

// Dit script en nog veel meer zijn gratis beschikbaar op Robs Domein!! http://www.robsdomein.nl

<!--  Begin
function generate(form){
var txt = '<!-- EEN STAP OM HET DROPDOWN MENU TE INSTALLEREN:\r\n\r\n'
+ '   1.  Plak de code tussen de <BODY> tags van je HTML document  -->\r\n\r\n'
+ '<!--  STAP EEN: Plak de volgende code tussen de <BODY> tags van je HTML document  -->\r\n\r\n'
+ '<BODY>\r\n\r\n'
+ '<!-- Original:  Ricocheting (ricocheting@hotmail.com)  -->\r\n'
+ '<!-- Dit script en nog veel meer zijn gratis beschikbaar op -->\r\n'
+ '<!-- Robs Domein!! http://www.robsdomein.nl -->\r\n\r\n';

if (document.jump.go[0].checked) {
txt += "<form name=\"jump\">\n<select name=\"menu\" onChange=\"location=document.jump.menu.options[document.jump.menu.selectedIndex].value;\" value=\"START\">\n";
}
if (document.jump.go[1].checked) {
txt += "<form name=\"jump\">\n<select name=\"menu\">\n";
var Button = "<input type=\"button\" onClick=\"location=document.jump.menu.options[document.jump.menu.selectedIndex].value;\" value=\"START\">\n";
}
if (document.jump.go[2].checked) {
txt += "<form name=\"jump\">\n<script>\nfunct" +
"ion jumpMenu(){\nlocation=document.jump.menu.options[document.jump.menu.selectedIndex].value;\n}\n" +
"</sc" + "ript>\n<select name=\"menu\">\n";
var Button = "<a href=\"Javascript:jumpMenu()\">"+
"<IMG SRC=\""+document.jump.image.value+"\" border=0></a>\n";
}
for (jig = 5; jig <= 24; jig = jig + 2) {
if (form[jig].value)
{
   txt += "<option";
   if (form[jig+1].value)
   {
   txt += " value=\""+form[jig+1].value+"\"";
   }
   else
   {
   txt += " value=\"#\"";
   }
   txt += ">"+form[jig].value+"</option>\n";
}

}

if (document.jump.go[0].checked) {
txt += "</select>\n</form>\n";
}
if (document.jump.go[1].checked) {
txt += "</select>\n"+Button+"</form>\n";
}
if (document.jump.go[2].checked) {
txt += "</select>\n"+Button+"</form>\n";
   }
document.mail.source.value=txt;
document.mail.source2.value=txt;

uncode();
}

function View(text) {
msg=open("","DisplayWindow","menubar=1,width=300,height=100");
msg.document.write(text);
}

