function getSubscription()
{
	//return false;
	closeOverlay();
	var overlay = document.createElement("div");
	overlay.id="image_overlay";
	document.body.appendChild(overlay);

	if(!self.innerHeight)
	{
		var pageScroll = getPageScroll();
		overlay.style.top=pageScroll[1];
	}
	
	var postStr = "";
	postStr += "bname="+$("bname").value+"&";
	postStr += "baddress1="+$("baddress1").value+"&";
	postStr += "baddress2="+$("baddress2").value+"&";
	postStr += "bcity="+$("bcity").value+"&";
	postStr += "bprov="+$("bprov").value+"&";
	postStr += "bpostal="+$("bpostal").value+"&";
	postStr += "bcountry="+$("bcountry").value+"&";
	postStr += "bphone="+$("bphone").value+"&";
	postStr += "bemail="+$("bemail").value+"&";

	postStr += "sname="+$("sname").value+"&";
	postStr += "saddress1="+$("saddress1").value+"&";
	postStr += "saddress2="+$("saddress2").value+"&";
	postStr += "scity="+$("scity").value+"&";
	postStr += "sprov="+$("sprov").value+"&";
	postStr += "spostal="+$("spostal").value+"&";
	postStr += "scountry="+$("scountry").value+"&";
	postStr += "sphone="+$("sphone").value+"&";

	postStr += "paymenttype="+$("paymenttype").options[$("paymenttype").selectedIndex].value+"&";

	if($("affid")!=null) postStr += "affid="+$("affid").value;

	if($("3year").checked) postStr += "subtype=3&";
	else postStr += "subtype=1&";

	if($("canadian").checked) postStr += "country=Canada&";
	else postStr += "country=International&";

	if($("myPrivacy").checked) postStr += "myPrivacy=1";
	else postStr += "myPrivacy=0";

	var ajaxOpenOverStr = initAjaxMessage();
	
sendAjaxMessagePost("POST","widgets/utilities/sub_conf.inc.php",function(){openOverlaySub(ajaxOpenOverStr);},ajaxOpenOverStr,postStr);
}

function openOverlaySub(ajaxHandler)
{
	if(ajaxHandler.readyState==4&&ajaxHandler.status==200)
	{
		if(ajaxHandler.responseText=="") closeOverlay();
		else
		{
			var imagebox = document.createElement("div");
			imagebox.id="imagebox";
			imagebox.innerHTML=ajaxHandler.responseText;
			document.body.appendChild(imagebox);

			displaySubOverlay();
		}
	}
}

function displaySubOverlay()
{
	var pageSize = getPageSize();
	var pageScroll = getPageScroll();

	$("imagebox").style.width="500px";
	$("imagebox").style.height="350px";
	$("imagebox").style.left = ((pageSize[0] - 20 - 500)/2)+"px";
	$("imagebox").style.display="block";

	if(!self.innerHeight)
	{
		$("imagebox").style.top=(parseInt(pageScroll[1])+25)+"px";
		$("image_overlay").style.top=pageScroll[1];
		window.onscroll=function(){displaySubOverlay();}
	}
}

