﻿//change cursor to hand
function hand(theId) {
	
	if (document.all) {
	
	document.all(theId).style.cursor ='hand';
	}
	else {
	document.getElementById(theId).style.cursor ='pointer';

	}
}

//switch image
function switchImage(theId,newPath) {
	document.getElementById(theId).src = newPath;	
}


function setStyleById(i, p, v) {
	var n = document.getElementById(i);
	n.style[p] = v;
}

// turn display of an element on
function displayOn(theId) {
	
	document.getElementById(theId).style.display = 'block';
}


// turn display of an element off
function displayOff(theId) {
		document.getElementById(theId).style.display = 'none';
}

// set focus to an element
function setFocus(theId) {
	document.getElementById(theId).focus()
}