function clearBox(isFocus,obj) {
	
	if (isFocus == 1) {
		if (obj.value == "Song, album, artist...") {
			obj.value = "";
			obj.style.color = "#000000";
		}		
	} else {
		if (obj.value == "") {
			obj.style.color = "#a3a3a3";
			obj.value = "Song, album, artist...";
		}
	}
	
}

function sw(objName,onoff) {
	var e = document.getElementById(objName);
	if (onoff == 1) {
	
		if (e.overFileName == null) {
			e.myFileName = e.src;
			var extStart = 0;
			if (e.src.indexOf(".gif") > 1) {
				extStart = e.src.indexOf(".gif");
			} else if (e.src.indexOf(".jpg") > 1) {
				extStart = e.src.indexOf(".jpg");
			} else {
				extStart = e.src.indexOf(".png");
			}
			var overFileName = e.src.substr(0,extStart) + "_over" + e.src.substr(extStart,e.src.length);
			e.overFileName = overFileName;
		}

		e.src = e.overFileName;
		
	} else {
		e.src = e.myFileName;
	}
}

function fixSearchForm(frm) {
	
	// ebay
	if (frm.searchType.selectedIndex == 1) {
		
		frm.method = "GET";
		frm.action = "http://search.ebay.com/search/search.dll";
		frm.searchTerm.name = "satitle";
		
	}
	
}