function rollOverCSS(id, img) {
	document.getElementById(id).style.backgroundImage = 'url(images/'+img+')';
}

function rollOverIMG(id, img) {
	document.getElementById(id).src = 'images/'+img;
}

function validate(form, msg) {
	if(form.name.value == "") { 
		alert(msg); 
		return false; 
	} 
	else return true;
}

function hide(id, id_a) {
	document.getElementById(id).style.display = 'block';
	document.getElementById(id_a).style.display = 'none';
}

function show(id, id_a) {
	document.getElementById(id).style.display = 'none';
	document.getElementById(id_a).style.display = 'inline';
}

var deg2rad = Math.PI * 2 / 360;

function SetRotation(deg, id) {
	rad = deg * deg2rad;
	
	costheta = Math.cos(rad);
	sintheta = Math.sin(rad);
	
	document.getElementById(id).style.top = -costheta;
	document.getElementById(id).style.left = -sintheta;
}

function changeLocation(menuObj)
{
   var i = menuObj.selectedIndex;

   if(i >= 0)
   {
      window.location = menuObj.options[i].value;
   }
}