var ModalPopupsDefaults={shadow:true,shadowSize:5,shadowColor:"#333333",backgroundColor:"#CCCCCC",borderColor:"#999999",titleBackColor:"#e3e1e1",titleFontColor:"#CC0114",popupBackColor:"#f1f1f1",popupFontColor:"black",footerBackColor:"#f1f1f1",footerFontColor:"#15428B",okButtonText:"OK",yesButtonText:"Yes",noButtonText:"No",cancelButtonText:"Cancel",fontFamily:"Verdana,Arial",fontSize:"9pt"}
var ModalPopups={Init:function(){},SetDefaults:function(parameters){parameters=parameters||{};ModalPopupsDefaults.shadow=parameters.shadow!=null?parameters.shadow:ModalPopupsDefaults.shadow;ModalPopupsDefaults.shadowSize=parameters.shadowSize!=null?parameters.shadowSize:ModalPopupsDefaults.shadowSize;ModalPopupsDefaults.shadowColor=parameters.shadowColor!=null?parameters.shadowColor:ModalPopupsDefaults.shadowColor;ModalPopupsDefaults.backgroundColor=parameters.backgroundColor!=null?parameters.backgroundColor:ModalPopupsDefaults.backgroundColor;ModalPopupsDefaults.borderColor=parameters.borderColor!=null?parameters.borderColor:ModalPopupsDefaults.borderColor;ModalPopupsDefaults.okButtonText=parameters.okButtonText!=null?parameters.okButtonText:ModalPopupsDefaults.okButtonText;ModalPopupsDefaults.yesButtonText=parameters.yesButtonText!=null?parameters.yesButtonText:ModalPopupsDefaults.yesButtonText;ModalPopupsDefaults.noButtonText=parameters.noButtonText!=null?parameters.noButtonText:ModalPopupsDefaults.noButtonText;ModalPopupsDefaults.cancelButtonText=parameters.cancelButtonText!=null?parameters.cancelButtonText:ModalPopupsDefaults.cancelButtonText;ModalPopupsDefaults.titleBackColor=parameters.titleBackColor!=null?parameters.titleBackColor:ModalPopupsDefaults.titleBackColor;ModalPopupsDefaults.titleFontColor=parameters.titleFontColor!=null?parameters.titleFontColor:ModalPopupsDefaults.titleFontColor;ModalPopupsDefaults.popupBackColor=parameters.popupBackColor!=null?parameters.popupBackColor:ModalPopupsDefaults.popupBackColor;ModalPopupsDefaults.popupFontColor=parameters.popupFontColor!=null?parameters.popupFontColor:ModalPopupsDefaults.popupFontColor;ModalPopupsDefaults.footerBackColor=parameters.footerBackColor!=null?parameters.footerBackColor:ModalPopupsDefaults.footerBackColor;ModalPopupsDefaults.footerFontColor=parameters.footerFontColor!=null?parameters.footerFontColor:ModalPopupsDefaults.footerFontColor;ModalPopupsDefaults.fontFamily=parameters.fontFamily!=null?parameters.fontFamily:ModalPopupsDefaults.fontFamily;ModalPopupsDefaults.fontSize=parameters.fontSize!=null?parameters.fontSize:ModalPopupsDefaults.fontSize;},Alert:function(id,title,message,parameters){parameters=parameters||{};if(!title)title="Alert";parameters.buttons="ok";parameters.okButtonText=parameters.okButtonText!=null?parameters.okButtonText:ModalPopupsDefaults.okButtonText;var myLayers=ModalPopups._createAllLayers(id,title,message,parameters);var oPopupBody=myLayers[4];oPopupBody.innerHTML=message;ModalPopups._styleAllLayers(id,parameters,myLayers);},Confirm:function(id,title,question,parameters){parameters=parameters||{};if(!title)title="Confirm";parameters.buttons="yes,no";parameters.yesButtonText=parameters.yesButtonText!=null?parameters.yesButtonText:ModalPopupsDefaults.yesButtonText;parameters.noButtonText=parameters.noButtonText!=null?parameters.noButtonText:ModalPopupsDefaults.noButtonText;var myLayers=ModalPopups._createAllLayers(id,title,question,parameters);var oPopupBody=myLayers[4];oPopupBody.innerHTML=question;ModalPopups._styleAllLayers(id,parameters,myLayers);},YesNoCancel:function(id,title,question,parameters){parameters=parameters||{};if(!title)title="YesNoCancel";parameters.buttons="yes,no,cancel";parameters.yesButtonText=parameters.yesButtonText!=null?parameters.yesButtonText:ModalPopupsDefaults.yesButtonText;parameters.noButtonText=parameters.noButtonText!=null?parameters.noButtonText:ModalPopupsDefaults.noButtonText;parameters.cancelButtonText=parameters.cancelButtonText!=null?parameters.cancelButtonText:ModalPopupsDefaults.cancelButtonText;var myLayers=ModalPopups._createAllLayers(id,title,question,parameters);var oPopupBody=myLayers[4];oPopupBody.innerHTML=question;ModalPopups._styleAllLayers(id,parameters,myLayers);},Prompt:function(id,title,question,parameters){parameters=parameters||{};if(!title)title="Prompt";parameters.buttons="ok,cancel";parameters.okButtonText=parameters.okButtonText!=null?parameters.okButtonText:"OK";parameters.cancelButtonText=parameters.cancelButtonText!=null?parameters.cancelButtonText:"Cancel";var myLayers=ModalPopups._createAllLayers(id,title,question,parameters);var oPopupBody=myLayers[4];var txtStyle="";if(parameters.width!=null)
txtStyle="width:95%;";var txtHtml=question+"<br/>";txtHtml+="<input type=text id='"+id+"_promptInput' value='' "+"style='border: solid 1px #859DBE; "+txtStyle+"'>";oPopupBody.innerHTML=txtHtml;ModalPopups._styleAllLayers(id,parameters,myLayers);ModalPopupsSupport.findControl(id+"_promptInput").focus();},GetPromptInput:function(id){var promptValue=ModalPopupsSupport.findControl(id+"_promptInput");return promptValue;},GetPromptResult:function(id){var promptValue=ModalPopupsSupport.findControl(id+"_promptInput");return promptValue;},GetCustomControl:function(id){return ModalPopupsSupport.findControl(id);},Indicator:function(id,title,message,parameters){parameters=parameters||{};if(!title)title="Indicator";if(parameters.buttons==null)
parameters.buttons="";var myLayers=ModalPopups._createAllLayers(id,title,message,parameters);var oPopupBody=myLayers[4];oPopupBody.innerHTML=message;ModalPopups._styleAllLayers(id,parameters,myLayers);},Custom:function(id,title,contents,parameters){parameters=parameters||{};if(!title)title="Custom";if(parameters.buttons==null)
{alert("buttons is a required parameter. ie: buttons: 'yes,no' or buttons: 'ok'.\nPossible buttons are yes, no, ok, cancel");return;}
var myLayers=ModalPopups._createAllLayers(id,title,contents,parameters);var oPopupBody=myLayers[4];oPopupBody.innerHTML=contents;ModalPopups._styleAllLayers(id,parameters,myLayers);},Close:function(id){window.onresize=null;window.onscroll=null;document.body.removeChild(ModalPopupsSupport.findControl(id+"_background"));document.body.removeChild(ModalPopupsSupport.findControl(id+"_popup"));document.body.removeChild(ModalPopupsSupport.findControl(id+"_shadow"));},Cancel:function(id){ModalPopups.Close(id);},_zIndex:10000,_createAllLayers:function(id,title,message,parameters){var oBackground=ModalPopupsSupport.makeLayer(id+'_background',true,null);var oPopup=ModalPopupsSupport.makeLayer(id+'_popup',true,null);var oShadow=ModalPopupsSupport.makeLayer(id+'_shadow',true,null);var oPopupTitle=ModalPopupsSupport.makeLayer(id+'_popupTitle',true,oPopup);var oPopupBody=ModalPopupsSupport.makeLayer(id+'_popupBody',true,oPopup);var oPopupFooter=ModalPopupsSupport.makeLayer(id+'_popupFooter',true,oPopup);var okButtonText=parameters.okButtonText!=null?parameters.okButtonText:ModalPopupsDefaults.okButtonText;var yesButtonText=parameters.yesButtonText!=null?parameters.yesButtonText:ModalPopupsDefaults.yesButtonText;var noButtonText=parameters.noButtonText!=null?parameters.noButtonText:ModalPopupsDefaults.noButtonText;var cancelButtonText=parameters.cancelButtonText!=null?parameters.cancelButtonText:ModalPopupsDefaults.cancelButtonText;var onOk=parameters.onOk!=null?parameters.onOk:"ModalPopups.Close(\""+id+"\");";var onYes=parameters.onYes!=null?parameters.onYes:"ModalPopups.Close(\""+id+"\");";var onNo=parameters.onNo!=null?parameters.onNo:"ModalPopups.Close(\""+id+"\");";var onCancel=parameters.onCancel!=null?parameters.onCancel:"ModalPopups.Close(\""+id+"\");";oPopupTitle.innerHTML="<table cellpadding='0' cellspacing='0' style='border: 0;' height='100%'>"+"<tr><td valign='middle'><b>"+title+"</b></td></tr>"+"</table>";oPopupFooter.innerHTML="";parameters.fontFamily=parameters.fontFamily!=null?parameters.fontFamily:ModalPopupsDefaults.fontFamily;var bt=parameters.buttons.split(',');for(x in bt){if(bt[x]=="ok")
oPopupFooter.innerHTML+="<input name='"+id+"_okButton' id='"+id+"_okButton' type=button value='"+okButtonText+"' style='font-family:Verdana,Arial; font-size:8pt; border: solid 1px #859DBE; background-color: white; width:75px; height:20px; margin-right: 5px; margin-left: 5px;' onclick='"+onOk+"'/>";if(bt[x]=="yes")
oPopupFooter.innerHTML+="<input name='"+id+"_yesButton' id='"+id+"_yesButton' type=button value='"+yesButtonText+"' style='font-family:Verdana,Arial; font-size:8pt; border: solid 1px #859DBE; background-color: white; width:75px; height:20px; margin-right: 5px; margin-left: 5px;' onclick='"+onYes+"'/>";if(bt[x]=="no")
oPopupFooter.innerHTML+="<input name='"+id+"_noButton' id='"+id+"_noButton' type=button value='"+noButtonText+"' style='font-family:Verdana,Arial; font-size:8pt; border: solid 1px #859DBE; background-color: white; width:75px; height:20px; margin-right: 5px; margin-left: 5px;' onclick='"+onNo+"'/>";if(bt[x]=="cancel")
oPopupFooter.innerHTML+="<input name='"+id+"_cancelButton' id='"+id+"_cancelButton' type=button value='"+cancelButtonText+"' style='font-family:Verdana,Arial; font-size:8pt; border: solid 1px #859DBE; background-color: white; width:75px; height:20px; margin-right: 5px; margin-left: 5px;' onclick='"+onCancel+"'/>";}
var allLayers=new Array(oBackground,oPopup,oShadow,oPopupTitle,oPopupBody,oPopupFooter);if(parameters.autoClose!=null)
setTimeout('ModalPopups.Close(\"'+id+'\");',parameters.autoClose);return allLayers;},_styleAllLayers:function(id,parameters,allLayers){var myLayers=allLayers;var oBackground=myLayers[0];var oPopup=myLayers[1];var oShadow=myLayers[2];var oPopupTitle=myLayers[3];var oPopupBody=myLayers[4];var oPopupFooter=myLayers[5];ModalPopups._zIndex+=3;var zIndex=ModalPopups._zIndex;parameters.borderColor=parameters.borderColor!=null?parameters.borderColor:ModalPopupsDefaults.borderColor;var cssBackground="display:inline; position:absolute; z-index: "+(zIndex)+"; left:0px; top:0px; width:100%; height:100%; filter:alpha(opacity=70); opacity:0.7;";if(ModalPopupsSupport.isOlderIE()){var viewport=ModalPopupsSupport.getViewportDimensions();cssBackground="display:inline; position:absolute; z-index: 10; left:0px; top:0px; width:"+viewport.width+"px; height:"+viewport.height+"px; filter:alpha(opacity=70); opacity:0.7; overflow:hidden;";}
var cssShadow="display:inline; position:absolute; z-index: "+(zIndex+1)+";";var cssPopup="display:inline; position:absolute; z-index: "+(zIndex+2)+"; background-color:white; color:black; border:solid 1px "+parameters.borderColor+"; padding:1px;";parameters.backgroundColor=parameters.backgroundColor!=null?parameters.backgroundColor:ModalPopupsDefaults.backgroundColor;cssBackground+=" background-color:"+parameters.backgroundColor+";";parameters.fontFamily=parameters.fontFamily!=null?parameters.fontFamily:ModalPopupsDefaults.fontFamily;parameters.fontSize=parameters.fontSize!=null?parameters.fontSize:ModalPopupsDefaults.fontSize;var cssPopupTitle="position: absolute; font-family:"+parameters.fontFamily+"; font-size:"+parameters.fontSize+"; padding: 5px; text-align:left;";var cssPopupBody="position: absolute; font-family:"+parameters.fontFamily+"; font-size:"+parameters.fontSize+"; padding: 5px; text-align:left;";var cssPopupFooter="position: absolute; font-family:"+parameters.fontFamily+"; font-size:"+parameters.fontSize+"; padding: 5px; text-align:center;";if(ModalPopupsSupport.isIE){oPopupTitle.style.cssText=cssPopupTitle;oPopupBody.style.cssText=cssPopupBody;oPopupFooter.style.cssText=cssPopupFooter;}
else{oPopupTitle.setAttribute("style",cssPopupTitle);oPopupBody.setAttribute("style",cssPopupBody);oPopupFooter.setAttribute("style",cssPopupFooter);}
parameters.titleBackColor=parameters.titleBackColor!=null?parameters.titleBackColor:ModalPopupsDefaults.titleBackColor;parameters.titleFontColor=parameters.titleFontColor!=null?parameters.titleFontColor:ModalPopupsDefaults.titleFontColor;parameters.popupBackColor=parameters.popupBackColor!=null?parameters.popupBackColor:ModalPopupsDefaults.popupBackColor;parameters.popupFontColor=parameters.popupFontColor!=null?parameters.popupFontColor:ModalPopupsDefaults.popupFontColor;parameters.footerBackColor=parameters.footerBackColor!=null?parameters.footerBackColor:ModalPopupsDefaults.footerBackColor;parameters.footerFontColor=parameters.footerFontColor!=null?parameters.footerFontColor:ModalPopupsDefaults.footerFontColor;cssPopupTitle+=" background-color:"+parameters.titleBackColor+";";cssPopupTitle+=" color:"+parameters.titleFontColor+";";cssPopupBody+=" background-color:"+parameters.popupBackColor+";";cssPopupBody+=" color:"+parameters.popupFontColor+";";cssPopupFooter+=" background-color:"+parameters.footerBackColor+";";cssPopupFooter+=" color:"+parameters.footerFontColor+";";var calcMaxWidth=0;if(ModalPopupsSupport.getLayerWidth(oPopupTitle.id)>calcMaxWidth)
calcMaxWidth=ModalPopupsSupport.getLayerWidth(oPopupTitle.id);if(ModalPopupsSupport.getLayerWidth(oPopupBody.id)>calcMaxWidth)
calcMaxWidth=ModalPopupsSupport.getLayerWidth(oPopupBody.id);if(ModalPopupsSupport.getLayerWidth(oPopupFooter.id)>calcMaxWidth)
calcMaxWidth=ModalPopupsSupport.getLayerWidth(oPopupFooter.id);var calcTotalHeight=ModalPopupsSupport.getLayerHeight(oPopupTitle.id)+ModalPopupsSupport.getLayerHeight(oPopupBody.id)+ModalPopupsSupport.getLayerHeight(oPopupFooter.id);parameters.width=parameters.width!=null?parameters.width:(calcMaxWidth+4);parameters.height=parameters.height!=null?parameters.height:calcTotalHeight;var newBodyHeight=ModalPopupsSupport.getLayerHeight(oPopupBody.id)
if(parameters.height>calcTotalHeight){newBodyHeight=parameters.height-ModalPopupsSupport.getLayerHeight(oPopupTitle.id)-ModalPopupsSupport.getLayerHeight(oPopupFooter.id);cssPopupBody+=" height:"+newBodyHeight+"px;";calcTotalHeight=ModalPopupsSupport.getLayerHeight(oPopupTitle.id)+newBodyHeight+ModalPopupsSupport.getLayerHeight(oPopupFooter.id);}
cssPopupTitle+=" top:1px;";cssPopupBody+=" top:"+ModalPopupsSupport.getLayerHeight(oPopupTitle.id)+"px;";cssPopupFooter+=" top:"+(ModalPopupsSupport.getLayerHeight(oPopupTitle.id)+(newBodyHeight))+"px;";cssPopupTitle+=" width:"+(parameters.width-10)+"px;";cssPopupBody+=" width:"+(parameters.width-10)+"px;";cssPopupFooter+=" width:"+(parameters.width-10)+"px;";var frameWidth=ModalPopupsSupport.getFrameWidth();var frameHeight=ModalPopupsSupport.getFrameHeight();if(parameters.height<calcTotalHeight)
parameters.height=calcTotalHeight;parameters.top=parameters.top!=null?parameters.top:((frameHeight/2)-(parameters.height/2));parameters.left=parameters.left!=null?parameters.left:((frameWidth/2)-(parameters.width/2));cssPopupTitle+=" left:1px;";cssPopupBody+=" left:1px;";cssPopupFooter+=" left:1px;";if(parameters.width)
cssPopup+=" width:"+parameters.width+"px;";else
cssPopup+=" width:"+parameters.maxWidth+"px;";if(parameters.height)
cssPopup+=" height:"+(parameters.height-1)+"px;";else
cssPopup+=" height:"+(calcTotalHeight-1)+"px;";if(ModalPopupsSupport.isIE){oPopupTitle.style.cssText=cssPopupTitle;oPopupBody.style.cssText=cssPopupBody;oPopupFooter.style.cssText=cssPopupFooter;}
else{oPopupTitle.setAttribute("style",cssPopupTitle);oPopupBody.setAttribute("style",cssPopupBody);oPopupFooter.setAttribute("style",cssPopupFooter);}
parameters.shadow=parameters.shadow!=null?parameters.shadow:ModalPopupsDefaults.shadow;parameters.shadowSize=parameters.shadowSize!=null?parameters.shadowSize:ModalPopupsDefaults.shadowSize;if(parameters.shadow){parameters.shadowSize=parameters.shadowSize!=null?parameters.shadowSize:ModalPopupsDefaults.shadowSize;parameters.shadowColor=parameters.shadowColor!=null?parameters.shadowColor:ModalPopupsDefaults.shadowColor;cssShadow+="background-color:"+parameters.shadowColor+";";if(parameters.width)
cssShadow+=" width:"+parameters.width+"px;";else
cssShadow+=" width:"+maxWidth+"px;";if(parameters.height)
cssShadow+=" height:"+(parameters.height-1)+"px;";else
cssShadow+=" height:"+(calcTotalHeight)+"px;";}
else{cssShadow+=" display:none;";}
if(ModalPopupsSupport.isIE){oPopup.style.cssText=cssPopup;oShadow.style.cssText=cssShadow;oBackground.style.cssText=cssBackground;}
else{oPopup.setAttribute("style",cssPopup);oShadow.setAttribute("style",cssShadow);oBackground.setAttribute("style",cssBackground);}
if(!ModalPopupsSupport.isOlderIE()){ModalPopupsSupport.centerElement(document.getElementById(id+'_background'),0,true);}
else{var viewport=ModalPopupsSupport.getViewportDimensions();oBackground.innerHTML="<div><iframe style='z-index:-1; position:absolute; top:0;left:0 display:none; display/**/:block; position:absolute; filter:mask(); width:"+viewport.width+"px; height:"+viewport.height+"px;' id='corr_bug_ie' src='../common/imgLay/spinner.gif'></iframe></div>";}
ModalPopupsSupport.centerElement(document.getElementById(id+'_popup'),0,false);if(parameters.shadow)
ModalPopupsSupport.centerElement(document.getElementById(id+'_shadow'),parameters.shadowSize,false);parameters.loadTextFile=parameters.loadTextFile!=null?parameters.loadTextFile:"";if(parameters.loadTextFile!="")
ModalPopups._loadTextFile(id,parameters,allLayers,parameters.loadTextFile);window.onresize=function(){ModalPopupsSupport.centerElement(document.getElementById(id+'_background'),0,true);ModalPopupsSupport.centerElement(document.getElementById(id+'_popup'),0,false);if(parameters.shadow){ModalPopupsSupport.centerElement(document.getElementById(id+'_shadow'),parameters.shadowSize,false);}}
window.onscroll=function(){ModalPopupsSupport.centerElement(document.getElementById(id+'_background'),0,true);ModalPopupsSupport.centerElement(document.getElementById(id+'_popup'),0,false);if(parameters.shadow){ModalPopupsSupport.centerElement(document.getElementById(id+'_shadow'),parameters.shadowSize,false);}}},_loadTextFile:function(id,parameters,allLayers,filename)
{var objXml=ModalPopupsSupport.getXmlHttp();objXml.open("GET",filename,true);objXml.onreadystatechange=function()
{if(objXml.readyState==4)
{var txt=objXml.responseText.replace("\r\n","<br>").replace("\n\r","<br>").replace("\n","<br>").replace("\r","<br>");var html="<div style='overflow-y: scroll; position:absolute; "+"top:5px; left:5px; height:"+(parameters.height-65)+"px; "+"width:"+(parameters.width-10)+"px;'>";html+=txt;html+="</div>";ModalPopups.GetCustomControl(id+"_popupBody").innerHTML=html;parameters.loadTextFile="";ModalPopups._styleAllLayers(id,parameters,allLayers);}}
objXml.send(null);}};var ModalPopupsSupport={isIE:function(){return(window.ActiveXObject)?true:false;},isOlderIE:function(){var ver=-1;if(navigator.appName=='Microsoft Internet Explorer'){var ua=navigator.userAgent;var re=new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");if(re.exec(ua)!=null){ver=parseFloat(RegExp.$1);}}
if(ver>-1&&ver<7.0){return true;}else{return false;}},makeLayer:function(id,layerVisible,layerParent){var container=document.createElement("div");container.id=id;if(layerParent)
layerParent.appendChild(container);else
document.body.appendChild(container);return container;},deleteLayer:function(id){var del=findLayer(id);if(del)
document.body.removeChild(del);},findLayer:function(id){return document.all?document.all[id]:document.getElementById(id);},findControl:function(id,parent){if(parent==null)
{return document.all?document.all[id]:document.getElementById(id);}
else
{return document.all?document.all[id]:document.getElementById(id);}},getLayerHeight:function(id){if(document.all){gh=document.getElementById(id).offsetHeight;}
else{gh=document.getElementById(id).offsetHeight;}
return gh;},getLayerWidth:function(id){gw=document.getElementById(id).offsetWidth;return gw;},getViewportDimensions:function(){var intH=0,intW=0;if(self.innerHeight){intH=window.innerHeight;intW=window.innerWidth;}
else{if(document.documentElement&&document.documentElement.clientHeight){intH=document.documentElement.clientHeight;intW=document.documentElement.clientWidth;}
else{if(document.body){intH=document.body.clientHeight;intW=document.body.clientWidth;}}}
return{height:parseInt(intH,10),width:parseInt(intW,10)};},getScrollXY:function(){var scrOfX=0,scrOfY=0;if(typeof(window.pageYOffset)=='number'){scrOfY=window.pageYOffset;scrOfX=window.pageXOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;scrOfX=document.body.scrollLeft;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;scrOfX=document.documentElement.scrollLeft;}
return[scrOfX,scrOfY];},centerElement:function(elem,add,noleft){var viewport=ModalPopupsSupport.getViewportDimensions();var left=(viewport.width==0)?50:parseInt((viewport.width-elem.offsetWidth)/2,10);var top=(viewport.height==0)?50:parseInt((viewport.height-elem.offsetHeight)/2,10);var scroll=ModalPopupsSupport.getScrollXY();if(!noleft){elem.style.left=(left+add)+'px';}
elem.style.top=(top+add+scroll[1])+'px';viewport,left,top,elem=null;},readFile:function(filename,intoElement){var xmlHttp=getXmlHttp();var file=filename+"?r="+Math.random();xmlHttp.open("GET",file,true);xmlHttp.onreadystatechange=function()
{if(xmlHttp.readyState==4)
{intoElement.innerHTML=xmlHttp.responseText;}}
xmlHttp.send(null);},getFrameWidth:function(){var frameWidth=document.documentElement.clientWidth;if(self.innerWidth)
{frameWidth=self.innerWidth;}
else if(document.documentElement&&document.documentElement.clientWidth)
{frameWidth=document.documentElement.clientWidth;}
else if(document.body)
{frameWidth=document.body.clientWidth;}
else return;return frameWidth;},getFrameHeight:function(){var frameHeight=document.documentElement.clientHeight;if(self.innerWidth)
{frameHeight=self.innerHeight;}
else if(document.documentElement&&document.documentElement.clientWidth)
{frameHeight=document.documentElement.clientHeight;}
else if(document.body)
{frameHeight=document.body.clientHeight;}
else return;return frameHeight;},getXmlHttp:function()
{var xmlHttp;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e)
{alert("Your browser does not support AJAX!");return false;}}}
return xmlHttp;}};


