
function GetSelect(F, E, ID, Key) {

	if (Key == "T") { 
		var N = document.forms[F].elements[E].selectedIndex;
		} else {
		var N = parseInt(Key);
		document.forms[F].elements[E].selectedIndex = N;
		}

	var Source = document.forms[F].elements[E].options[N].value;

	if (ChangeCSS(Source, ID)) {
		SetCookie("CSS_SEL", N, 3);
		}

}

function ChangeCSS(CSS, ID) {

	if (document.all && !window.opera) {
		// IEの場合
		document.styleSheets(0).href = CSS;
		return true;
		} else {
		// Gecko, Operaの場合
		document.getElementById(ID).href = CSS;
		return true;
		}

	return false;

}

function CloseWin(){
    window.close();
}
