function MakeArray(n) {
	for (var i = 1; i <= n; i++) {
		this[i] = 0;
	}
	this.maxlen = n;
	this.len = 0;
	return this;
}

function find_substring(needle, haystack) {
	var i, needlen = needle.length, haylen = haystack.length;
	for (i=0; i<=haylen-needlen; i++) {
		if (needle == haystack.substring(i,i+needlen))
		return i;
		}
	return false;
}
