	function makeTwoDigit(num){
		var mynum = num * 1;
		var retVal = mynum<10?'0':'';
		return (retVal + mynum)
	}
	function makeThreeDigit(num){
		var mynum = num * 1;
		var prefix;
		if (mynum<10) {
			prefix = '00';
		} else if (mynum<100) {
			prefix = '0';
		} else {
			prefix = '';
		}
		return (prefix + mynum)
	}
	function makeKey() {
		var output = '';
		
		// get the values for each component of the date
		var theDate = new Date();
		var theHour = makeTwoDigit(theDate.getHours());
		var theMin = makeTwoDigit(theDate.getMinutes());
		var theSec = makeTwoDigit(theDate.getSeconds());
		
		// get the domain of the current page
		var dom = document.domain;
		
		// construct the encoded string for the domain
		for(i=0; i<dom.length; ++i) {
			// take each character and convert it into its ascii code represented by 3 digits
			output += makeThreeDigit(dom.charCodeAt(i));
		}
		
		// append date info to out string
		output += theHour + theMin + theSec;
		return output;
	}

	function sendIt(url) {
		var myStr = makeKey();
	    	var qsChar;
	    	if (url.indexOf("?") > 0) {
	        	qsChar = "&"
	   	 }
	    	else {
	       		qsChar = "?"
	    	}
		var theURL = url + qsChar + 'n=' + myStr;
		window.open(theURL);
	}

