Fitness

Walking Club

...

<!– function popupWindow2(thePage) { popUp = window.open(thePage, "choose", "statusbar=no,toolbar=no,location=no,addressbar=no,menubar=no,scrollbars=no,resizable=yes,status=no,width=500,height=330"); popUp.focus(); } function popupWindow3(thePage) { popUp = window.open(thePage, "choose", "statusbar=no,toolbar=no,location=no,addressbar=no,menubar=no,scrollbars=no,resizable=yes,status=no,width=530,height=455"); popUp.focus(); } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && document.getElementById) x=document.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i

v=populateField(document.spm.g_clubName) ; v=populateField(document.spm.g_activeMembers) ; v=populateField(document.spm.g_totalDistance) ; v=populateField(document.spm.g_monthDistance) ; v=populateField(document.spm.g_recentActs) ; v=populateField(document.spm.g_shares) ; v=populateField(document.spm.g_clubid) ; frm=document.spm;

Club document.write(frm.g_clubName.value); members page  

n’); }

Walking log
Number of active members: document.write(frm.g_activeMembers.value);
Total distance
logged to date:
document.write(frm.g_totalDistance.value); km
Total distance
logged this month:
document.write(frm.g_monthDistance.value); km
 
function inviteToClub() { url=”http://rmp.tonelink.net/spm.php?Action=RunScript&scriptName=wc_inviteToClubPopUp&”; url=url+ “clubid=” + frm.g_clubid.value; window.location=url; } function sendMessageToClub() { url=”http://rmp.tonelink.net/spm.php?Action=RunScript&scriptName=wc_sendMessageToClubPopUp&”; url=url+ “clubid=” + frm.g_clubid.value; window.location=url; }

Send message to club document.write(frm.g_clubName.value); members
Invite a new member to join club document.write(frm.g_clubName.value);
Recent active members
ar=new Array(); ar=frm.g_recentActs.value.split(“n”); for(i=0;i<ar.length;i++) { x=ar[i].split("|"); document.write('

‘+x[2]+’ — Added walk ‘+x[1]+’
Current members of club document.write(frm.g_clubName.value);
Name
Contributed distance
ar=new Array(); ar=frm.g_shares.value.split(“n”); for(i=0;i<ar.length;i++) { x=ar[i].split("|"); document.write(x[0] + "
n”); }
Close window

Get Chatelaine in your inbox!

Our very best stories, recipes, style and shopping tips, horoscopes and special offers. Delivered a couple of times a week.