<!--
function openwin(url, w, h) {
	window.open(url, "", "width=" + w + ",height=" + h);
}
// -->




function popup(name,path,width,height){
var str,tb,mb,lo,li,st,sb,re,w,h,uri,files;
var pathclass='';
if(!isNaN(path)){
	for(i=0;i<path;i++){
		pathclass+='../';
	}
	files=name;
}else{
	files=path;
}
tb=0; //toolbar
mb=1; //menubar
lo=0; //location
li=0; //directories
st=0; //status
sb=1; //scrollbars
re=1; //resizable
w=550; //width
h=450; //height
	switch (name){
//		case 'img':
//			sb=0;
//			w=width;
//			h=height-19;
//			uri=files+'.html';
//			break;
			
		case 'subwin':
			name='subwin';
			uri=pathclass+files+'.html';
			w=width;
			h=height-19;
			sb=1;
			uri=files+'.html';
			break;
			
		case 'img':
			name=path;
			sb=0;
			uri=pathclass+files+'.html';
			w=width;
			h=height-19;
			uri=files+'.html';
			break;
			
		default:
			name='other';
			sb=0;
			uri=pathclass+files+'.html';
			w=width;
			h=height-19;
			uri=files+'.html';
			break;
	}
	if((Moz)&&(!Ope)){
	h+=20;
	}
	if(NN4){
	h+=18;
	}
	if((Mac)&&((IE5))){
	h+=20;
	}
	str='toolbar='+tb;
	str+=',menubar='+mb;
	str+=',location='+lo;
	str+=',directories='+li;
	str+=',status='+st;
	str+=',scrollbars='+sb;
	str+=',resizable='+re;
	str+=',width='+w;
	str+=',height='+h;
	win=window.open(uri,name,str);
	win.focus();
}

