var bkr=true;
function $(v){return document.getElementById(v);}
function $s(v){return $(v).style;}
function sw(o){$s(o).display='block';}
function hd(o){$s(o).display='none';}
function tgl(o){$s(o).display=($s(o).display=='block')?'none':'block';}
function vv(o){$s(o).visibility='visible';}
function vh(o){$s(o).visibility='hidden';}
function tglv(o){$s(o).visibility=($s(o).visibility=='visible')?'hidden':'visible';}
function $t(o,t){$(o).innerHTML=t;}
function $v(o){return $(o).value;}
function of(tv,obj){if(obj.value==tv)obj.value='';obj.style.color='black'}
function ob(tv,obj){if(obj.value==''){obj.value=tv;obj.style.color='gray'}}
function r(rw){rw.style.backgroundColor='';}
function h(rw){rw.style.backgroundColor='#ffc';}
function h2(rw){rw.style.backgroundColor='#ff0';}
function z(o,zi){$s(o).zIndex=zi;}
function max_height(id){var ids=$s(id);ids.overflow="hidden";if(act_height(id)!=0)return act_height(id);else{origdisp=ids.display;origheight=ids.height;origpos=ids.position;origvis=ids.visibility;ids.visibility="hidden";ids.height="";ids.display="block";ids.position="absolute";height=act_height(id);ids.display=origdisp;ids.height=origheight;ids.position=origpos;ids.visibility=origvis;return height;}}
function act_height(id){height=$(id).clientHeight;if(height==0)height=$(id).offsetHeight;return height;}
function vE(e){return e.match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/);}
function cd_ml(e){document.write(("<n uers=\"znvygb:"+e+"\" ery=\"absbyybj\" pynff=yngva>"+e).replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);}));}
function kk(e){return window.event?e.keyCode:e.which;}	//	use: onkeyup,onkeypress,onkeydown="a=kk(event);...DO SOME THINGs...;return true;"
function IsEscPress(e){var kC=window.event?event.keyCode:e.keyCode,Esc=window.event?27:e.DOM_VK_ESCAPE;return kC==Esc}
function nrm(id){if(baz[id.charAt(1)])hd(id);else blinddown(id);baz[id.charAt(1)]=!baz[id.charAt(1)];}
function getCheckedValue(radioObj){if(!radioObj)return "";var radioLength=radioObj.length;if(radioLength==undefined)if(radioObj.checked)return radioObj.value;else return "";for(i=0;i<radioLength;i++)if(radioObj[i].checked)return radioObj[i].value;return "";}
function blinddown(id)
{
	maxh=max_height(id);
	sw(id);
	$s(id).height="0";
	var spd=Math.ceil(313/maxh);
	for(i=1;i<=maxh;i++)
		window.setTimeout("$s('"+id+"').height='"+i+"px'",spd*i);
}
function loadScript(url){var sC=document.createElement("script");sC.type="text/javascript";sC.src=url;document.getElementsByTagName("head")[0].appendChild(sC);}
function loadCss(url){var cS=document.createElement("link");cS.setAttribute("rel","stylesheet");cS.setAttribute("type","text/css");cS.setAttribute("href",url);document.getElementsByTagName('head')[0].appendChild(cS);}