function goBack(){
	history.go(-1);
}
function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		selectbox.remove(i);
	}
}
function openSubscriptionAgreement(url){
	var viewAgreeWin = window.open(url,"agreeWin","left=50,top=50,width=800,height=600,scrollbars=yes,resizable=no,menubar=no,status=no");
	viewAgreeWin.focus();
	
}
function closeWindow(){
	window.close();
}
function printWindow(){
   if (window.print) { 
       beforeDivs(); 
       window.print(); 
       afterDivs(); 
   } 
} 
function beforeDivs () { 
	document.getElementById("btnPrint").style.display = "none";
	document.getElementById("btnClose").style.display = "none";
} 
function afterDivs () { 
	document.getElementById("btnPrint").style.display = "";
	document.getElementById("btnClose").style.display = "";
} 
