function popupper(url,x,y,name,sb,rs,st,lt,tb) { var win = null; var centerwidth=(screen.width/2)-(x/2); if( y == "100%") var centerheight =0 ; else var centerheight=(screen.height/2)-(y/2); var scrollbarstext = 'scrollbars = no,'; var resizabletext = 'resizable = no,'; var statustext = 'status = no,'; var locationtext = 'location = no,'; var toolbartext = 'toolbar = no,'; var features = ''; if (sb == 1){ scrollbarstext = 'scrollbars = yes,' } if (rs == 1){ resizabletext = 'resizable = yes,' } if (st == 1){ statustext = 'status = yes,' } if (lt == 1){ locationtext = 'location = yes,' } if (tb == 1){ toolbartext = 'toolbar = yes,' } features = scrollbarstext+resizabletext+statustext; features = features + locationtext+toolbartext; if( y == "100%") y = screen.height; features = features + 'width = '+x+',height = '+y; features = features + ',top = ' + centerheight; features = features + ',left = ' + centerwidth; win = window.open(url, name, features); } var timer = null ; function blinkText(flag) { var text = document.getElementById("blink_text"); if(text) { if( flag ) { changeClass( text , "text_out" ); } else { changeClass( text , "text_in" ) ; } flag=!flag; timer = window.setTimeout( function(){ blinkText(flag); } , 500 ); } } function changeClass( elem , new_class ) { var type = typeof(elem) ; var el = null; if(type=="string") el = getId( elem ); else el = elem if(el) { el.removeAttribute("class"); var cls = document.createAttribute( "class" ); cls.value = new_class ; el.setAttributeNode( cls ); } }