function checkEnter(e){
	var characterCode
	if(e && e.which){
	e = e
	characterCode = e.which
	}
	else{
	e = event
	characterCode = e.keyCode
	}	 
	if(characterCode == 13){
	document.forms[0].submit()
	return false
	}
	return true	
}

function gotoAlbum(strAlbumUserName)
{
  document.a.album.value = strAlbumUserName;
  document.a.submit();
}

function raw_popup(url, target, features) {
  if (isUndefined(features)) {
    var w = Math.ceil(screen.width*.90);
    var h = Math.ceil(screen.height*.90);
    var winl = Math.ceil((screen.width-w)/2);
    var wint = Math.ceil((screen.height-h)/2);
    features  ='height='+h+',';
    features +='width='+w+',';
    features +='top='+wint+',';
    features +='left='+winl+',';
    features +='scrollbars=yes,';
    features +='resizable=yes';
  }
  if (isUndefined(target)) {
    target = '_blank';
  }
  var theWindow =
    window.open(url, target, features);
  theWindow.focus();
  return theWindow;
}

function link_popup(src, features) {
  return raw_popup(src.getAttribute('href'),src.getAttribute('target') || '_blank',features);
}
function isUndefined(v) { 
	var undef;
	return v===undef;
}
