var	vPath	=	'/css/';
var	vCSS	=	GetCookie( 'CSS' );

vCSS	=	( vCSS )?	vPath + vCSS:	vPath + 'style_s.css';
document.write('<link rel="stylesheet" href="' + vCSS + '" type="text/css">');


function	SetCookie( vName, vValue )
{
	document.cookie	=	vName + '=' + vValue + '; path=;';
	window.location.reload();
}

function	GetCookie( vName )
{
	var	aParts	=	new Array();
	var	aPart	=	new Array();
	var	i;

	aParts	=	document.cookie.split( '; ' );
	for( i=0; i<aParts.length; i++ )
	{
		aPart	=	aParts[i].split( '=' );
		if( aPart[0] == vName )
		{
			return	aPart[1];
		}
	}

	return	'';
}

function	Popup( vUrl, vWid, vHei )
{
	window.open( vUrl, '', 'width=' + vWid + ',height=' + vHei + ',resizable=1,scrollbars=1' );
}

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}
