function wopen(url1, w_width, w_height){
	w = getClientWidth();
	h = getClientHeight();
	
	l = parseInt((w - w_width) / 2);
	t = parseInt((h - parseInt(w_height)) / 2);
        window.open(url1, "", "menubar=no,toolbar=no,scrollbars=no,status=no,top="+t+",left="+l+",width="+w_width+",height="+w_height);
}

function getClientWidth() {
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientWidth:document.body.clientWidth;
}

function getClientHeight()
{
  return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
}

function show_submenu_old(ob) {
	var ul = $(ob).next();
	if (ul.length == 0) {
		return true;
	} else {
		if (ul.css('display') == 'none') {
			ul.css('display','block');
		} else {
			ul.css('display','none');
		}
		return false;
	}
	
}



function show_submenu(ob) {
	var ul = $(ob).next();
	if (ul.length == 0) {
		return true;
	} else {
		if (ul.className == 'dnone') {
			ul.className = 'block';
		} else {
			ul.className = 'none';
		}
		return false;
	}
	
}
