var scount=0;

// accessibility: this is unimportant as it does not add useful functionality to the site
function bookmark(anchor){
   if(window.external) {
       window.external.AddFavorite(anchor.getAttribute('href'), anchor.getAttribute('title'));
       return false;
   }
   return true;
}

// ordering works perfectly well without this function 
function addToCart (myForm) {
	return false;
	var action=myForm.action;
	myForm.action="/float"+myForm.action;
	myForm.target='floater';
	var attribs = "scrollbars=yes,status=yes,resizable,menubar,toolbar,width=400,height=400";
	window.open(action, myForm.target, attribs).focus();
	return true;
}

// alternatives are provided for when javascript is unavailable
function openWindow (url) {
	if (openWindow.arguments.length == 1) {
		var width=440; var height=580;
	} else {
		width=openWindow.arguments[1]; height=openWindow.arguments[2];
	}
	var attribs = "scrollbars=yes,status=yes,resizable,menubar,toolbar,width="+width+",height="+height;
	window.open(url, 'floater', attribs).focus();
	return false;
}


function mailto (part1, part2) {
	var myLocation = part1 + "@" + part2;
	if (mailto.arguments.length == 3) {
		myLocation += ("?subject=" + mailto.arguments[2]);
	}
	self.location.href=("mailto:" + myLocation);
	return false;
}

