function gup( name )
{
  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var results = regex.exec( window.location.href );
  if( results == null )
    return "";
  else
    return results[1];
}

function openSpecialsPage(){
	document.location="http://www.dayspaoasis.com/email.html?emailAddr=" + this.document.getElementById('spaBoomEmail').value;
	}


// tried to add this function to place users email into email field, but am not allowed due to browser security.  Can't add items if they are not in the same domain.
// our domain is dayspaoasis.com and spabooms' is spaboom.com	
function addEmail(){
	var emailValue = gup('emailAddr');
//	alert (emailValue);
var x=document.getElementById("htmlPage");
var y=(x.contentWindow || x.contentDocument);
if (y.document)y=y.document;
y.getElementById('email').value = emailValue;
	return true;
}
	

