function showBasicMsg(){var a=new BasicTemplateBox();a.show()}function mytester(){alert("Yo Joe!")}function BasicTemplateBox(){this.init()}BasicTemplateBox.prototype.init=function(){this.setViewableDimensions();this.yOffset=this.getScrollXY();this.mainWidth=winW;this.mainHeight=winH;this.msgwidth=this.determineMsgWidth("300");this.msgheight=this.determineMsgHeight("80");var a=this.exists();if(!a){alert("msgboxAlert object doesn't exist")}this.setMsgBoxDimensions();this.setPositioning("absolute");this.setBorderWidth();searchForDropdownsHIDE()};BasicTemplateBox.prototype.setViewableDimensions=function(){getBrowserViewableDimensions()};BasicTemplateBox.prototype.getScrollXY=function(){return getScrollXY()};BasicTemplateBox.prototype.determineMsgWidth=function(a){return a};BasicTemplateBox.prototype.determineMsgHeight=function(a){};BasicTemplateBox.prototype.exists=function(){return document.getElementById("msgboxAlert")};BasicTemplateBox.prototype.createOnBody=function(){var b=createDefaultMsgBox();var a=document.getElementsByTagName("body").item(0);a.appendChild(b)};BasicTemplateBox.prototype.addCloseX=function(e,f){var c=document.getElementById("closeX");if(c){document.getElementById("closeX").style.display="block";if(f){if(bVer()>=6){document.getElementById("closeX").onclick=Function(f)}else{document.getElementById("closeX").setAttribute("onclick",f)}}else{if(bVer()>=6){document.getElementById("closeX").onclick=Function("closeMsgWindow();")}else{document.getElementById("closeX").setAttribute("onclick","closeMsgWindow()")}}}else{var b=document.getElementById("titleBar");var a=applyInherit(document.createElement("td"),new CustomElement());a.setAtributeOther("id","closeX");a.setAtributeOther("width","100%");a.setAtributeOther("onclick",f);a.style.backgroundColor="#ccc";a.style.cursor="pointer";if(e){var d=document.createTextNode(e);a.appendChild(d)}else{var d=document.createTextNode("X");a.appendChild(d)}b.appendChild(a)}};BasicTemplateBox.prototype.removeCloseX=function(){var b=document.getElementById("titleBar");var c=document.getElementById("closeX");c.style.display="none";b.removeChild(c);var a=document.getElementById("closeX")};BasicTemplateBox.prototype.setMsg=function(a){document.getElementById("msgboxAlertInner").innerHTML=a};BasicTemplateBox.prototype.addFooter=function(a){document.getElementById("msgboxFooter").innerHTML=a};BasicTemplateBox.prototype.setMsgBoxDimensions=function(){document.getElementById("msgboxAlert").style.width=this.msgwidth;document.getElementById("msgboxAlert").style.left=this.mainWidth/3+"px";var a=(150*1)+(this.yOffset*1);document.getElementById("msgboxAlert").style.top=(a)+"px"};BasicTemplateBox.prototype.setAlignment=function(){alert("Doesn't do anything yet")};BasicTemplateBox.prototype.setPositioning=function(a){document.getElementById("msgboxAlert").style.position=a};BasicTemplateBox.prototype.setBorderWidth=function(){document.getElementById("msgboxAlert").style.borderWidth="1"};BasicTemplateBox.prototype.setFireFoxRequirements=function(){document.getElementById("msgboxAlertInner").style.display="block"};BasicTemplateBox.prototype.show=function(){document.getElementById("msgboxAlert").style.display="block"};BasicTemplateBox.prototype.hide=function(){document.getElementById("msgboxAlert").style.display="none"};BasicTemplateBox.prototype.msgNoWrapOn=function(){var a=document.getElementById("msgboxAlertInner");a.setAtributeOther("nowrap","nowrap")};BasicTemplateBox.prototype.borderOff=function(){document.getElementById("msgboxAlert").style.borderWidth="0px"};BasicTemplateBox.prototype.getWidth=function(){return document.getElementById("msgboxAlert").offsetWidth};BasicTemplateBox.prototype.getHeight=function(){return document.getElementById("msgboxAlert").offsetHeight};BasicTemplateBox.prototype.setCloseSymbol=function(a){document.getElementById("closeX").innerHTML=a};BasicTemplateBox.prototype.setCloseFunction=function(b){var a=document.getElementById("closeX").innerHTML.value;this.closeMethod=b;this.removeCloseX();this.addCloseX(a,b);this.borderOff()};BasicTemplateBox.prototype.setYOffset=function(a){this.yOffset=a;this.setMsgBoxDimensions()};