144 @msg 内容
145 */
146 Popmsg : function PopIt(title,msg)
147 {
148 var popup = window.open('','popDialog','height=500,width=400,scrollbars=yes');
149 popup.document.write('<html><title>'+title+'</title><style>body{margin:10px;font:13px Arial;}span{text-line:20px;}</style><body><span style='font:14px arial;'>'+msg + '</span></body></html>');
150 popup.document.close();
151 }
152};
153
154
155/// 对象操作
156var Sams_object = {
157
158 /**//* 创建一个DIV对象
159 @ID 要创建的对象ID
160 @ClassName 创建对象的Class
161 @SetValue 设置该对象值
162 @ToDiv 将对象追加到指定的对象,如指定的对象不存在,则追加在Body的后面
163 返回 创建后的对象
164 */
165 CreateDiv : function (ID,ClassName,SetValue,ToDiv){
166 var creatediv = document.createElement('div');
167 if(ID != null) creatediv.id = ID;
168 creatediv.style.position = 'absolute';
169 if(ClassName != null) creatediv.className = ClassName;
170 if(this.Get(ToDiv))
171 {
172 this.Get(ToDiv).appendChild(creatediv);
173 }
174 else
175 {
176 document.getElementsByTagName('body')[0].appendChild(creatediv);
177 }
178 this.SetValue(ID,SetValue);










