function bookmark() {
  if (document.all) {
	window.external.AddFavorite(location.href, document.title);
  } else {
	alert("Your web browser does not support this feature.");
  }
}

function leaveSite(site) {
  if (confirm('You are now leaving this web site.\nIf you do not wish to leave this site, click Cancel. Click OK to leave.') == 1) {
    window.open(site, 'Untitled','toolbar=yes,width=750,height=500,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=yes')
  }
}

function popUp(page) {
  popup_window = window.open(page,'popup','location,menubar,resizable,scrollbars,status,toolbar,width=680,height=400');
}

function popUp2(page) {
  popup_window = window.open(page,'popup','location,menubar,resizable,scrollbars,status,toolbar,width=680,height=520');
}

function writeDate() {
	document.write(new Date().getFullYear());
}

function writeUpdate() {
	document.writeln(document.lastModified);   
}

function salesRepresentative(x) {
    y = document.getElementById(x);
    z = y.options[y.selectedIndex].value;
	switch(z) {
		case "canada": 
			document.getElementById("provinceSelector").style.display = "block";
			document.getElementById("stateSelector").style.display = "none";
			break;
		case "usa":
			document.getElementById("provinceSelector").style.display = "none";
			document.getElementById("stateSelector").style.display = "block";
			break;
		default:
		  document.location = z;
	}
}

function salesRepresentative2(x) {
    y = document.getElementById(x);
    z = y.options[y.selectedIndex].value;
	switch(z) {
		case "canada": 
			document.getElementById("provinceSelector2").style.display = "block";
			document.getElementById("stateSelector2").style.display = "none";
			break;
		case "usa":
			document.getElementById("provinceSelector2").style.display = "none";
			document.getElementById("stateSelector2").style.display = "block";
			break;
		default:
		  document.location = z;
	}
}


