<!--
function builde(x, linkwords, classname, subject) {
	var e, dom, td;
	dom = 'smartprocoaching';
	td = 'com';
	e = x + '@' + dom + '.' + td;
	
	if (subject == ''){
		subject = 'Enquiry from Website'
	}
	
	if (linkwords != '') {
		document.write('<a href="mailto:' + e + '?subject=' + subject + '" class="' + classname + '">' + linkwords + '</a>');
	} else {
		document.write('<a href="mailto:' + e + '?subject=' + subject + '" class="' + classname + '">' + e + '</a>');
	}
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function textCounter(field,cntfield,maxlimit) {
	if (field.value.length > maxlimit)
		field.value = field.value.substring(0, maxlimit);
	else
		cntfield.value = maxlimit - field.value.length;
	}

function submitForm(i) {
	document.forms[i].submit();
}

function checkSubmit(btnPressed) {
	if (btnPressed == 'Pay') {
		if (document.CartForm.ConfirmReadTC.checked) {
				document.CartForm.submit();
				return true;
		} else {
				alert("Please tick the box to acknowledge you have read and accept our Terms and Conditions.");
				return false;
		}
	} else {
		return false;
	}
}

function confirmThis(i, gotoPage) {
	var message=new Array();
	message[0]="If you navigate away from this page now, your changes won\'t be saved.\nYou can always create your Groups after saving your current changes.\n\nClick OK to Add a Group now, or Cancel to stay on this page.";
	message[1]="Are you sure you want to delete this record?";
	message[2]="Are you sure you want to send this email?";
	message[3]="This will immediately place a voice call to Smartpro Coaching\nif you have Skype installed and running.\n\nDo you want to continue?";

	var r=confirm(message[i]);
		if (r==true) {
			window.location = gotoPage;
		} else {
			return false;
		}
	}
//-->