function entsub(myform) {
  if (window.event && window.event.keyCode == 13)
    myform.submit();
  else
    return true;
}

$(document).ready(function()
{   
 $('#button1').click(function() 
 {
 	$('#contentElement1').toggle("normal");
 	// $('#exp_link').replaceWith('<a title="show/hide" id="exp_link" href="#">-</a>');
 	return false;
 });
 document.forms[0].elements['username'].focus();
});
 	/*
window.onload = function(){
	//select the first button
	var button1 = $('button1');
	
	//The height transition we attach to 'contentElement1'
	var b1Toggle = new Fx.Height('contentElement1', {duration: 500});
	
	//add an onclick event listener to button1
	button1.addEvent('click', function(){
		//toggle height transition (hide-show)
		b1Toggle.toggle();
		//toggle classname button1 <-> button1 button1_
		button1.toggleClass('button1_');
		return false;
	});
	
	//set css display:block for the contentElements
	$('contentElement1').setStyle('display','block');
};
*/
function open_win(url, w, h, o)
{
opts="";
if(o) opts+=",scrollbars=yes";
    window.open(url, "_blank", "toolbar = no, location=no, directories=no, status=no, menubar=no, resizable=no, copyhistory=no, width="+w+", height="+h+opts);
return false;
}

function getObject(id){
	var ie4 = false;
	if(document.all){
		ie4 = true;
	}
	if (ie4){
		return document.all[id];
	}
	else{
		return document.getElementById(id);
	}
}

function toggle(link, divId){
	var lText = link.innerHTML;
	var d = getObject(divId);
 	if (lText == '+'){
 		link.innerHTML = '-'; d.style.display = 'block';
 	}
  	else{
  		link.innerHTML = '+'; d.style.display = 'none';
  	}
}

