function isset(myVar) {
  var undefined;
  if (myVar != undefined) {
    return true;
  } else {
    return false;
  }
}
function OpenVenster(url,width,height,scrollbars,resizable) {
  var left = getxcenter(width);
  var top = getycenter(height);
  if (scrollbars) {scrollbars = "yes";} else { scrollbars = "no";}
  if (resizable) {resizable = "yes";} else { resizable = "no";}
  newWindow = window.open( url,"","height=" + height + ",left=" + left + ",scrollbars=" + scrollbars + ",status=no,resizable=" + resizable + ",toolbar=no,top=" + top + ",width="+width + ",height=" + height);
  newWindow.focus();
}
function viewimage(image) {
  OpenVenster('/include/php/image.php?img=' + image);
}

function getxcenter(objwidth) { 
   var value = Math.floor(screen.availWidth/2); 
   if (isset(objwidth)) { 
     value = value - Math.floor(objwidth/2); 
   } 
   value = value + getverscroll(); 
   return value; 
 } 
 function getycenter(objheight) { 
   var value = Math.floor(screen.availHeight/2); 
   if (isset(objheight)) { 
     value = value - Math.floor(objheight/2); 
   } 
   value = value + gethorscroll(); 
   return value; 
 }
function getwinheight() { 
  var windowheight; 
  if (document.all) { 
    windowheight = top.document.body.clientHeight; 
  } else { 
    if (document.getElementById) { 
      windowheight = window.innerHeight; 
    } 
  } 
  return windowheight;   
 } 
 function getwinwidth() { 
  var windowheight; 
  if (document.all) { 
    windowheight = top.document.body.clientWidth; 
  } else { 
    if (document.getElementById) { 
      windowheight = window.innerWidth; 
    } 
  } 
  return windowheight;   
 } 
 function gethorscroll() { 
  var scrollvalue; 
  if (document.all) { 
    scrollvalue = top.document.body.scrollTop; 
  } else { 
    if (document.getElementById) { 
      scrollvalue = window.pageYOffset; 
    } 
  } 
  return scrollvalue; 
 } 
 function getverscroll() { 
  var scrollvalue; 
  if (document.all) { 
    scrollvalue = top.document.body.scrollLeft; 
  } else { 
    if (document.getElementById) { 
      scrollvalue = window.pageXOffset; 
    } 
  } 
  return scrollvalue; 
 } 


function right(e) {
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
		alert("© Unique drogist & beenmodespecialist.");
		return false;
	}
	return true;
}