
function clickclear(thisfield, defaulttext) {
	if (thisfield.value == defaulttext) {
		thisfield.value = "";
	}
}

function clickrecall(thisfield, defaulttext) {
	if (thisfield.value == "") {
		thisfield.value = defaulttext;
	}
}

function toclipboard(curtextarea) {
	curtextarea.focus();
	curtextarea.select();
	textforclip=curtextarea.createTextRange();
	textforclip.execCommand("Copy");
}

function detectBrowser()
{
var browser=navigator.appName;
var b_version=navigator.appVersion;
var version=parseFloat(b_version);
if ((browser=="Microsoft Internet Explorer") && (version<=6))
  {
  // SOME REASON IT FREAKS OUT IN IE, DEMO WORKS FINE
  // new Accordian('basic-accordian',2,'header_highlight');
  }
else
  {
  new Accordian('basic-accordian',2,'header_highlight');
  }
}

function inputFocus(checkValue) {
	if(document.getElementById('searchtext').value == checkValue) {
		document.getElementById('searchtext').value = '';
	}
}

function inputBlur(checkValue) {
	if(document.getElementById('searchtext').value == checkValue) {
		document.getElementById('searchtext').value = '';
	}
}
