<!-- Hide script from old browsers
var submitted = false;

//last year data was 09.
var allinits = "AAABBEBYGDGKMDPPRHSFCCCSDRGUHBHCPPSPTHUDALBMCCCMFPMANKPAWCXUAAAMCRDBGGGOLBLMPRTFAPCOFPGDHAHEMMSBWCWWCHCRGDGGGPISMLPBSIWWADASDCFEFPGCKHLBMMRRBLCPCSGCHIKMNUPHRRTMCCCSDKMOMRRRSCTRVVWCBMDDKARASKSWTDTWUHWWAEGBLUMCMDNAPPRRTMWHAAABDBDDLLMRPBRRSWUDBBBRBUHOJJMIMLMMPPTTBBCSDPEKHHHRKWKXLLVF"

var allcol1s = "7F5135000000FF0000A06000000000FFFFFF000000FE00FE00CCFF00FF000000006BB5B5FF0000000000FFCC00CC000000000017FFFDFF00000000CC00000000FF00FF0000FF0000111111000000F50101FFFFFFFF0000000000FFFF00000000FF0000DD0000000079006600000066FF0000FF00000000FF0000000000FFFFFFFFFF0000FF00006699CC2F2FD0FF0000FF00000000003F3FD10000FF00890000C900800000000000CF0000FF00006776C7FFFF000000FF0000000C0CF2000000F3D20C00000000DD000000E9000000FF000000D900F3D20C009999000000FF0000FFFFFF0000FF0000C6000000FFDD0000005DFFFFFF0000D500FFCC00B2FF0000006633CC00007700E8FFFF000000000000000007003FFF0000F5FF00000000EF0000FF0000800101FF0F0F0000FF00440000000094ADD6FFFFFFFF0000000000000000000000000000FFFFFF000000DD00000000FF720000CC0033FF0000FFFFFF0000000000CCFE0707336633FFFFFFFFFF00010634FF0000CC00330000660000FF000000FF0000FFFFFF020202FF0000930A662C2CD2000061FE00FD720000000000"

var allcol2s = "FFFFFFFF0000FFFFFF3A10000066FF00CC00008080FFFFFF67003F800080FFDF00000000FFFFFFFF0000000000FFFFFFFFFFFF0000000000FFFFFFFF7F7F7F0000FFFFFFFFFFFF00008080FFFFFFFFFFFF0000FFFFFF00CB207A00008DFFFFFF800000FFFFFFFFFF00101010FFFFFFFFFFFF00FF00800080008080FF0000FFCC000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00FFFFFFFFFF6DFFFFFFFD1807FFFF003A0000B30000FFFF00FFCC00012345000000FFFFFFFFFFFF00FFF98080800E0E0E800080FFCC00FD0000FFFFFF800080FFD2210E0E0EFFFFFF800080FFFF00050505FFFF00FFFFFF8080800505053FEFF20000FFFFFFFF0000FFFFFFFFFF0000FFFFFF543DDA00FF00FFFFFF0000FFFF0000F5FEFFFFFFFF0DFF0DFFFFFFFFFFFFFFFFFFFFFFFF000000FFFF00111111FF0000FFFFFF006100FFFF00FFFFFF808080FFDD00FF0000080808FF0000FFFFFFFFFFFFFFCC00FFFFFFFFCC00FF0000FFFFFFFFFFFFE7E7E70B0B0B000000800000C407070000FFFFFFFFFF0000800080FF0000FFFFFFFF2D2DFFFFFF0000CCFFCC00FF000081C0C0008000FFCC00F900FF"

var allcol3s = "CC9933000000500000A06000000000FFFFFF0000FFEF83FFFDFDFDFF0000FF5300FFFFFF0000FF000000FFCC000000CC00FEFFFFFFFFFFFF00FF000000000000FF000000FFFFFFFFFFFFFF000000F50101FFFFFF0000FFFFFFFFFF00000000008000800000FF000079006600000066000000FF00000000FFFFFFFFFFFF00008900FFFF00FF00001111112F2FD00000FF0000FFFF0000FF07070000FF0000BFFFFFFF800000000000336633FF00006776C7FFFFFF9C399C00FFDBFFFFFF000000F20B3500000000DD00FFFFFF000000FF0000FFFFFFF20B356666660000000000FFFFFFFFCC00000000C6FFFFFFFFDD0000005D00DD002121FF00FFCCFFCC00FFFFFF000000FF0505FF0000FF0000FFFF0000000007003FFF0000F5FF0000000000DF00FF0000A000A0FF0F0F000000FFFFFF00000094ADD6FFCC000000FF00FEFFFFFFFF000000000000FFFFFF0000000000FF000000720000CC0033FF00000000FF000000FF00000000B9336633FFFFFFFFFF007F7F7FFF0000CC0033FFFF000000FF0000000000CC6D6D6D020202FF0000000000FFFFFFFFFFFFFFFFFF720000000000"

IE = (document.all && true)
NS = (document.layers && !IE)
MZ = (document.getElementById != null && !NS && !IE)

var onPg = 'p0';
my = document.apply;

function prevYear() {
	userDate = new Date;
	prYr = userDate.getFullYear() -1;
	if (prYr < 2009) {prYr=2009;}
	return prYr;
}

function newPage(pg){
	my = document.apply;
	mCNv = my.Club_Name.value;
	setVisy(onPg,0);
	setVisy(pg,1);
	onPg = pg;
	my.RegBttn.value = "Register my Licence" + ((pg=='p4')&&(mCNv!='')?" for "+mCNv:""); 
	if (pg=='p2') chkLyq()
	else { setVisy("lyip_id",0); }
	if (pg=='p3') chkPay(-1)
	else { setVisy("ccard_id",0); setVisy("paypal_id",0); setVisy("ddebit_id",0); setVisy("postpay_id",0); }
	window.location = "#"+pg;
}

function setVisy(el,show) {
	if (show) {
		if (IE) { document.all[el].style.visibility="visible"; }
		else if (MZ) { document.getElementById(el).style.visibility="visible"; }
		else if (NS) { document.layers[el].visibility="show"; }
	}
	else {
		if (IE) { document.all[el].style.visibility="hidden"; }
		else if (MZ) { document.getElementById(el).style.visibility="hidden"; }
		else if (NS) { document.layers[el].visibility="hidden"; }
	}
}

function lyInits() {
	my = document.apply;
	my.lytm.length=0;
	my.lytm.options[0] = new Option("____","-",1,1);
	for(i=0; i<10; i++) {
		var idx = (my.lylg.options.selectedIndex-1)*(10*2)+(i*2);
		my.lytm.options[i+1] = new Option(allinits.substring((idx),(idx+2)),allinits.substring((idx),(idx+2)));
	}
}

function fill_ly_cols() {
	if (my.lytm.selectedIndex) { 
		colidx = (my.lylg.options.selectedIndex-1)*(10*6)+((my.lytm.selectedIndex-1)*6);
		colvalue = new Array(3);
		colvalue[1] = allcol1s.substring((colidx),(colidx+6));
		colvalue[2] = allcol2s.substring((colidx),(colidx+6));
		colvalue[3] = allcol3s.substring((colidx),(colidx+6));
		for (var c=1;c<4;c++) {	
			if (IE) { document.all["col"+c].style.background = "#" + colvalue[c]; }
			if (NS) { alert("Your colour selection has been noted.\nUnfortunately, with Netscape 4.x ,\nthis colour won't be displayed on your\nregistration form."); }
			if (MZ) { document.getElementById("col"+c).style.background = "#" + colvalue[c]; }
			my.elements[21+c].value = colvalue[c];  //no # prefix
		}
	}
	if (onPg=='p2') { my.Club_Name.focus(); }
	if (my.Club_Guernsey.options[1].selected) {
		my.lygImg.src="/images/guernseys/"+prevYear()+"/g"+my.lylg.value+my.lytm.value.toLowerCase()+".gif";
	}
}

function chkLyq() {
	if(my.lyq.value=="Yes") {
		setVisy("lyip_id",1);
	}
	else {
		setVisy("lyip_id",0);
		my.lylg.selectedIndex = 0;
		my.lytm.selectedIndex = 0;
	}
}

function wr_leag_optns() {
	var lgs=Math.round(allinits.length/20);
	for (var lg=2; lg<lgs+2; lg++) {
	lgtxt = ((lg<10)?"0":"")+lg;
//* 2010 only, 14&15=17&18
	lgtxt = ((lg>13)?lg+3:lgtxt);
		document.write("<OPTION VALUE='",lgtxt,"'>SLF#",lgtxt,"</OPTION>");
	}
}

function chkPay (pidx) {
	if (pidx < 0) { 
		for(var i=0; i<my.Payment.length; i++) {
			if (my.Payment[i].checked == true) {
				pidx = i;
			} 
		}
	}
	else {
		my.Payment[pidx].checked = true;
	}
	setVisy("postpay_id",(pidx < 3)?1:0);
	setVisy("ddebit_id",(pidx == 3)?1:0);
	setVisy("paypal_id",(pidx == 4)?1:0);
	setVisy("ccard_id",(pidx > 4)?1:0);
}

function payment_optns() {
	for(var po=0; po<payment_optns.arguments.length; po++) {
		document.write('<TH WIDTH=14%>&nbsp;<INPUT TYPE="radio" NAME="Payment" VALUE="'+ payment_optns.arguments[po] + '" ');
		if (po==1) { document.write('CHECKED ') }
		document.write('onClick="chkPay('+po+')"><IMG SRC="/images/' + payment_optns.arguments[po].toLowerCase() + '.gif" HEIGHT="29" WIDTH="52" ALT="' + payment_optns.arguments[po] + '" ALIGN="absmiddle" onClick="chkPay('+po+')">&nbsp;</TH>');
	}
	for (var po=0; po<7; po++) {
		document.write('<INPUT TYPE="hidden" NAME="xcc" VALUE="0">');
	}
}

function bidlines() {
	for (var  bid=1; bid<16; bid++) {
		if (bid<10) {bid_str = '0' + eval(bid);} else {bid_str = eval(bid);}
		document.writeln('<TR><TD>Bid ' + bid_str + '.<TD ALIGN=right>Player No. <TD><INPUT TYPE="text" NAME="Plr_' + bid_str + '" SIZE="3" MAXLENGTH="3" onBlur="chkPlnum(this)"><TD ALIGN=right>Amount . $<TD><INPUT TYPE="text" NAME="Amt_' + bid_str + '" SIZE="4" MAXLENGTH="4" onBlur="sum(this)"> k</TR>');
	}
}
function sum(item) {
	if (!parseInt(item.value*1+1)>0) {
		item.focus();
		item.select();
		alert('Enter Amount as number only \n');
	}
	my.Amt_Sum.value =
	parseInt(my.Amt_01.value * 1) + parseInt(my.Amt_02.value * 1) + parseInt(my.Amt_03.value * 1) +
	parseInt(my.Amt_04.value * 1) + parseInt(my.Amt_05.value * 1) + parseInt(my.Amt_06.value * 1) +
	parseInt(my.Amt_07.value * 1) + parseInt(my.Amt_08.value * 1) + parseInt(my.Amt_09.value * 1) +
	parseInt(my.Amt_10.value * 1) + parseInt(my.Amt_11.value * 1) + parseInt(my.Amt_12.value * 1) +
	parseInt(my.Amt_13.value * 1) + parseInt(my.Amt_14.value * 1) + parseInt(my.Amt_15.value * 1) ;
}
function chkPlnum(item) {
	pl = item.value;
	if ((!parseInt(pl*1+1)>0) | (parseInt(pl)<100) | (parseInt(pl)>899)) {
		item.focus();
		item.select();
	   	alert('Enter Player No. between 100 & 899 only \n');
	}
}
function titlecase(item) {
	v = item.value;
	if (v.length < 2) { v=""; }
	v = v.charAt(0).toUpperCase() + v.substring(1,v.length).toLowerCase();
	for (var i=1; i<v.length-1; i++) {
		if ((v.charAt(i).toLowerCase() == v.charAt(i).toUpperCase()) && (v.charAt(i) != "'") ) {
			v = v.substring(0,i+1) + v.charAt(i+1).toUpperCase() + v.substring(i+2,v.length);
		}
	}
	for (var i=0; i<v.length-3; i++) {
		if (v.charAt(i) == "M" && v.charAt(i+1) == "c") {
			v = v.substring(0,i+2) + v.charAt(i+2).toUpperCase() + v.substring(i+3,v.length);
		}
	}
	for (var i=0; i<v.length; i++) {
		if (v.substring(i,i+4) == "And ") {
			v = v.substring(0,i) + "& " + v.substring(i+4,v.length);
		}
	}
	item.value = v;
}
function uppercase(item) {
	v = item.value;
	v = v.toUpperCase();
	if (v.length < 3) { v=""; }
	for (var i=0; i<v.length-1; i++) {
		if (v.charAt(i) == "'") {
			v = v.substring(0,i) + "`" +  v.substring(i+1,v.length);
		}
		if (v.substring(i,i+2) == "  ") {
			v = v.substring(0,i) + " " + v.substring(i+2,v.length);
			i--;
		}
		if (v.substring(0,1) == " ") {
			v = v.substring(1,v.length);
			i--;
		}
		if (v.substring(v.length-1,v.length) == " ") {
			v = v.substring(0,v.length-1);
			i--;
		}
	}
	item.value=v;
}

function chkState(item) {
	v = item.value;
	if (v.length < 2) { v=""; }
	for (var i=0; i<v.length; i++) {
		if (v.charAt(i) == ".") {
			v = v.substring(0,i) + v.substring(i+1,v.length);
		}
	}
	v = v.charAt(0).toUpperCase() + v.substring(1,v.length).toLowerCase();

	if ( (v == "Sa")||(v == "Wa")||(v == "Nsw")||(v == "Nt")||(v == "Act") ) { v = v.toUpperCase(); }
	item.value=v;
}

function chkEmail(item) {
	v = item.value;
	if ((v == "") || (v.indexOf("@") < 2) || (v.indexOf(".") < 1)) {
		item.focus();
		item.select();
	   	alert('Please Enter Valid Email Address\n . . . Cheers !');
	}
}
function password(item) {
	v = item.value;
	if ((v.length < 6)||(v.length > 8)) {
		item.focus();		
		alert('Your password must contain 6-8 characters, please try again.');
		item.value = "";		
	}
}
function chkPwd(item) {
	myP = my.Password
	if (item.value != myP.value) {
		alert('Your passwords do not match, please try again.');
		item.value = "";		
		myP.value = "";		
		myP.focus();
	}
}

function chkForm (myform) {
	my.Brwsr.value = (IE?"IE":NS?"NS":MZ?"MZ":"??")
	if (!submitted) {
		return false;
	}
	c1 = my.Club_ColNo1.value;
	c2 = my.Club_ColNo2.value;
	c3 = my.Club_ColNo3.value;
	if (c1!='') {
		if (c2==''){c2=c1}
		if (c3==''){c3=c1}
		c1r=c1.substring(0,2); c1g=c1.substring(2,4); c1b=c1.substring(4,6);
		c2r=c2.substring(0,2); c2g=c2.substring(2,4); c2b=c2.substring(4,6);
		c3r=c3.substring(0,2); c3g=c3.substring(2,4); c3b=c3.substring(4,6);
		i1r=parseInt(c1r, 16); i1g=parseInt(c1g, 16); i1b=parseInt(c1b, 16);
		i2r=parseInt(c2r, 16); i2g=parseInt(c2g, 16); i2b=parseInt(c2b, 16);
		i3r=parseInt(c3r, 16); i3g=parseInt(c3g, 16); i3b=parseInt(c3b, 16);
		lo=0; up=0; mod2=0; mod3=0;
		while ((Math.abs(i1r-i2r)<64)&&(Math.abs(i1g-i2g)<64)&&(Math.abs(i1b-i2b)<64)) {
			if (((i1r>96)||(i1g>96)||(i1b>96))||((up=1)&&(lo=0))) {
				i2r=Math.floor(i2r*9/10);
				i2g=Math.floor(i2g*9/10);
				i2b=Math.floor(i2b*9/10);
				if ((i2r==0)&&(i2g==0)&&(i2b==0)) {
					lo=1;
					i2r+=5; i2g+=5; i2b+=5;
				}
			} else	{
				i2r=Math.ceil(i2r*1.2);
				i2g=Math.ceil(i2g*1.2);
				i2b=Math.ceil(i2b*1.2);
				if ((i2r>255)&&(i2g>255)&&(i2b>255)) {
					up=1;
					i2r=i1r; i2g=i1g; i2b=i1b;
				}
			}
			mod2=1;
		}
		if (((Math.abs(i1r-i3r)<40)&&(Math.abs(i1g-i3g)<40)&&(Math.abs(i1b-i3b)<40))&&(c1!=c3)) {
			c3=c1;
			mod3=1;
		}
		c2r=i2r.toString(16); c2g=i2g.toString(16); c2b=i2b.toString(16)
		if (c2r.length==1){c2r='0'+c2r;}
		if (c2g.length==1){c2g='0'+c2g;}
		if (c2b.length==1){c2b='0'+c2b;}
		c2=c2r+c2g+c2b;
		my.Club_ColNo1.value = c1;
		my.Club_ColNo2.value = c2;
		my.Club_ColNo3.value = c3;
		if (IE) { 
			document.all["col2"].style.background=c2;
			document.all["col3"].style.background=c3;
		}
		if (MZ) {
			document.getElementById("col2").style.background=c2;
			document.getElementById("col3").style.background=c3;
		}
		if(mod2==1) {alert('Your Club Color 2 was non-existant or too similar to Color 1,\nIt has been auto-tinted.');}
		if(mod3==1) {alert('Your Club Color 3 was very similar to Color 1,\nIt has been auto-tinted.');}
	}

	for (var i=44;i>40;i--) {
		j = parseInt(my.elements[i].value,10);	
		my.elements[i+39].value = ((isNaN(j))?"":j*j+j);
	}
	if (my.Email_Address.value == "") {
		newPage('p1');
		my.Email_Address.focus();
		alert('Sorry, Your Registration has NOT been submitted.\n\nPlease enter your Email address and try again.');	
		return false;
	}
	if ((my.Password.value == "")||(my.Password.value != my.Password_2.value)) {
		newPage('p1');
		my.Password.focus();
		alert('Sorry, Your Registration has NOT been submitted.\n\nPlease enter and confirm your Password and try again.\n\n..Note that some web-browsers clear your password text (for security)\nif you submit a form and then go "Back" for any reason.');	
		return false;
	}
	if ((my.lylg.selectedIndex != 0)&&(my.lytm.selectedIndex < 1)) {
		newPage('p2');
		my.lytm.focus();
		alert('Sorry, Your Registration has NOT been submitted.\n\nYour Last Year Club Data is missing, perhaps lost in a page reload.\nPlease select your Club Initials and try again.');
		return false;
	}
	if (my.Payment[3].checked) {
		tn = (my.Club_Name.value == "")?"YOUR SLF TEAM":my.Club_Name.value;
		alert('Please use your secure internet banking website to transfer\nSLF Club Payment of $15.00\nTo Account : Simulated League Football\nBSB No. : 805-022\nAccount No. : 22468457\nReason : ' + tn + '\nDetails will be repeated in email sent to ' + my.Email_Address.value +'\n\nClick [OK] to continue.');	
	}

	setCookie('Apply', my.lylg.value + my.lytm.selectedIndex);
}


function colorselected(col_no,rgb) {
	if (rgb.length>1) {
		winCol = window.open("colors.html",col_no+rgb,"width=321,height=368,left=240,top=120,menubar=0,scrollbars=0,status=0,resizable=0");
		if (winCol != null) {
	        	if (winCol.opener == null) {
	        	winCol.opener = self;
		        }
		}
	}else{ 
		if (IE) { document.all["col"+col_no].style.background="" }
		if (MZ) { document.getElementById("col"+col_no).style.background="transparent" }
		my.elements[18+parseInt(col_no)].value = "";
		my.elements[21+parseInt(col_no)].value = "";
	}
	my.elements[18+parseInt(col_no)].selectedIndex = 0;
}


function club_colors() {
	document.writeln('<TR><TD ALIGN=right><A HREF=javascript:info(19) onMouseOver="a(); return true" onMouseOut="b();">CLUB COLOURS</A> : </TD>\n');
	document.write('<TD COLSPAN=3><FONT SIZE=-2 FACE="Arial"><I>Allow pop-ups here to select own club colours from a chart in new window.</I></FONT></TD></TR><TR><TD>&nbsp;');
	for (var c=1;c<4;c++) {	
		document.write('<TD><SELECT NAME="Club_ColSel'+c+'" onChange="colorselected('+c+',document.apply.Club_ColSel'+c+'.options[document.apply.Club_ColSel'+c+'.selectedIndex].value)"><OPTION VALUE="">Color '+c);
		if (c==3) { document.write('<OPTION VALUE="">None'); }
		document.writeln('<OPTION VALUE="000000">Black<OPTION VALUE="FFFFFF">White<OPTION VALUE="FF0000">Red<OPTION VALUE="FFCC00">Gold<OPTION VALUE="FFFF00">Yellow<OPTION VALUE="00FF00">Green<OPTION VALUE="008080">Teal<OPTION VALUE="0000FF">Blue<OPTION VALUE="800080">Purple<OPTION VALUE="800000">Brown<OPTION VALUE="808080">Grey<OPTION VALUE="select">Select Own</SELECT></TD>');
	}
	document.writeln("</TR>");
	for (var c=1;c<4;c++) {	document.write('<INPUT TYPE="hidden" NAME="Club_ColNo'+c+'" VALUE="">');}
	if (!NS) {
		document.writeln("\n<TR>\n<TD>&nbsp;</TD>");
		for (var c=1;c<4;c++) {	document.write('<TH><DIV ID="col'+c+'" STYLE="width:100%; height:30;"><IMG SRC="/images/blank.gif" ALT=""></DIV></TH>\n') }
		document.writeln("</TR>");
	}
}

function selGnsy(item) {
	if (item.options[1].selected) {
		if ((my.lylg.selectedIndex)&&(my.lytm.selectedIndex)) {
my.lygImg.src="/images/guernseys/"+prevYear()+"/g"+my.lylg.value+my.lytm.value.toLowerCase()+".gif";
		}
		else {
			alert("Please select options for last year's club details, Thanks.");
			my.lyq.focus();
		}
	}
	else {
		my.lygImg.src="";
		info(29);
	}
}

function open_guernseys() {
	winGuern = window.open("/guernseys.html","applyview","");
	if (winGuern != null) { 
        	if (winGuern.opener == null) {
	        	winGuern.opener = self;
	        }
	}
}


function info(txtno) {
// element[x] is fixed related to txtno, so check if modify form.
	if (txtno == 1) {alert("Please Continue. Extra information is available in next sections.\n");}
	else if (txtno == 0) {alert("If altering registration details, your Name, Email and Password will be required.\nYour 2nd (or more) club can share the same password.\nNo need to re-enter all details of all sections\nif making changes to just one section.");}
	else if (txtno == 2) {alert("Please type your name & surname,\nWinning cheques could be made out to you.");}
	else if (txtno == 3) {alert("Please type E-mail address correctly,\nIt is important I contact you with further details & results.");}
	else if (txtno == 4 || txtno == 7) {alert("Your full address is not required until I need to post your winnings.\nHowever, please enter your suburb/city, state/county & country/nation.\nI'll ask for full details when necessary.");}
	else if (txtno == 5 || txtno == 6 || txtno == 8) {alert("Suburb, State, Country are required,\nthis locates your SLF club's clubrooms.\n");}
	else if (txtno == 9) {alert("A password is required to access your private club pages,\nthus avoiding other fools posting bogus return-sheets & bids.\nAlso, a unique user-id will be e-mailed when fully registered.\n\nPassword can only contain alpha-numeric characters, ie a-z,A-Z,0-9\nPassword is case sensitive, ie 'A' is different to 'a'\nPassword must contain 6-8 characters.");}
	else if (txtno == 10) {alert("Please do not forget your password !\nThis is to confirm your memory and correct spelling !");}
	else if (txtno == 11) {txtno = 12;}
	else if (txtno == 18) {alert("Name Of Club - limit 20 characters.\nBe original, adventurous, but realistic !\nNames will auto-format to upper case.\nInclude mascot in name if desired, ie TWO WELLS STARLINGS.\nExisting AFL or obscene names will be rejected later !");}
	else if (txtno == 19) {alert("Club Colours - please select 2 or 3 colours.\nOr create your own from a colour palette in new pop-up window.\n");}
	else if (txtno == 25) {alert("Home Ground - limit 18 characters.\nExisting AFL oval names not acceptable, nor 'SLF Stadium'.\nInclude OVAL, PARK, etc if desired.");}
	else if (txtno == 26) {alert("Main Sponsor - limit 18 characters.\nIt's all fantasy, but opportune for personal advertising !\nInform the league of your priorities! ie Grolsch Lager, Holden.");}
	else if (txtno == 27) {alert("No.1 Ticket Holder - limit 18 characters.\nJust for fun, who is Member #00001 of your fantasy club !\nYour favourite idol, best friend, millionaire, tennis star?");}
	else if (txtno == 28) {alert("A colourful image of your club's football shirt & shorts.\nI'll create for you if you send simple details (see Guernsey Catalogue),\nOr if you have GIF creation software, you can email me your own modification,\nA 69x55pixel 255color GIF format file is typically less than 3kBytes,\ndo NOT send large or bitmap images over 100kByte.\nAll shirts must bear the SLF badge on right breast !");}
	else if (txtno == 29) {alert("You may visit 'Guernsey Catalogue' link and/or alter text below, if required.\n");}
	else if (txtno == 30) {alert("Include any friends you wish to compete against in this league,\nBulk registration discount may apply.\nEnter relevant details regarding league type here.");}
	else if (txtno == 33) {alert("Disclaimer : S.L.F. is NOT internet gambling.\nAn entertaining service is exchanged for your fee,\nand rewards less than $500 (ie lottery licence not required)\nare returned to winning SLF league managers.\n\nS.L.F. is not registered to collect nor be withheld from Goods & Service Tax,\nbecause individual payments do not exceed $50, and\nbecause annual S.L.F. turnover is much much less than $50,000 !!\n");}
	else if (txtno == 79) {alert("The total of all your (ideally 15) bids appears here.\nRemember, you can only spend $2000k on highest bids,\nbut your sum of bids can exceed $2000k,\nsee 'More Information' then 'Squad & 1st Round Bidding Tips'\nfrom the SLF-home-site for more details.");}
	else {alert("Info Number Not Set Yet");}
	my.elements[txtno].focus();		
}

function a() {self.status = "Click for extra info";}
function b() {self.status = "";}

function setPg() {
	if (window.location.hash.length == 3) { newPage(window.location.hash.substring(1,3)); }
	lyInits();
	bikky = getCookie("Apply");
	if (bikky) {
		my.lylg.selectedIndex = eval(bikky.substring(0,2))-1;
		my.lytm.selectedIndex = eval(bikky.substring(2,4));
	}
	fill_ly_cols();
}

function getCookie(name) {
  bikky = document.cookie;
  var index = bikky.indexOf(name + "=");
  if (index == -1) return null;
  index = bikky.indexOf("=", index) + 1;
  var endstr = bikky.indexOf(";", index);
  if (endstr == -1) endstr = bikky.length;
  return bikky.substring(index, endstr);
}  

function setCookie(name, value) {
	today = new Date();
	expiry = new Date(today.getTime() + 3*60*60*1000); // til 3 hours in msecs
	document.cookie=name + "=" + value + "; expires=" + expiry.toGMTString();
}

// End script hiding from old browsers -->
