var id='bunny';
var dom='bunnywarez';
var tld='com';
var cat=id+'@'+dom+'.'+tld;
var styleWriter='';

function makeEmailLink(who,texty,style) {
	if (who != '') id = who;
	if (style !='') styleWriter = ' class="'+style+'" ';
	else styleWriter='';
	if (texty != '') {
		document.write('<a href="javascript:if(confirm(\'' + dom + '.' + tld + ' does not accept solicitations or bulk email. Click OK to continue.\'))sendIt();" title="email us"'+styleWriter+'>' + texty + '<\/a>');
	} else {
		document.write('<a href="javascript:if(confirm(\'' + dom + '.' + tld + ' does not accept solicitations or bulk email. Click OK to continue.\'))sendIt();" title="email us"'+styleWriter+'>' + id + '&nbsp;<span class="pink">(at)</span>&nbsp;' + dom + '.' + tld + '<\/a>');
	}
	cat=id+'@'+dom+'.'+tld;
}

function sendIt(){window.location.href='mailto:'+cat;}

function buyIt(){
	var x = "";
	for(i=0; i<document.shop.elements.length; i++){
		n = document.shop.elements[i].name;
		opts = document.shop.elements[i].options;
		if (n.substring(0,3)=="opt") {
			x += n.substring(4,n.length);
			x += ":";
			x += opts[opts.selectedIndex].value;
			x += ", ";
		}
	}
	document.shop.os0.value = x.substring(0,x.length-2);
	document.shop.business.value = cat;
	document.shop.submit();
}

function viewCart(){
	document.cart.business.value = cat;
	document.cart.submit();
}

function newCart(){
	//var checkoutMsg='Important Note:\nOnce you complete your transaction through PayPal, you MUST click the: \"Return to Merchant\" button to complete your transaction!';
	//if(confirm(checkoutMsg)){
	if (document.checkout_confirmation.agree.checked) {
		document.checkout_confirmation.business.value = cat;
		return true		
	} else {
		return false;
	}
}