
function clearTextField(obj){
	obj.value='';
}

function sectionHighlightImg(){
	var img_str='home_nav';
		document.getElementById(img_str).src="/atmos_res/atmos_graphics/nav_header-sub-mouseover.gif";
}
function rotateNavImage(img_id,img_name){
	img1=new Image(129,13);
	img1.src="/atmos_res/atmos_graphics/nav_header-sub.gif";

	img2=new Image(129,13);
	img2.src="/atmos_res/atmos_graphics/nav_header-sub-mouseover.gif";

	document.getElementById(img_id).src = eval(img_name + ".src");
	if(img_name=='img1'){ sectionHighlightImg(); }
}
function rotateTopHdrImage(img_id,img_name){
	img1=new Image();
	img1.src="/atmos_res/atmos_graphics/"+img_name+".gif";
	document.getElementById(img_id).src = img1.src;
}
function rotateArrowLink(obj,to_color,status){
	if(status=="over"){ obj.className="hover"; }else{ obj.className=""; }
	parts=obj.id.split("_");
	img_id="link_arrow_"+parts[1];
	img_obj=document.getElementById(img_id);
	img_obj.src="/atmos_res/atmos_graphics/item_arrow_"+to_color+".gif";
}


function toPassword(oInput) {
	var newEl = document.createElement('input');
	newEl.setAttribute('type', 'password');
	newEl.setAttribute('name', 'password');
	oInput.parentNode.replaceChild(newEl,oInput);
	toPassword.el = newEl;
	setTimeout('toPassword.el.focus()',100); 
	return true;
}
