// JavaScript Document

var browser=navigator.appName
var b_version=navigator.appVersion
var version=parseFloat(b_version)

if ( version > 50000){
alert("NIET GESCHIKT");	
}

function getObj(name)
{
  if (document.getElementById)
  {
  	this.obj = document.getElementById(name);
  }
  else if (document.all)
  {
	this.obj = document.all[name];
  }
  else if (document.layers)
  {
   	this.obj = document.layers[name];
  }
}

function toonverberg(item){
	if (document.getElementById){
		item = document.getElementById(item)
		if(item.style.display == 'block'){
			item.style.display = 'none'
    	        } else {
			item.style.display = 'block'
		}
	}
}
function toon(item){
	if (document.getElementById){
		item = document.getElementById(item)
			item.style.display = 'block'
	}
}
function verberg(item){
	if (document.getElementById){
		item = document.getElementById(item)
			item.style.display = 'none'
	}
}
function laad_pagina(item){
	location.href = '?mod=edit_item&item='+item;
}
function dis(that){
document.getElementById(that).disabled ="disabled";
}
function schermpje(url,naam,height,width){
	newwindow=window.open(url,naam,'height='+height+',width='+width);
	if (window.focus) {newwindow.focus()}
}
function leeg(that){
document.getElementById(that).innerHTML ="";
}
function item(id){
		location.href = '/'+id;
}
function inline_edit(cat,gr){
	parent.location = '/admin/items/'+cat+'/'+gr;
	//schermpje('/admin/edit/'+gr,'admin_site',200,200);
}
