function make_blank()
{
document.frmSearch.SearchID.value ="";
}



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) {
		nav_shop_catalog_over = newImage("/images/store/template/nav-shop-catalog-on.jpg");
		nav_sales_promo_over_ = newImage("/images/store/template/nav-shop-sales_promos-on.jpg");
		nav_artists_over_ = newImage("/images/store/template/nav-artists-on.jpg");
		nav_shop_catalog_WH_over = newImage("/images/store/template/nav-shop-catalog-wh-on.jpg");
		artists_WH_over = newImage("/images/store/template/nav-artists-wh-on.jpg");
		quickorder_WH_over = newImage("/images/store/template/nav-quick-order-on.jpg");
		visit_WH_over = newImage("/images/store/template/nav-visit-us-on.jpg");
		shows_WH_over = newImage("/images/store/template/nav-show-schedule-on.jpg");
		
	
		preloadFlag = true;
	}
}




function Loader(){var Image_Counter = new Array(); 
	var counter =  Image_Counter.length; var Image_Paths = Loader.arguments;
	for(var i=0;i<Image_Paths.length;i++) {
	Image_Counter[counter] = new Image();Image_Counter[counter++].src = Image_Paths[i];}
}

function Swap(current_image,new_image) {
	document[current_image].src = new_image;
return true;
}


function CheckBrowser() {
	if (document.layers) {
		window.open('upgrade.asp','','width=400,height=450');
	}
}

function ShowHide(divID){
	var thisDiv;
	if(document.all) {thisDiv = document.all[divID];}
	if(document.getElementById && !document.all) {thisDiv = document.getElementById(divID);}
	if(thisDiv.style.display == "none"){thisDiv.style.display = "block";} else {thisDiv.style.display = "none";}
}



// --------------------------------------------------
// Functions for HTML Page Search and Drop Down
// --------------------------------------------------
function CatSelected(select) {
	if (select.selectedIndex!=0)
	select.form.submit();
}


function SearchIt() {
	document.frmSearch.submit();
}



function CheckSearch(theForm){
	if (theForm.SearchID.value == "") {
		alert("Please enter a Search Word or Item ID to Search!");
		theForm.SearchID.focus();
		return false;
		}
	return true;
}

function ChangePointer() {
if (document.all) {
	clickCart.style.cursor = "hand";
}

if (document.getElementById && !document.all) {
clickcart.style.cursor = "pointer";
}

if (document.layers) {
// Do Nothing
}
}

var curNum;
curNum = 0;
