
	function errorsuppressor(){
		window.status = 'JavaScript Error';
		return true;
	}
	//window.onerror=errorsuppressor


var br
if(navigator.appName == "Netscape" && navigator.appVersion.charAt(0)=="4"){br="N";}
else if(navigator.appName == "Microsoft Internet Explorer" && document.all != null){br="IE";}
else if(navigator.appName == "Netscape" && document.getElementById != null && navigator.appVersion.charAt(0)=="5"){br="N5";}
else{br=null}

	
function QuickCheck() {

if (document.fSite.Name.value == "" && (document.fSite.Sub.value == "" ) ) {
	alert("Please Specify a Search Term");
	document.fSite.Name.focus();return false
	}


if(document.fSite.Name.value.length < 3 && document.fSite.Sub.value.length < 3 ) {
		alert('You need to specify more than 2 letters to search for.');
		return false;
	}
	

}


function confirmAction() {
    return confirm("THIS ACTION WILL DELETE THIS COMPLETELY..\n\nClick OK to DELETE!\nClick Cancel to ABORT!")
}


function go(box) {
		var val = box.options[box.selectedIndex].value;
		if (val != "") {
					window.location.href = val;
				}
			}
			
function OpenWindow(page){ var cal = window.open(page, "popup", "directories=no,height=400,location=no,menubar=no,scrollbars=yes,status=no,resizable=1,width=500"); 
} 


function PopUp(URL,Window,w,h,x,y) {
	var popupwin = window.open(URL,Window,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+w+",height="+h+",left="+x+",top="+y);
}



function OpenTest() {
	PopUp('/testimonials.asp','Test','590','360','10','10');
}


function Jump(Location) {
	opener.location.href = Location;window.close()
}




function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
Slice002 = newImage("images/site/Slice-02.gif");
Slice003 = newImage("images/site/Slice-03.gif");
Slice004 = newImage("images/site/Slice-04.gif");
Slice006 = newImage("images/site/Slice-06.gif");
Slice008 = newImage("images/site/Slice-08.gif");
Slice010 = newImage("images/site/Slice-10.gif");
preloadFlag = true;
}
}

preloadImages();


function showTab(tabId, tabNo)
{
	var tabCollection = document.getElementById(tabId);
	tabCollection.className='Tab'+tabNo+'Visible';
}