var last="x";
function mOver(imageName){
	return;
	
	last = document.images[imageName].src;
	imageSrc = last;
	
	
	if (last.indexOf("-over.gif") == -1){

		
		if (imageName.indexOf("totop") != -1){
			imageSrc = totopover.src ;
		}	
		else {
			if (imageName.substring(0,3) == "2nd"){
			imageSrc = eval(imageName.substring(3)+"over.src");
			} else {
				imageSrc = eval(imageName+"over.src");
			}
		}

//		imageSrc = last.replace(/.gif/,"-over.gif")
	};
	document.images[imageName].src = imageSrc;
}

function resetImage(imageName){
	return;
	
	if (last != "x") document.images[imageName].src = last;
}



function winOpen(theURL, Name, popW, popH, scroll) { 
	var winleft = (screen.width - popW) / 2;
	var winUp = (screen.height - popH) / 2;
	winProp = 'width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scroll+',resizable'
	Win = window.open(theURL, Name, winProp)
	if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); }
}


function clearContent (obj) {
 if(obj.value == gLabelPassword)  { 
	var el = null;
	if (document.getElementById) {
		el = document.getElementById ("pwbox");
	}
	else {
		el = document.all.pwbox;
	}
	el.innerHTML = '<input type="password" id="password" name="user[pwd]" class="pwfield">';
	
	var el1 = null;
	if (document.getElementById) {
		el1 = document.getElementById ("password");
	}
	else {
		el1 = document.all.password;
	}
	
	if (document.all) window.setTimeout ("document.all.password.focus()", 200);
	else el1.focus();
 }
 
 if(obj.value == gLabelUsername) { 
 	obj.value = ''; 
 }
  
}