// JavaScript Document

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: assbach :: http://www.ipernity.com/home/assbach
*/

function dummyreg() {
 var currentDate = new Date();
 var month = currentDate.getMonth() +1;
 var day = currentDate.getDate();
 var year = currentDate.getFullYear();
 var expyear = currentDate.getFullYear() + 1;
 var formDate = day + "-" + month + "-" + year;
 var expformDate = month + "-" + day + "-" + expyear; 

 // Use whatever data you like for the items below
	//document.getElementById("name").value = "Robyn Buch";
	//document.getElementById("email").value = "mc@3somewhere.com";
	document.getElementById("CAT_Custom_65199").value = formDate;
	document.getElementById("ZoneExpiry").value = expformDate;
	//document.getElementById("checkbox").checked = true; // checkbox
	//document.getElementById("radiobutton").checked = true; // radiobutton
	//document.getElementById("pulldown").selectedIndex = 2; // dropdown
}

// Multiple onload function created by: Simon Willison
// http://simonwillison.net/2004/May/26/addLoadEvent/
function addLoadEvent(func) {
 var oldonload = window.onload;
 if (typeof window.onload != 'function') {
   window.onload = func;
 } else {
   window.onload = function() {
     if (oldonload) {
       oldonload();
     }
     func();
   }
 }
}

addLoadEvent(function() {
 dummyreg();
});

