// CodeThatForm /windowed/
// Version: 1.3.6 (10.08.04.1)
// Script must be registered in order to be used on your sites.
// Copyright (c) 2003-2004 by CodeThat.Com
// http://www.codethat.com/

function CWindow(w,h,y,x,title,html,bgc,bgi,css,cssf,scr,sz){var t=this;t._w=w;t._h=h;t._t=y;t._l=x;t._title=title;t._bgc=bgc;t._bgi=bgi;t._css=css;t._cssf=cssf;t._scr=scr;t._sz=sz;t._html=html||'';t._hwnd=null;t._id=CodeThat.newID()};var CWp=CWindow.prototype;CWp.create=function(url,opt){var w,t=this;t.chkWnd();w=t._hwnd=window.open(url||'',t._id||'',opt||"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+(t._scr?'yes':'no')+",resizable="+(t._sz?'yes':'no')+(Def(t._w)?",width="+t._w:'')+(Def(t._h)?",height="+t._h:'')+(Def(t._t)?",top="+t._t:'')+(Def(t._l)?",left="+t._l:''));if(Undef(w))
return 0;if(url)
return 1;t.refresh();
return 1};CWp.mkHTML=function(){var t=this;
return '<html><head><title>'+(t._title||'')+'</title>'+(t._cssf?'<link rel="stylesheet" type="text/css" href="'+t._cssf+'">':'')+'</head><body marginwidth=0 marginheight=0 topmargin=0 leftmargin=0'+(t._bgc?' bgcolor="'+t._bgc+'"':'')+(t._bgi?' background="'+t._bgi+'"':'')+(t._css?' class="'+t._css+'"':'')+'>'+(t._html||'')+'</body></html>'};CWp.chkWnd=function(){if(this._hwnd&&this._hwnd.closed)this._hwnd=null;
return this._hwnd==null};CWp.move=function(x,y){var t=this;t._t=x;t._l=y;t.chkWnd();if(t._hwnd)t._hwnd.moveTo(x,y)};CWp.resize=function(w,h){var t=this;t._w=w;t._h=h;t.chkWnd();if(t._hwnd)t._hwnd.resizeTo(w,h)};CWp.refresh=function(){this.chkWnd();if(this._hwnd){var d=this._hwnd.document;d.open();d.write(this.mkHTML());d.close()}};CWp.HTML=function(html){var t=this;if(Und(html))
return t._html;t._html=html;t.refresh();};CWp.appHTML=function(html){this.HTML(this._html+html)};CWp.bgColor=function(bgc){var t=this;if(Und(bgc))
return t._bgc;t._bgc=bgc;t.chkWnd();if(t._hwnd)if(ua.nn4||ua.oldOpera)t.refresh();else t._hwnd.document.body.style.backgroundColor=bgc};CWp.bgImage=function(bgi){var t=this;if(Und(bgi))
return t._bgi;t._bgi=bgi;t.chkWnd();if(t._hwnd)if(ua.nn4||ua.oldOpera)t.refresh();else t._hwnd.document.body.style.backgroundImage='url('+bgi+')'};CWp.CSS=function(css){var t=this;if(Und(css))
return t._css;t._css=css;t.chkWnd();if(t._hwnd)if(ua.nn4||ua.oldOpera)t.refresh();else t._hwnd.document.body.style.className=css};CWp.CSSFile=function(cssf){var t=this;if(Und(cssf))
return t._cssf;t._cssf=cssf;t.refresh()};CWp.Title=function(s){var t=this;if(Und(s))
return t._title;t._title=s;t.chkWnd();if(t._hwnd)if(ua.nn4||ua.oldOpera)t.refresh();else t._hwnd.document.title=s};CWp.loadURL=function(url){this.chkWnd();if(this._hwnd)this._hwnd.location.href=url};CWp.opened=function(){this.chkWnd();
return Def(this._hwnd)}