function popup(url, name) { newwin = window.open(url, name, 'width=350, height=750, scrollbars=1,resizable=1'); } function popup_book(url, name) { newwin = window.open(url, name, 'width=800, height=600, scrollbars=1,resizable=1'); } 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