function nw(oFile,wWidth,wHeight)
{
	var cWidth=(window.screen.width);
	var cHeight=parseInt(window.screen.height);
	
	if (cHeight && cWidth)
	{
		leftOffset=Math.ceil((cWidth-wWidth)/2);
		topOffset=Math.ceil((cHeight-wHeight)/2);
	}
	//alert(set_name(oFile));
	var a=window.open(oFile, 'nwin', 'width='+wWidth+',height='+wHeight+',top='+topOffset+',left='+leftOffset);
	a.focus();

	if (oFile.indexOf('flash')==-1) return false;
}

function set_name(str)
{
	var new_str='';
	var my_char='';
	for(var i=0;i<str.length;i++)
	{
		my_char=str.substr(i,1);
		if(my_char!='/' && my_char!='.' && my_char!='?' && my_char!='&' && my_char!='=' && my_char!=':' && my_char!=' ' && my_char!='-') new_str+=my_char;
	}
	return new_str;
}
