// JavaScript Document
function checkAddUser(){
	var alertMsg = "You will need to complete the following fields to continue: \n";
	var tabText = "\t - ";
	var returnText = "\n";
	var sendMsg = false;
	var theTarget;
	
	theTarget= document.getElementById('email');
	if(theTarget.value.indexOf("@") < 1){
		alertMsg += tabText + "Valid Email Address" + returnText;
		sendMsg = true;
		//return false;
	}
	var illegalUserChars = /\W/;// allow only letters, numbers, and underscores
	theTarget= document.getElementById('userName');
	if(theTarget.value==""){
		alertMsg += tabText + "Username" + returnText;
		sendMsg = true;
		//return false;
	}else if(illegalUserChars.test(theTarget.value)){
		alertMsg += tabText + "Username can only contain letters, numbers and underscores" + returnText;
		sendMsg = true;
	}
	var illegalChars = /[\W_]/; // allow only letters and numbers
	theTarget= document.getElementById('passWord');
	theConfirm= document.getElementById('passWordConfirm');
	if(theTarget.value==""){
		alertMsg += tabText + "Password" + returnText;
		sendMsg = true;
		//return false;
	}else if(theTarget.value.length < 6){
		alertMsg += tabText + "You password must be at least 6 characters long" + returnText;
		sendMsg = true;
	}else if(illegalChars.test(theTarget.value)){
		alertMsg += tabText + "Password can only contain letters and numbers" + returnText;
		sendMsg = true;
	}else if(theTarget.value != theConfirm.value){
		alertMsg += tabText + "Password and Confirm Password do not match" + returnText;
		sendMsg = true;
	}
	if(sendMsg){
		window.alert(alertMsg);
		return false;
	  }else{
		return true;
	  }
}
function swapImg(img2Enlarge){
	var viewImgBox = document.getElementById('viewImgBox');
	viewImgBox.src=viewImgArray[img2Enlarge][1];
	var theDiv = document.getElementById('captionDiv');
	theDiv.innerHTML = viewImgArray[img2Enlarge][2];
}//end swapImg

function confirmContinue(){
	var alertMsg = "Are you sure you are ready to continue? \n\n";
	alertMsg += "Be sure that all your information is correct before proceeding. You cannot go back during this form. \n However, you can always make ammendments in our edit section after the completion of this form.\n\n";
	alertMsg += "Click OK to continue and Cancel to go back.\n\n";
	var isConfirmContinue = window.confirm(alertMsg);
	return isConfirmContinue;
}//end confirmContinue function.

function spaDetailsCheck(){
	//window.alert("got here!!");
	var alertMsg = "You will need to complete the following fields to continue: \n";
	var tabText = "\t - ";
	var returnText = "\n";
	var sendMsg = false;
	var theTarget;
	
	theTarget= document.getElementById('email');
	if(theTarget.value.indexOf("@") < 1){
		alertMsg += tabText + "Email" + returnText;
		sendMsg = true;
		//return false;
	}
	theTarget= document.getElementById('subLocationID');
	if(theTarget.selectedIndex == 0){
		alertMsg += tabText + "World Region" + returnText;
		sendMsg = true;
		//return false;
	}
	theTarget= document.getElementById('subLocationID');
	if(theTarget.selectedIndex == 0 || theTarget.selectedIndex == null){
		alertMsg += tabText + "Sub Region" + returnText;
		sendMsg = true;
		//return false;
	}
	theTarget= document.getElementById('spaTypeID');
	if(theTarget.selectedIndex == 0){
		alertMsg += tabText + "Spa Type" + returnText;
		sendMsg = true;
		//return false;
	}
	theTarget= document.getElementById('introBlurb');
	if(theTarget.value == ""){
		alertMsg += tabText + "Short Introduction" + returnText;
		sendMsg = true;
		//return false;
	}
	
	if(sendMsg){
		window.alert(alertMsg);
		return false;
	  }else{
		return true;
	  }
}
function addImages(){
	var theDiv = document.getElementById('formFields');
	var theText="<ul>";
	var formNum;
	if(currentImgsDisplayed==1){
		formNum=0;	
	}else{
		formNum=3;	
	}
	if(currentImgsDisplayed < maxImgsAllowed){
		for(v=0; v<currentImgsDisplayed; ++v){
			++formNum;//to make up for max_file_size;
			var theImgValue = document.forms[0].elements[formNum];
			++formNum;
			var theTestValue = document.forms[0].elements[formNum];
			++formNum;
			var theCapValue = document.forms[0].elements[formNum];
			++formNum;
			
			
			theText +='<ul class="heading"><li><strong>Image ' + (v+1) + '</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li><li class="thirdItem" style="display:inline">Images <strong>must</strong> be at least 300px x 300px</li></ul><ul><li class="firstItem" style="margin-right:49px">Image File<sup>*</sup>  </li><li class="secondItem"><input type="hidden" name="max_file_size" value="134217728"><input name="imageURL[]" type="file" id="imageURL[]" ';
			if(theImgValue.value != ""){
				theText +='value="' + theImgValue.value + '"';
			}//end if
			theText +='></li><li class="thirdItem">After selecting your image, you can run the test below to see if your image is large enough.</li></ul><ul><li class="firstItem" style="margin-right:51px"><a href="javascript:testImage();" class="officialLinks">Test Image</a></li><li class="secondItem" ><span class="bodyText">Results</span></li><input name="imgSizeTest" type="hidden" id="imgSizeTest"  ';
			if(theTestValue.value != ""){
				theText +='value="' + theTestValue.value + '"';
			}//end if
			theText +='></ul><ul><li class="firstItem" style="margin-right:72px">Caption</li><li class="secondItem"><input name="caption[]" type="text" id="caption[]" size="50" maxlength="100" ';
			if(theCapValue.value != ""){
				theText +='value="' + theCapValue.value + '"';
			}//end if
			theText +='></li><li class="thirdItem"></li></ul>';
		}//end for loop
			
		if(currentImgsDisplayed == (maxImgsAllowed-1)){
			theText +='<ul class="heading"><li><strong>Image ' + (v+1) + '</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li><li class="thirdItem" style="display:inline">Images <strong>must</strong> be at least 300px x 300px</li></ul><ul><li class="firstItem" style="margin-right:49px">Image File<sup>*</sup>  </li><li class="secondItem"><input type="hidden" name="max_file_size" value="134217728"><input name="imageURL[]" type="file" id="imageURL[]"></li><li class="thirdItem">After selecting your image, you can run the test below to see if your image is large enough.</li></ul><ul><li class="firstItem" style="margin-right:51px"><a href="javascript:testImage();" class="officialLinks">Test Image</a></li><li class="secondItem" ><span class="bodyText">Results</span></li><input name="imgSizeTest" type="hidden" id="imgSizeTest" value="unTested"></ul><ul><li class="firstItem" style="margin-right:72px">Caption</li><li class="secondItem"><input name="caption[]" type="text" id="caption[]" size="50" maxlength="100"></li><li class="thirdItem"></li></ul><div id="addTreatmentDiv1"><ul class="heading"><li>You have reached the maximum amount of images allowed.</li></ul></div>';
		}else{
			theText +='<ul class="heading"><li><strong>Image ' + (v+1) + '</strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</li><li class="thirdItem" style="display:inline">Images <strong>must</strong> be at least 300px x 300px</li></ul><ul><li class="firstItem" style="margin-right:49px">Image File<sup>*</sup>  </li><li class="secondItem"><input type="hidden" name="max_file_size" value="134217728"><input name="imageURL[]" type="file" id="imageURL[]"></li><li class="thirdItem">After selecting your image, you can run the test below to see if your image is large enough.</li></ul><ul><li class="firstItem" style="margin-right:51px"><a href="javascript:testImage();" class="officialLinks">Test Image</a></li><li class="secondItem" ><span class="bodyText">Results</span></li><input name="imgSizeTest" type="hidden" id="imgSizeTest" value="unTested"></ul><ul><li class="firstItem" style="margin-right:72px">Caption</li><li class="secondItem"><input name="caption[]" type="text" id="caption[]" size="50" maxlength="100"></li><li class="thirdItem"></li></ul><div id="addTreatmentDiv1"><ul class="heading"><li><a href="javascript:addImages();" class="officialLinks">Add an image </a></li></ul></div>';
		}
		++currentImgsDisplayed;
		theDiv.innerHTML=theText + '</ul>';
	}//end if
	//var theNextText ="";
	//for(c=0; c<document.forms[0].elements.length; ++c){
	//	theNextText+= c + '. ' + document.forms[0].elements[c].name + '<br/>';
	//}//end for 
	//var theNextDiv = document.getElementById('processing');
	//theNextDiv.innerHTML = theNextText;
}//end add images


function addTreatments(){
	var theDiv = document.getElementById('formFields');
	var theText="<ul>";
	var formNum;
	if(currentTreatsDisplayed==1){
		formNum=0;	
	}else{
		formNum=3;	
	}
	if(currentTreatsDisplayed < maxTreatsAllowed){
		for(v=0; v<currentTreatsDisplayed; ++v){
			//++formNum;//to make up for max_file_size;
			var theTitleValue = document.forms[0].elements[formNum];
			++formNum;
			var theSessionValue = document.forms[0].elements[formNum];
			++formNum;
			var thePriceValue = document.forms[0].elements[formNum];
			++formNum;
			var theDescValue = document.forms[0].elements[formNum];
			++formNum;
			
			
			theText +='<ul class="heading"><li><strong>Spa Treatment ' + (v+1) + '</strong></li></ul><ul><li class="firstItem" style="margin-right:14px">Treatment Name<sup>*</sup></li><li class="secondItem"> <input type="text" name="title[]" id="title[]" ';
			if(theTitleValue.value != ""){
				theText +='value="' + theTitleValue.value + '"';
			}//end if
			theText +='></li></ul><ul><li class="firstItem" style="margin-right:39px">Session Time  </li><li class="secondItem"> <input name="sessionTime[]" type="text" id="sessionTime[]" size="10" maxlength="5" ';
			if(theSessionValue.value != ""){
				theText +='value="' + theSessionValue.value + '"';
			}//end if
			theText +='><em>minutes</em> </li></ul><ul><li class="firstItem" style="margin-right:80px">Price</li><li class="secondItem"> $<input type="text" name="price[]" id="price[]" ';
			if(thePriceValue.value != ""){
				theText +='value="' + thePriceValue.value + '"';
			}//end if
			theText +='></li><li class="thirdItem">Price of treatment. Format - 125 AUD - Please specify the currency in the standard format eg. AUD, USD, GBP, EUR </li></ul><ul><li class="firstItem" style="margin-right:48px">Description<sup>*</sup></li><li class="thirdItem" style="display:inline">Maximum 150 words</li><li class="fourthItem"><textarea name="descriptionBlurb[]" cols="50" rows="5" id="descriptionBlurb[]">';
			if(theDescValue.value != ""){
				theText +=theDescValue.value;
			}//end if
			theText +='</textarea></li></ul>';
		}//end for loop
			
		if(currentTreatsDisplayed == (maxTreatsAllowed-1)){
			theText +='<ul class="heading"><li><strong>Spa Treatment ' + (v+1) + '</strong></li></ul><ul><li class="firstItem" style="margin-right:14px">Treatment Name<sup>*</sup></li><li class="secondItem"> <input type="text" name="title[]" id="title[]"></li></ul><ul><li class="firstItem" style="margin-right:39px">Session Time  </li><li class="secondItem"> <input name="sessionTime[]" type="text" id="sessionTime[]" size="10" maxlength="5"><em>minutes</em> </li></ul><ul><li class="firstItem" style="margin-right:80px">Price</li><li class="secondItem"> $<input type="text" name="price[]" id="price[]"></li><li class="thirdItem">Price of treatment. Format - 125 AUD - Please specify the currency in the standard format eg. AUD, USD, GBP, EUR </li></ul><ul><li class="firstItem" style="margin-right:48px">Description<sup>*</sup></li><li class="thirdItem" style="display:inline">Maximum 150 words</li><li class="fourthItem"><textarea name="descriptionBlurb[]" cols="50" rows="5" id="descriptionBlurb[]"></textarea></li></ul><div id="addTreatmentDiv1"><ul class="heading"><li>You have reached the maximum amount of treatments allowed.</li></ul></div>';
		}else{
			theText +='<ul class="heading"><li><strong>Spa Treatment ' + (v+1) + '</strong></li></ul><ul><li class="firstItem" style="margin-right:14px">Treatment Name<sup>*</sup></li><li class="secondItem"> <input type="text" name="title[]" id="title[]"></li></ul><ul><li class="firstItem" style="margin-right:39px">Session Time  </li><li class="secondItem"> <input name="sessionTime[]" type="text" id="sessionTime[]" size="10" maxlength="5"><em>minutes</em> </li></ul><ul><li class="firstItem" style="margin-right:80px">Price</li><li class="secondItem"> $<input type="text" name="price[]" id="price[]"></li><li class="thirdItem">Price of treatment. Format - 125 AUD - Please specify the currency in the standard format eg. AUD, USD, GBP, EUR </li></ul><ul><li class="firstItem" style="margin-right:48px">Description<sup>*</sup></li><li class="thirdItem" style="display:inline">Maximum 150 words</li><li class="fourthItem"><textarea name="descriptionBlurb[]" cols="50" rows="5" id="descriptionBlurb[]"></textarea></li></ul><div id="addTreatmentDiv1"><ul class="heading"><li><a href="javascript:addTreatments();" class="officialLinks">Add a spa treatment</a></li></ul></div>';
		}
		++currentTreatsDisplayed;
		theDiv.innerHTML=theText + '</ul>';
	}//end if
	//var theNextText ="";
	//for(c=0; c<document.forms[0].elements.length; ++c){
	//	theNextText+= c + '. ' + document.forms[0].elements[c].name + '<br/>';
	//}//end for 
	//var theNextDiv = document.getElementById('processing');
	//theNextDiv.innerHTML = theNextText;
}//end add treatments

function changeEmailCheck(){
	var alertMsg = "You will need to complete the following fields to continue: \n";
	var tabText = "\t - ";
	var returnText = "\n";
	var sendMsg = false;
	
	theNewEmail= document.forms['changeEmail'].elements['newEmail'];
  if (theNewEmail.value.indexOf("@") < 1)
  {
    alertMsg += tabText + "Valid Email Address" + returnText;
	sendMsg = true;
	//return false;
  }
 theNewEmailConfirm= document.forms['changeEmail'].elements['newEmailConfirm'];
  if (theNewEmailConfirm.value.indexOf("@") < 1)
  {
     alertMsg += tabText + "Valid Email Address for confirmation" + returnText;
	sendMsg = true;
	//return false;
  }else if (theNewEmail.value != "" && theNewEmail.value != theNewEmailConfirm.value)
  {
	alertMsg += tabText + "Your Email Address and the Confirmation do not match" + returnText;
	sendMsg = true;
	//return false;
  }
 if(sendMsg == true){
  	alert(alertMsg);
  	return false;
  }else{
  	return true;
  }

}

function changePasswordCheck(){
	var alertMsg = "You will need to complete the following fields to continue: \n";
	var tabText = "\t - ";
	var returnText = "\n";
	var sendMsg = false;
	theOldPassword= document.forms['changePassword'].elements['oldPassword'];
  if (theOldPassword.value=="")
  {
    alertMsg += tabText + "Old Password" + returnText;
	sendMsg = true;
	//return false;
  }
	theNewPassword= document.forms['changePassword'].elements['newPassword'];
  if (theNewPassword.value=="")
  {
    alertMsg += tabText + "New Password" + returnText;
	sendMsg = true;
	//return false;
  }
 theNewPasswordConfirm= document.forms['changePassword'].elements['newPasswordConfirm'];
  if (theNewPasswordConfirm.value=="")
  {
     alertMsg += tabText + "New Password Confirmation" + returnText;
	sendMsg = true;
	//return false;
  }else if (theNewPassword.value != "" && theNewPassword.value != theNewPasswordConfirm.value)
  {
	alertMsg += tabText + "Your new password and the confirmation do not match" + returnText;
	sendMsg = true;
	//return false;
  }
 if(sendMsg == true){
  	alert(alertMsg);
  	return false;
  }else{
  	return true;
  }

}




function spaDetails2Check(){
	var alertMsg = "You will need to complete the following fields to continue: \n";
	var tabText = "\t - ";
	var returnText = "\n";
	var sendMsg = false;
	
	theTarget= document.forms[0].elements[0];
  if (theTarget.value == "")
  {
    alertMsg += tabText + "You submit at least one treatment" + returnText;
	sendMsg = true;
	//return false;
  }
 theTarget= document.forms[0].elements[3];
  if (theTarget.value == "")
  {
    alertMsg += tabText + "Treatment description" + returnText;
	sendMsg = true;
	//return false;
  }
 if(sendMsg == true){
  	alert(alertMsg);
  	return false;
  }else{
  	return true;
  }

}




function spaDetails3Check(){
	var alertMsg = "You will need to complete the following fields to continue: \n";
	var tabText = "\t - ";
	var returnText = "\n";
	var sendMsg = false;
	
	theTarget= document.forms[0].elements[0];
  if (theTarget.value == "")
  {
    alertMsg += tabText + "You must upload at least one image" + returnText;
	sendMsg = true;
	//return false;
  }
 
 
 if(sendMsg == true){
  	alert(alertMsg);
  	return false;
  }else{
  	return true;
  }

}

function startProcessing(){
	var theHideDiv= document.getElementById('formDiv');	
	var thePasteDiv = document.getElementById('processing');
	var theText = '<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p align="center"><img src="../../../images/spaAdvertisers/waitingBtn.gif" alt="please wait" width="113" height="26"></p><p align="center" class="bodyTextGreen"><strong>Please wait while we upload your images ...</strong></p><p align="center" class="bodyText">This may take a minute or two.  </p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>';
	theHideDiv.style.position= "absolute";
	theHideDiv.style.bottom= "4000px";
	
	thePasteDiv.innerHTML = theText;
	thePasteDiv.style.width= "600px";
	thePasteDiv.style.border="1px solid #0C999E";
	thePasteDiv.style.padding="5px 5px 5px 5px";
}


function addFacilities(addAmount){
	var theList = document.getElementById('spaFacilitiesList');
	var theInput = theList.getElementsByTagName('input');
	var fillText="";
	for(v=0; v<(addAmount + facilityTotal); ++v){
		if(v<facilityTotal && theInput[v].value != ""){
			fillText += '<li class="fourthItem"> <input name="facility[]" type="text" id="facility[]" size="50" maxlength="255" value="' + theInput[v].value +'"></li>';
		}else{
			fillText += '<li class="fourthItem"> <input name="facility[]" type="text" id="facility[]" size="50" maxlength="255"></li>';
		}	
	}//end for loop
	facilityTotal += addAmount;
	theList.innerHTML="";
	theList.innerHTML=fillText;
	var optionList = document.getElementById('facilityNum');
	optionList.selectedIndex = 0;
	
}
function addFacilitiesEdit(addAmount){
	var theList = document.getElementById('spaFacilitiesList');
	var theInput = theList.getElementsByTagName('input');
	var fillText="";
	var inputCount = 0;
	var newTotal = addAmount + facilityTotal;
	var spaInsertCount=0;
	if(document.forms['spaDetails1'].elements['spaFacilitiesUpdate[]']){
		var spaUpdateCount = document.forms['spaDetails1'].elements['spaFacilitiesUpdate[]'].length;
		//var spaUpdateTest = true;
	}else{
		var spaUpdateCount = 0;
		//var spaUpdateTest = false;
	}
	for(var v=0; v < newTotal; ++v){
		if(v<spaUpdateCount){
			++inputCount;//count off spaFacilities update input field
			fillText += '<li class="fourthItem"><input name="spaFacilitiesUpdate[]" type="checkbox" id="spaFacilitiesUpdate[]" value="' + v + '"';
			if(theInput[inputCount-1].checked){
				fillText+=' checked="checked"';
			}
			fillText +=' /> <input name="facility[]" type="text" id="facility[]" size="50" maxlength="255" value="' + theInput[inputCount].value +'" onFocus="document.forms[\'spaDetails1\'].elements[\'spaFacilitiesUpdate[]\'][' + v + '].checked=true;" /><input name="spaFacilityID' + v + '" id="spaFacilityID' + v + '" type="hidden" value="' + theInput[inputCount + 1].value + '"> <input name="delete[]" type="checkbox" id="delete[]" value="' + theInput[inputCount + 2].value + '"';
			if(theInput[inputCount + 2].checked){
				fillText+=' checked="checked"';
			}
			fillText +=' />Delete?</li>';
			inputCount = inputCount + 3;//count off facility[] and spaFacilityID[] input fields and delete[]
		}else if(v<facilityTotal){
			++inputCount;//count off spaFacilities update input field
			fillText += '<li class="fourthItem"><input name="spaFacilitiesInsert[]" type="checkbox" id="spaFacilitiesInsert[]" value="' + v + '"';
			if(theInput[inputCount-1].checked){
				fillText+=' checked="checked"';
			}
			fillText +=' /> <input name="facility[]" type="text" id="facility[]" size="50" maxlength="255" value="' + theInput[inputCount].value +'" onFocus="document.forms[\'spaDetails1\'].elements[\'spaFacilitiesInsert[]\'][' + spaInsertCount + '].checked=true;" //></li>';
			++inputCount;//count off facility[] input field
			++spaInsertCount;
		}else{
			++inputCount;//count off spaFacilities update input field
			fillText += '<li class="fourthItem"><input name="spaFacilitiesInsert[]" type="checkbox" id="spaFacilitiesInsert[]" value="' + v + '"> <input name="facility[]" type="text" id="facility[]" size="50" maxlength="255" value="" onFocus="document.forms[\'spaDetails1\'].elements[\'spaFacilitiesInsert[]\']';
			if(addAmount!=1){
				fillText+='[' + spaInsertCount + ']';
			}
			fillText+='.checked=true;"></li>';
			++inputCount;//count off facility[] input field
			++spaInsertCount;
		}	
	}//end for loop
	facilityTotal += addAmount;
	theList.innerHTML="";
	theList.innerHTML=fillText;
	var optionList = document.getElementById('facilityNum');
	optionList.selectedIndex = 0;
	
}

function showHideAccommodation(action){
	var theList = document.getElementById('accommodationInfo');
	if(action == "show"){
		theList.style.display="block";
	}else if(action == "hide"){
		theList.style.display="none";
	}//end if action test
}

//spaAdvertisers-add-process.php (Uploading Images)

function thankyou(){
	var theDiv	= document.getElementById('formDiv');
	theDiv.innerHTML='<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p class="bodyTextGreen"><strong>Thankyou.</strong></p><p class="bodyText">Your spa profile and images have been submitted to Spa Destinations. We will inform you via email when your profile goes online. If you have any queries, please contact us for web support at <a href="mailto:web@spadestinations.com.au" class="officialLinks">web@spadestinations.com.au</a> or sales enquiries at <a href="mailto:sales@spadestinations.com.au" class="officialLinks">sales@spadestinations.com.au</a></p><p class="bodyText">You can now either <a href="../../add/" class="officialLinks">add</a> another profile (if you own more than one spa), or <a href="../../edit/" class="officialLinks">edit</a> your current profiles.</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>';
}
function reportErrors(spaLocationID){
	var theDiv	= document.getElementById('formDiv');
	var errorText;
	var errorTextEmail;
	for(v=0; v< errors.length; ++v){
		errorText +='<li>' + errors[v] + '</li>';
		errorTextEmail =+ errors[v] + '\n';
	}
	theDiv.innerHTML = '<p>&nbsp;</p><p>&nbsp;</p><p class="bodyTextGreen">Sorry. We encountered some errors in uploading your images.<br/><span class="bodyText">Please see below a list of errors. For help on this, please email <a href="mailto:web@spadestinations.com.au?subject=Error Uploading Images to Spa Profile ID.' + spaLocationID + '&body=-------\n' + errorTextEmail + '-------" class="officialLinks">web@spadestinations.com.au</a></span></p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>';
}
