function chbg(obj, col_to){
	obj.style.background=col_to;
};

function show(obj_show){
	var opened=document.getElementById('opened');
	if(opened.value!=''){
		var opened_obj=document.getElementById(opened.value);
		opened_obj.style.display="none";
	}
	var to_show=document.getElementById(obj_show);
	if(to_show.style.display=="none"){
		to_show.style.display="block";
		opened.value=to_show.id;
	}else{to_show.style.display="none";}
}

function hide(obj_show){
	var to_show=document.getElementById(obj_show);
	if(to_show.style.display!="none"){to_show.style.display="none";}
}

function switcher(obj){
	var to_show=document.getElementById(obj);
	if(to_show.style.display!="none"){to_show.style.display="none";}else{to_show.style.display="block";}
}

function sel(f){f.value='';}

function winop(page, w, h, s) {
		window.open(page, "win", "width="+w+", height="+h+", left=40, top=40, scrollbars="+s);
	}

function run_movie(arg,w,h,c){document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'"><param name="movie" value="'+arg+'" /><param name="bgcolor" value="#'+c+'" /><embed src="'+arg+'" quality="high" bgcolor="#'+c+'" width="'+w+'" height="'+h+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');}

<!--Set Cookies -->
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (2 < argc) ? argv[2] : null;
var path = (3 < argc) ? argv[3] : null;
var domain = (4 < argc) ? argv[4] : null;
var secure = (5 < argc) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
<!--Get Cookies-->
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1){
endstr = document.cookie.length;
}
return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
	var j = i + alen;
	if (document.cookie.substring(i, j) == arg){
	return getCookieVal(j);}
	i++;
	if (i==0){break;}
}
return null;
}