function DisplaySwitching(objName) { var x = new getObj(objName); x.style.display = (x.style.display == 'block') ? 'none' : 'block';}
function getObj(name) { if (document.getElementById) { this.obj = document.getElementById(name); this.style = document.getElementById(name).style;} else if (document.all) { this.obj = document.all[name]; this.style = document.all[name].style;} else if (document.layers) { this.obj = document.layers[name]; this.style = document.layers[name];}
}
function popwindow(url,xs,ys) { mywindow = window.open(url,"windowpop","location=0,status=0,scrollbars=1,width="+xs+",height="+ys);}
function reloadCap() { document.getElementById('captcha').src = '/_ref/captcha.php?r=' + Math.random();}