function changeBgImage( _bgImage ){
	document.body.style.backgroundImage = "url(" + bgImagePath + _bgImage + ")"
	bgImage = _bgImage
}

function changeCSS( _color ) {
	document.getElementById('colorCSS').href = '../basic-l-' + _color +'/css/color.css'
	color = _color
}

function getQueryParameter( paramName ){
	var parameters = location.href.split('?')[1].split('&')
	for( i = 0 ; i < parameters.length ; i++ ){
		var splited = parameters[i].split("=")
		if( splited[0] == paramName ) return splited[1]
	}
}

function finish(){
	var nextLocation = location.href.split('?')[0] + '?color=' + color
	if( bgImage ) nextLocation += '&bgImage=' + bgImage
	location.href = nextLocation
}