Yeah google translation is realy bad

I show you my only WidgetOnLoad function.
Code:
function widgetOnLoad()
{
// -------------------- Background Color Panel ------------------ //
// -------------------- Black Background btn -------------------- //
BgColorBlack.Visible = getValue('BgColorBlack.visible',BgColorBlack.Visible);
ImagesLayer.Visible = getValue('ImagesLayer.visible',ImagesLayer.Visible);
Colors.visible = getValue('Colors.visible',Colors.visible);
black01.checked = BgColorBlack.Visible;
black01.checked = ImagesLayer.Visible;
black01.checked = Colors.visible;
// -------------------- Blue01 Background btn -------------------- //
BgColorBlue01.Visible = getValue('BgColorBlue01.visible',BgColorBlue01.Visible);
ImagesLayer.Visible = getValue('ImagesLayer.visible',ImagesLayer.Visible);
Colors.visible = getValue('Colors.visible',Colors.visible);
blue01.checked = BgColorBlue01.Visible;
blue01.checked = ImagesLayer.Visible;
blue01.checked = Colors.visible;
BgColorBlack.visible = getValue('BgColorBlack.visible',BgColorBlack.visible);
blue01.checked = BgColorBlack.visible;
// -------------------- Blue02 Background btn -------------------- //
BgColorBlue02.Visible = getValue('BgColorBlue02.visible',BgColorBlue02.Visible);
ImagesLayer.Visible = getValue('ImagesLayer.visible',ImagesLayer.Visible);
Colors.visible = getValue('Colors.visible',Colors.visible);
blue02.checked = BgColorBlue02.Visible;
blue02.checked = ImagesLayer.Visible;
blue02.checked = Colors.visible;
BgColorBlack.visible = getValue('BgColorBlack.visible',BgColorBlack.visible);
BgColorBlue01.visible = getValue('BgColorBlue01.visible',BgColorBlue01.visible);
blue02.checked = BgColorBlack.visible;
blue02.checked = BgColorBlue01.visible;
// -------------------- Blue03 Background btn -------------------- //
BgColorBlue03.Visible = getValue('BgColorBlue03.visible',BgColorBlue03.Visible);
ImagesLayer.Visible = getValue('ImagesLayer.visible',ImagesLayer.Visible);
Colors.visible = getValue('Colors.visible',Colors.visible);
blue03.checked = BgColorBlue03.Visible;
blue03.checked = ImagesLayer.Visible;
blue03.checked = Colors.visible;
BgColorBlack.visible = getValue('BgColorBlack.visible',BgColorBlack.visible);
BgColorBlue01.visible = getValue('BgColorBlue01.visible',BgColorBlue01.visible);
BgColorBlue02.visible = getValue('BgColorBlue02.visible',BgColorBlue02.visible);
blue03.checked = BgColorBlack.visible;
blue03.checked = BgColorBlue01.visible;
blue03.checked = BgColorBlue02.visible;
// -------------------- Blue04 Background btn -------------------- //
BgColorBlue04.Visible = getValue('BgColorBlue04.visible',BgColorBlue04.Visible);
ImagesLayer.Visible = getValue('ImagesLayer.visible',ImagesLayer.Visible);
Colors.visible = getValue('Colors.visible',Colors.visible);
blue04.checked = BgColorBlue04.Visible;
blue04.checked = ImagesLayer.Visible;
blue04.checked = Colors.visible;
BgColorBlack.visible = getValue('BgColorBlack.visible',BgColorBlack.visible);
BgColorBlue01.visible = getValue('BgColorBlue01.visible',BgColorBlue01.visible);
BgColorBlue02.visible = getValue('BgColorBlue02.visible',BgColorBlue02.visible);
BgColorBlue03.visible = getValue('BgColorBlue03.visible',BgColorBlue03.visible);
blue04.checked = BgColorBlack.visible;
blue04.checked = BgColorBlue01.visible;
blue04.checked = BgColorBlue02.visible;
blue04.checked = BgColorBlue03.visible;
// -------------------- Blue05 Background btn -------------------- //
BgColorBlue05.Visible = getValue('BgColorBlue05.visible',BgColorBlue05.Visible);
ImagesLayer.Visible = getValue('ImagesLayer.visible',ImagesLayer.Visible);
Colors.visible = getValue('Colors.visible',Colors.visible);
blue05.checked = BgColorBlue05.Visible;
blue05.checked = ImagesLayer.Visible;
blue05.checked = Colors.visible;
// -------------------- Background Images Panel ------------------ //
ImagesLayer.Visible = getValue('ImagesLayer.visible',ImagesLayer.Visible);
Colors.Visible = getValue('Colors.visible',Colors.Visible);
AkBg.checked = ImagesLayer.Visible;
AkBg.checked = Colors.Visible;
// -------------------- Background Tranparence ------------------ //
Trans00.Opacity = 1;
Trans10.Opacity = 1;
Trans20.Opacity = 1;
Trans30.Opacity = 1;
Trans40.Opacity = 1;
Trans50.Opacity = 1;
Trans60.Opacity = 1;
Trans70.Opacity = 1;
Trans80.Opacity = 1;
Trans90.Opacity = 1;
WidgetBackground.Opacity = getValue('WidgetBackground.Opacity',WidgetBackground.Opacity);
WidgetBackground.Opacity = getValue('WidgetBackground.Opacity',WidgetBackground.Opacity);
WidgetBackground.Opacity = getValue('WidgetBackground.Opacity',WidgetBackground.Opacity);
WidgetBackground.Opacity = getValue('WidgetBackground.Opacity',WidgetBackground.Opacity);
WidgetBackground.Opacity = getValue('WidgetBackground.Opacity',WidgetBackground.Opacity);
WidgetBackground.Opacity = getValue('WidgetBackground.Opacity',WidgetBackground.Opacity);
WidgetBackground.Opacity = getValue('WidgetBackground.Opacity',WidgetBackground.Opacity);
WidgetBackground.Opacity = getValue('WidgetBackground.Opacity',WidgetBackground.Opacity);
WidgetBackground.Opacity = getValue('WidgetBackground.Opacity',WidgetBackground.Opacity);
WidgetBackground.Opacity = getValue('WidgetBackground.Opacity',WidgetBackground.Opacity);
Trans00.checked = WidgetBackground.Opacity;
Trans10.checked = WidgetBackground.Opacity;
Trans20.checked = WidgetBackground.Opacity;
Trans30.checked = WidgetBackground.Opacity;
Trans40.checked = WidgetBackground.Opacity;
Trans50.checked = WidgetBackground.Opacity;
Trans60.checked = WidgetBackground.Opacity;
Trans70.checked = WidgetBackground.Opacity;
Trans80.checked = WidgetBackground.Opacity;
Trans90.checked = WidgetBackground.Opacity;
// -------------------- Widget Effect Glass --------------------- //
EffectGlass.Visible = getValue('EffectGlass.visible',EffectGlass.Visible);
GlassON.Visible = getValue('GlassON.Visible',GlassON.visible);
GlassOFF.Visible = getValue('GlassOFF.Visible',GlassOFF.Visible);
GlassOFF.visible =getValue('GlassOFF.visible',GlassOFF.visible);
GlassON.visible = getValue('GlassON.visible',GlassON.visible);
EffectGlass.visible = getValue('EffectGlass.visible',EffectGlass.visible);
GlassCheckBox.checked = EffectGlass.Visible;
GlassCheckBox.checked = GlassON.visible;
GlassCheckBox.checked = GlassOFF.visible;
GlassCheckBoxOff.checked = GlassOFF.visible;
GlassCheckBoxOff.checked = GlassON.visible;
GlassCheckBoxOff.checked = EffectGlass.visible;
SaveIni()
}
// -------------------- WidgetOnLoad Settings FIN --------------- //
I would like to know if i can put this code on a external javascript file
and call this file when launching the widget ?
I hope I have been a little clearer and understandable
