function getPath()	{ return String(window.location.pathname).replace(/\/[^\/]*$/, "/"); }
function matchPaths(path1, path2) {	return (path1 == path2) ? true : false; }

function goTo(path)		{	window.location.href = path; }
function pointTo(path) {
	var fullURL = "";
	if (path) { 
		if ( path.match(/^(https|http|ftp):\/\//) )	{ 
			fullURL = path; 
		} else if ( path.match(/^\//) ) { 
			fullURL = window.location.protocol + "//" + document.domain + path; 
		} else if ( path.match(/^(\.\/|\.)/) ) { 
			fullURL = window.location.protocol + "//" + document.domain + getPath(); 
		} else {
			fullURL = window.location.protocol + "//" + document.domain + getPath() + path;
		}
	}
	window.status = fullURL;
	return fullURL;
}
function mkHref(obj, href) {
	var el = document.getElementById(obj);

	if (el) {
		el.onclick = function() { goTo(href); return true; };
		el.onmouseover = function() { pointTo(href); return true; };
		el.onmouseout = function() { pointTo(); return true; };
		el.style.cursor = 'pointer';
	}
}

/* cart code */
function writeurlstamp(myform){
	var dnow = new Date();
	myform.urlstamp.value = Date.parse(dnow);
	return true;
}
/* end cart code */