function Report() {
	ctrl = window.event.srcElement;
	for(var i = 0; i < ctrl.length; i++){
		if (ctrl.options[i].selected) {
			type = ctrl.options[i].value;
			break;
		}
	}
	if (type == '') {
		alert('Please select a report type.');
		ctrl.focus();
	}
	else {
		document.forms[0].submit();
	}
}


function Subscribe(confirmalert,subaccess) {
	if (confirmalert) {
		var message
		if (subaccess)
			{message = 'This listing can only be accessed by Premium Members\n or those with 24-Hour Premium Search privileges. Click OK to learn more.'}
		else
			{message = 'Customized reports and maps can only be accessed by Premium Members and 24-Hour Premium Searchers.  Click OK to learn more.'}
		
		if (window.confirm(message)) {
			document.forms[0].action = '../BARC/chooseoptions.asp?from=FSSearch&OptionType=Search&url=' + escape(url)
			document.forms[0].submit();
		}
		else {return;}
	}else{
		document.forms[0].action = '<%=Application("secureHome") %>/BARC/CreditCard.asp?from=FSSearch&url=' + escape(url)
		document.forms[0].submit();
	
	}		
}

