/*
*
*
*@class Helper shows a help bar with custom messages
*@author Jarez wu,2006-1-17
*
*/
function Helper(name){
this.name=name;
document.write("<div id='"+this.name+"' class='Helper'></div>");
}
Helper.prototype.showHelp=function(msg){
var html="";
html+="<marquee scrollAmount=2>";
html+=msg;
html+="</marquee>";
var board=$(this.name);
board.innerHTML=html;
board.style.visibility="visible";
}
Helper.prototype.hideHelp=function(){
var board=$(this.name);
board.style.visibility="hidden";
}
Helper.prototype.registerHelpMsg=function(src,msg){
var obj=eval(this.name);
src.attachEvent("onfocus",new Function("var obj=eval(/""+this.name+"/");obj.showHelp(/""+msg+"/")"));
src.attachEvent("onblur",new Function("var obj=eval(/""+this.name+"/");obj.hideHelp()"));
}
function redirect(){
var url=arguments[0];
location.href="<%=request.getContextPath()%>"+url;
}
function popup(){
var url="<%=request.getContextPath()%>"+arguments[0];
var props=arguments[1];
props+="center: yes; help: no; resizable: no; status: no;";
window.showModalDialog(url,window,props);
/*
var url="<%=request.getContextPath()%>"+arguments[0];
var props=arguments[1];
if(!props||props==""){
props="";
}
props+="directories=yes;dependent=no;center=yes; help=no; resizable= no; status= no;";
window.open(url);
*/
}
function popup_modeless(){
var url="<%=request.getContextPath()%>"+arguments[0];
var props=arguments[1];
props+="center=yes; help=no; resizable= no; status= no;";
window.open(url,"",props);
}
/*
*
*
*
*
*Waiting Agend
*
*
*/
function WaitAgend(){
}
WaitAgend.prototype.init=function(){
}