// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

<!------Return true if browser is Microsoft IE------->
function isIE(){
	return(navigator.appName=="Microsoft Internet Explorer");
}

<!------Return true if browser is Firefox------->
function isFirefox() {
	return (navigator.userAgent.indexOf("Firefox") != -1);
}

<!------Ensure the page has focus and not any other object------>
function setFocusOnPage(){
	if (self.focus){
		self.focus();
	}
	return true;
}

<!------ensure the specified objID is visible------> 
function show(objID){
	return changeClass(objID,'show');
}

<!------ensure the specified objID is hidden------> 
function hide(objID){
	return changeClass(objID,'hide');
}

<!------change the class of the specified objID------> 
function changeClass(objID, newClassName){
		document.getElementById(objID).className = newClassName;
	return true;
}

<!------body onLoad event------> 
function init() {
	
}
