// Toggle color global

function toggleColor(objElement)
{
  if (objElement.className=='input-normal')
    objElement.className='input-focus';
  else
    objElement.className='input-normal';
}

function toggleColorTxtarea(objElement)
{
  if (objElement.className=='txtarea-normal')
    objElement.className='txtarea-focus';
  else
    objElement.className='txtarea-normal';
}


// Toggle color on search field

function toggleColorSearch(objElement)
{
  if (objElement.className=='search-normal')
    objElement.className='search-focus';
  else
    objElement.className='search-normal';
}

function Popup(page,pic)
{
	var left = screen.width/4;
	var top = screen.height/4;
	window.open(page+"?pic="+pic,"packshot", "left="+left+",top="+top+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=600,height=400");
}

function FixAlbumPopup(height)
{
	w = document.getElementById('picture').width;
 	h = document.getElementById('picture').height;
 	h = h + height;
 	top.resizeTo(w,h);
 	window.focus();
}
