// JavaScript Document
/*function disableRightClick(e)
{
  var message = "Right click disabled";
  
  if(!document.rightClickDisabled) // initialize
  {
    if(document.layers) 
    {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
    if (e.which==2||e.which==3)
    {
      alert(message);
      return false;
    }
  }
  else
  {
    alert(message);
    return false;
  }
}
disableRightClick();*/

function changePage(x){
	var form = document.adminform;
	form.page.value = x;
	form.submit();
}

function popupGallery(x){
	var u = 'components/gallery/detail.php?add=1&id=' + x;
	window.open( u, 'gallery', 'scrollbars=yes,width=600,height=600' );
}

function popupMobile(x){
	var u = 'mobiles/detail.php?id=' + x;
	window.open( u, 'mobile', 'width=600,height=450' );
}
