function disable_checkbox(mycheckbox, formname) { cb = document.formname.elements[mycheckbox] if(cb.disabled) cb.disabled = false; else cb.disabled = true; } function switch_checkbox(del, move, formname) { del = document.formname.elements[del]; move = document.formname.elements[move]; if(move.checked) { move.checked = false; del.disabled = false; del.checked = false; } else { del.checked = false; del.disabled = true; move.disabled = false; move.checked = true; } } function change_on_click(mycheckbox) { cb = document.display_photo.elements[mycheckbox]; if(cb.checked) cb.checked = false; else cb.checked = true; } function popup_flash(url, name) { newwin = window.open(url, '', 'width=720,height=405,scrollbars=no,resizable=0,menubar=no,location=no,status=no'); } function popup_big(url, name) { newwin = window.open(url, '', 'width=850, height=850, scrollbars=1,resizable=1'); } function popup_txt(url, name) { newwin = window.open(url, name, 'width=580, height=600, scrollbars=1,resizable=1'); } function toggle_detail_photo() { status = document.detail_photo.toggle_checkbox.checked; els = document.detail_photo.elements.length; for(i = 1; i < els; i++) { document.detail_photo.elements[i].checked = status; } } function sleep(gap) { var then,now; then=new Date().getTime(); now = then; while((now-then) < gap) { now=new Date().getTime(); } } function preloadImages(img_src) { //v3.0 if(document.image) { img_src=new Image(200,200); img_src.src=img_src; } } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i