

var BS_aBT = new Array();
BS_aBT["S"] = ["Single", true, 1, 1, 1, 1, 1, 1, false];
var BS_aBT4SN = new Array();
BS_aBT4SN[0] = "";
BS_aBT4SN[1] = "S|";
BS_aBT4SN[2] = "";
BS_aBT4SN[3] = "";
BS_aBT4SN[4] = "";
BS_aBT4SN[5] = "";
BS_aBT4SN[6] = "";
BS_aBT4SN[7] = "";
BS_aBT4SN[8] = "";
BS_aBT4SN[9] = "";
BS_aBT4SN[10] = "";
BS_aBT4SN[11] = "";
BS_aBT4SN[12] = "";
BS_aBT4SN[13] = "";
BS_aBT4SN[14] = "";
BS_aBT4SN[15] = "";
BS_aBT4SN[16] = "";
BS_aBT4SN[17] = "";
BS_aBT4SN[18] = "";
BS_aBT4SN[19] = "";
BS_aBT4SN[20] = "";
BS_aBT4SN[21] = "";
BS_aBT4SN[22] = "";
BS_aBT4SN[23] = "";
BS_aBT4SN[24] = "";
BS_aBT4SN[25] = "";
var BS_aBTClasses = new Array();
BS_aBTClasses["SINGLES"] = "S|";
BS_aBTClasses["REGULARS"] = "";
BS_aBTClasses["NFOLDS"] = "";
BS_aBTClasses["RACEORDERS"] = "";
BS_aBTClasses["RACEORDERSM2"] = "";
BS_aBTClasses["RACEORDERSM3"] = "";



var BS_MsgSlipMaxNumOfSelReached = "Maximum number of selections in BetSlip reached.";
var BS_MsgSlipProceedWithPlacement = "Please review the changes in BetSlip (prices, handicaps).\n\nProceed with placement?";
var BS_MsgBetInterRelated = "Invalid bet! Some of the selections are interrelated.";
var BS_MsgSlipNoSelections = "No selections in BetSlip.";
var BS_MsgSlipNoSelSelections = "Please select some of the selections in the BetSlip.";
var BS_MsgSlipNoStake = "Please enter your stake.";
var BS_MsgSlipNoBetType = "Please choose the bet type.";
var BS_MsgPermNoBetTypeSelected = "Select at least one bet type and enter its stake.";
var SG_MsgBetNavEntStake = "Please enter your stake.";
var BS_MsgPermNoSinglesStakes = "No stakes entered. Please make your selection.";
var BS_MsgTotalStakeTooLow = "Your total stake is below the minimum transaction amount of $<<amount>>. Please add more selections or increase stake.";
var BS_MsgNoPriceOptions = "We are sorry, but it seems that <i>#01</i> has no price set. It's obviously a setup error on our part - please check a bit later.";



var nMinLenUsername = 7;
var nMaxLenUsername = 30;
var nMinLenPassword = 6;
var nMaxLenPassword = 30;
var SG_sInUserAllow = "0123456789";
var FBF_MsgEntKeywordsEmpty = "Enter one keyword, at least.";
var SG_MsgLogEntUserLen = "Sorry, you have entered incorrect username.";
var SG_MsgLogEntUserChars = "Username length must be between (and including) 7 and 30.";
var SG_MsgLogEntPassLen = "Sorry you have entered an incorrect PIN.";
var SG_MsgLogEntPassChars = "PIN should contain 6 digits";
var SG_MsgFBFInvalidKeywords = "Please enter at least three characters to search for. Special characters like <, >, # and similar are not allowed.";


/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	SPPL specific Javascript code
	- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	(c) 2005, Finsoft Ltd
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/

//	disable show/hide for templates
function BN_ExpandAllCoupons() {};
function BN_ExpCol() {};


/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	hide/unhide FC/TC template
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
function ToggleRPTmpl(oH4) {
	var oDiv = oH4.parentNode;
	if (oDiv.className.indexOf("fctcoff") == -1) {
		//	hide it
		oDiv.className = oDiv.className.replace("fctcon", "fctcoff");
	} else {
		//	show it
		oDiv.className = oDiv.className.replace("fctcoff", "fctcon");
	}
}

/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	contbet override!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
function SG_ContinueBetting() {

	var oContBet = document.getElementById("xContBet");
	if (oContBet)
		oContBet.onclick = function() {
			this.form.onsubmit = function() { return true; };
		};
}

/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Login validation override
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
function LoginFieldVal(oField) { return true };

/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
	Searching label going over it
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -*/
function FBF_SidebarSetup() {
	var oFld = document.getElementById("sKeywords");
	if (!oFld) return;

	//	initially show the text if no value is entered
	if (oFld.value == "") oFld.value = FS_I18N("Bet search");

	oFld.onfocus = function() {
		oFld.value = "";
	};

	oFld.onblur = function() {
		if (oFld.value == "") oFld.value = FS_I18N("Bet search");
	};
};
DomLoaded.load(FBF_SidebarSetup);



