function EasySearchAbout() {
var agree=alert("Enter relevant words only.  You do not need to enter words like the, and or, etc. For most purposes you can use the menu to find what you need.");
if (agree)
return false ;
else
return false ;
}

function eMailPolicy() {
var agree=alert(" Submitting your email address will keep you informed about this artist's work. All email communications conform to opt-in/opt-out best practices. You can unsubscribe directly from any email or by clicking the unsubscribe button on this page.");
if (agree)
return false ;
else
return false ;
}

function unsubscribePolicy() {
var agree=confirm(" This will unsubscribe you to this artist.  Are you sure you wish to continue?");
if (agree)
return true ;
else
return false ;
}

function confirmation( message ) {
	var agree = confirm( message );
	if (agree) {
		return true;
	} else {
		return false;
	}
}

function locationUrl( urlloc ) {
	document.location = urlloc;
}

function EasySearchAbout()
{
var agree=alert("Enter relevant words only.  You do not need to enter words like the, and or, etc. For most purposes you can use the menu to find what you need.  For example, If you want to search in all galleries by media type such as serigraph or Acrylic the search can be a valuable tool.");
if (agree)
return false ;
else
return false ;
}

// return message if form element is required and blank or if elememt is not numeric
function checkNumeric( elemValue, OneOfAKind ) {
	if ( OneOfAKind = 0 ) {
		if ( elemValue.length > 0 ) {
			isAlphaNum = new RegExp ("[^0-9]");
			if ( isAlphaNum.test(elemValue)) {
				alert( "you must enter a number in the quantity field." );
			}
		} else {
			alert("you must enter a number in the Quantity field.");
		}
	} else {
		if ( elemValue.length > 0 ) {
			isAlphaNum = new RegExp ("[^0-1]");
			if ( isAlphaNum.test(elemValue)) {
				alert( "This is a one-of-a-kind item, you can only enter 1 or 0." );
			}
		} else {
			alert("This is a one-of-a-kind item, you can only enter 1 or 0.");
		}
	}
}

// opens a new sized window for Item Inquiry form
function openInquiryWindow(ThumbType, InventoryID) {
	var urlstring = "submitquestion/submitquestion.cfm?ThumbType=" + ThumbType + "&InventoryID=" + InventoryID;
	window.open(urlstring, "SubmitQuestion","toolbar=no,scrollbars=no,width=300,height=300,left=10,top=10");
}

// toggles expansion divs open and closed
function toggleExpansion(a){
  var e=document.getElementById(a);
  if(!e)return true;
  if(e.style.display=="none"){
	e.style.display="block"
  } else {
	e.style.display="none"
  }
  toggleTeaser(a);
  return true;
}

// toggles expansion divs open and closed
function toggleTeaser(b){
  c = b.replace("e", "t");
  var e=document.getElementById(c);
  if(!e)return true;
  if(e.style.display=="none"){
	e.style.display="block"
  } else {
	e.style.display="none"
  }
  return true;
}

// opens a new sized window for Bio
function openBioWindow(ArtistID) {
	var urlstring = "/popup/biopopup.cfm?artistID=" + ArtistID;
	window.open(urlstring, "SubmitQuestion","toolbar=no,scrollbars=yes,width=600,height=600,left=10,top=10");
}