
function noSpam(recip,domain,txt){
	var address = recip + "@" + domain;
	if(txt){
		var linktxt = txt;
	}else{
		var linktxt = address;
	}
	document.write("<a href='mailto:" + address + "'>" + linktxt + "</a>");
}

function closeOverlay(i){
	//alert(i);
	var o = document.getElementById("overlay_0");
	if(o){
		$(o).hide();
	}
	
	var o = document.getElementById("overlay_1");
	if(o){
		$(o).hide();
	}
	
	var o = document.getElementById("overlay_2");
	if(o){
		$(o).hide();
	}
	
	var o = document.getElementById("overlay_3");
	if(o){
		$(o).hide();
	}
	
	var o = document.getElementById("overlay_4");
	if(o){
		$(o).hide();
	}
	
}

function openOverlay(i){
	closeOverlay();
	var o = document.getElementById("overlay_"+i);
	if(o){
		$(o).fadeIn("slow");
	}
	return false;
	
}

function submitForm(id){
	document.forms['ppbuyform_'+id].submit()
}