<!-- function used to pass todays date into the form element that was passed to the function -->
<!-- Use this function by making the following call onLoad in the body tag. getdate(document.FORMNAME.ELEMENTNAME) -->
<!-- if you have any questions contact Anne-Marie Keithley -->

function getdate(E) {
var now = new Date();
var mName = ((now.getMonth() + 1)<10 ? "0" : "") + (now.getMonth() + 1);
var dName = now.getDay() + 1;
var yName = now.getFullYear();
var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();
var date = (mName + "-" + dayNr + "-" + yName)
E.value = date;
}

<!-- function used to get arguments off of the URL to use in a document -->
<!-- Use this function by making the following call -->
<!-- function initial() { -->
<!--	args = getArgs(); -->
<!--	document.form.RequesterName.value = args['testarg1'] + " " + args['testarg2']; -->
<!-- } -->

function getArgs() {
	var args = new Object();
	var query = location.search.substring(1);
	var pairs = query.split(",");
	for (var i=0; i < pairs.length; i++) {
		var pos = pairs[i].indexOf('=');
		if (pos == -1) continue;
		var argname = pairs[i].substring(0,pos);
		var value = pairs[i].substring(pos+1);
		args[argname] = unescape(value);
	}
	return args;
}

function dontchangeme(e) {
  e.blur();
}