﻿function createWindow(page, w, h) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'width='+w+',height='+h+',top='+wint+',left='+winl+',scrollbars=no';
	newwindow = window.open(page,'name',winprops);
	return false;
}

function treeclick(a) {
    var curr_status = a.parentNode.className;
    
   if(curr_status == 'open') a.parentNode.className = 'closed';
    else a.parentNode.className = 'open';
    return false;
}