//popupwindow

openwin = new Array() ;
//function owd(jsn, url, ww, hh) {
//nm, url, title, left, top, width, height, channelmode, directories, fullscreen, location, menubar, scrollbars, status, titlebar, toolbar, resizable

function wopen(x, y, w, h, url){ 
	opwd('', url, '', x, y, w, h, '0', '0', '0', '0', '0', '0', '0', '0', '0', '1')

}

function opwd(nm, url, title, left, top, width, height, channelmode, directories, fullscreen, location, menubar, scrollbars, status, titlebar, toolbar, resizable){


	own = nm ;
	strStyle = "";

	strStyle ="left=" + left;
	strStyle +=",top=" + top;
	strStyle +=",height=" + height;
	strStyle +=",width=" + width;

	if(channelmode == "1"){strStyle+=",channelmode=yes";}else{strStyle+=",channelmode=no";}

	if(directories == "1"){strStyle+=",directories=yes";}else{strStyle+=",directories=no";}
	if(fullscreen == "1"){strStyle+=",fullscreen=yes";}else{strStyle+=",fullscreen=no";}
	if(location == "1"){strStyle+=",location=yes";}else{strStyle+=",location=no";}
	if(menubar == "1"){strStyle+=",menubar=yes";}else{strStyle+=",menubar=no";}
	if(scrollbars == "1"){strStyle+=",scrollbars=yes";}else{strStyle+=",scrollbars=no";}
	if(status == "1"){strStyle+=",status=yes";}else{strStyle+=",status=no";}
	if(titlebar == "1"){strStyle+=",titlebar=yes";}else{strStyle+=",titlebar=no";}
	if(toolbar == "1"){strStyle+=",toolbar=yes";}else{strStyle+=",toolbar=no";}
	if(resizable == "1"){strStyle+=",resizable=yes";}else{strStyle+=",resizable=no";}

	//alert(strStyle);
	
	openwin[own]=window.open(url, title, strStyle);
	openwin[own].focus();

}

