<!--
var message="All designs are copyright 2005 Samantha Alfred. Thank you for visiting this site.";
function click(e) {

	if (document.all) {
	  if (event.button==2||event.button==3) {
	     alert(message);
	 	 return false;
	  }
	}

	if (document.layers) {
		if (e.which == 3) {
			alert(message);
			return false;
		}
	}
 return true;
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->

function addToCart(code,name,amount) {
  //alert(document.paypalform.item_name.value+" "+document.paypalform.item_number.value);
  document.paypalform1.item_name.value=name;
  document.paypalform1.item_number.value=code;
  document.paypalform1.amount.value=amount;
  //alert(document.paypalform.item_name.value+" "+document.paypalform.item_number.value);  
  document.paypalform1.submit();
}
function zoom(divid,file){

 var gWindow = window.open("carddetail.htm","image","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=390,height=310");
 var designDetsId = gWindow.document.getElementById('carddetail');
 designDetsId.innerHTML = "<div id=carddet><img src=images\/"+file+".jpg alt=card \/><br\/><\/div>"; 
 if (!gWindow.closed) {
   gWindow.focus();
 }

/*
  if ( document.getElementById ) {
	  var designDetsId = document.getElementById(divid);
    if ( designDetsId.style.display == "block" ) {
       designDetsId.style.display = "none";
    } else {
	    with( designDetsId.style ) {
		designDetsId.innerHTML = "<div id=carddet><img src=images\/"+file+".jpg alt=card \/><br\/><a href=javascript:zoom('imageDiv');>return<\/a><\/div>";
		
	    display = "block";
		position="absolute"
	    }
    }
  }
  */
}
