<!--
//SoftShell Solutions
//http://www.softshell.net/
//PrintPage - a browser friendly print function
function printPage() {
	if (window.print) {
		window.print();
	} else {
		alert('To print this page, select Print from the file menu.');
	}
}


function openWin(url,name,x,y) {
	winvar = window.open(url,name,'width='+ x +',height=' + y + ',status=no,menubar=no,scrollable=no,resizable=no');
	//winvar.moveTo(x,y);     
	winvar.focus();     
}



function replaceChars(entry) {
	out = "%20"; // replace this
	add = " "; // with this
	temp = "" + entry; // temporary holder

	while (temp.indexOf(out)>-1) {
		pos= temp.indexOf(out);
		temp = "" + (temp.substring(0, pos) + add + temp.substring((pos + out.length), temp.length));
		}
	return (temp);
}


function getValue(r) {
  	var countbegin;
	var countend;
	var count;
	var s = location.search;
	var d = "?";
	var index = s.indexOf(r);
		if (index != -1) {
			countbegin = (s.indexOf("=", index) + 1);
			countend = s.indexOf("&", index);
			if (countend == -1) {
				countend = s.length;
			}
			count1 = s.substring(countbegin, countend);
			count2 = replaceChars(count1)
			return (count2);
		}
  }
  


// -->

