
/* file ./shared/breox/js/core/helper/ajax/base.js*/function coreHelperAjaxBase(bChildCall)
{var oThisReference=this;this.bContinue=true;if("undefined"===typeof(bChildCall)||true===bChildCall)
{this.oChildCall=new coreHelperAjaxBase(false);}
this.oHttpRequest=null;this.aJavaScript=new Array();if("undefined"!==typeof(window.XMLHttpRequest))
{this.oHttpRequest=new XMLHttpRequest();if("undefined"!==typeof(this.oHttpRequest.overrideMimeType))
{this.oHttpRequest.overrideMimeType('text/xml');}}
else if("undefined"!==typeof(window.ActiveXObject))
{try
{this.oHttpRequest=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{this.oHttpRequest=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e)
{}}}
this.GET='GET';this.POST='POST';this.XML='XML';this.TEXT='TEXT';this.OBJECT='OBJECT';this.sLastUrl=null;this.iMaxUrlLength=2000;this.eMethod=this.GET;this.eResponseType=this.TEXT;this.bUseXRequestedWithHeader=true;this.bSynchroniousCall=true;this.bUpdateMaintenanceCheck=true;this.bShowErrorMessage=true;this.bShowErrorMessageInStatusBar=false;this.bCallbackFunctionExecuted=false;this.bCustomErrorFunctionExecuted=false;this.bPrintAddedCssJs=false;this.oLoadingImage=null;this.oImageContainer=null;this.oImg=null;this.oTextContainer=null;this.sLoadingImage="http://images.daisycon.net/register/breox/img/ajax-loader.gif";this.sErrorImage="http://images.daisycon.net/register/breox/img/ajax-error.png";this.sLoadingText="Loading";this.sErrorText="Error";this.sFormData="";this.oHeadElement=null;this.aHeadJavascripts=null;this.aHeadCssfiles=new Array();this.aHeadMetaTags=new Array();this.translate=function(sString)
{if("function"===typeof(translate))
{return translate(sString);}
return sString;};this.sLoadingText=this.translate(this.sLoadingText);this.aStatusCategories={1:"Informational",2:"Successful",3:"Redirection",4:"Client Error",5:"Server Error","x":"Dummy"};this.aStateDescriptions={"100":"Continue","101":"Switching Protocols","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"NNo Content","205":"Reset Content","206":"Partial Content","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","306":"Unused","307":"Temporary Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"URI Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Request Entity Too Large","414":"Request-URI Too Long","415":"Unsupported Media Type","416":"Requested Range Not Satisfiable","417":"Expectation Failed","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","999":"Dummy"};if("function"===typeof(translate))
{for(var sErrorCode in this.aStatusCategories)
{this.aStatusCategories[sErrorCode]=translate(this.aStatusCategories[sErrorCode]);}
for(var sErrorCode in this.aStateDescriptions)
{this.aStateDescriptions[sErrorCode]=translate(this.aStateDescriptions[sErrorCode]);}}
this.onReadyStateChange=function()
{switch(this.oHttpRequest.readyState)
{case 4:{switch(this.oHttpRequest.status)
{case 200:{if(true===this.bUpdateMaintenanceCheck&&"object"===typeof(document.oCoreMaintenanceCheck))
{try
{document.oCoreMaintenanceCheck.resetCheckCount();}
catch(e)
{}}
var mReturn=null;switch(this.eResponseType)
{case this.XML:{mReturn=this.oHttpRequest.responseXML;}
break;case this.TEXT:{mReturn=this.oHttpRequest.responseText;}
break;case this.OBJECT:default:{mReturn=this.oHttpRequest;}}
this.loadHeadScripts();var sScriptReturn=this.oHttpRequest.responseText;var sLowerTextString=this.oHttpRequest.responseText.toLowerCase();var iStartPosition=sLowerTextString.indexOf('<link');while(-1!==iStartPosition)
{var iEndPosition=0;var bHeadScript=false;var iArrowPosition=sScriptReturn.substr(iStartPosition).indexOf('>');var sStartTag=sScriptReturn.substr(iStartPosition,iArrowPosition);if(-1!==sStartTag.indexOf('href'))
{var sCloseChar=sStartTag.substr(sStartTag.indexOf('href')+5,1);bHeadScript=true;var sScriptUrl=sStartTag.substr(sStartTag.indexOf('href')+6,sStartTag.substr(sStartTag.indexOf('href')+6).indexOf(sCloseChar));}
iEndPosition=sLowerTextString.indexOf('</link>');var iEndOffset=7;if(-1===iEndPosition)
{iEndPosition=sLowerTextString.indexOf('/>');iEndOffset=2;}
if(-1===iEndPosition)
{iStartPosition=-1;}
else
{sScriptReturn=sScriptReturn.substr(iEndPosition+iEndOffset);sLowerTextString=sScriptReturn.toLowerCase();iStartPosition=sLowerTextString.indexOf('<link');if(true===bHeadScript)
{if("undefined"===typeof(this.aHeadCssfiles[sScriptUrl])&&null!==this.oHeadElement&&false!==this.oHeadElement)
{if(true===this.bPrintAddedCssJs)
{oDiv=document.createElement("div");oDiv.innerHTML=sScriptUrl;document.body.appendChild(oDiv);}
var oScript=document.createElement('link');oScript.setAttribute("rel","stylesheet");oScript.setAttribute("type","text/css");oScript.setAttribute("href",sScriptUrl);this.oHeadElement.appendChild(oScript);this.aHeadCssfiles[sScriptUrl]=sScriptUrl;}}}}
var sLowerTextString=this.oHttpRequest.responseText.toLowerCase();var iStartPosition=sLowerTextString.indexOf('<meta');while(-1!==iStartPosition)
{var iEndPosition=0;var bHeadScript=false;var iArrowPosition=sScriptReturn.substr(iStartPosition).indexOf('>');var sStartTag=sScriptReturn.substr(iStartPosition,iArrowPosition);if(-1!==sStartTag.indexOf('name'))
{var sCloseChar=sStartTag.substr(sStartTag.indexOf('name')+5,1);bHeadScript=true;var sNameValue=sStartTag.substr(sStartTag.indexOf('name')+6,sStartTag.substr(sStartTag.indexOf('name')+6).indexOf(sCloseChar));var sContentValue="";}
if(-1!==sStartTag.indexOf('content'))
{var sCloseChar=sStartTag.substr(sStartTag.indexOf('content')+8,1);sContentValue=sStartTag.substr(sStartTag.indexOf('content')+9,sStartTag.substr(sStartTag.indexOf('content')+9).indexOf(sCloseChar));}
iEndPosition=sLowerTextString.indexOf('</meta>');var iEndOffset=7;if(-1===iEndPosition)
{iEndPosition=sLowerTextString.indexOf('/>');iEndOffset=2;}
if(-1===iEndPosition)
{iStartPosition=-1;}
else
{sScriptReturn=sScriptReturn.substr(iEndPosition+iEndOffset);sLowerTextString=sScriptReturn.toLowerCase();iStartPosition=sLowerTextString.indexOf('<meta');if(true===bHeadScript)
{if("undefined"===typeof(this.aHeadMetaTags[sNameValue])&&null!==this.oHeadElement&&false!==this.oHeadElement)
{var oScript=document.createElement('meta');oScript.setAttribute("name",sNameValue);oScript.setAttribute("content",sContentValue);this.oHeadElement.appendChild(oScript);this.aHeadMetaTags[sNameValue]=sNameValue;}}}}
var sScriptReturn=this.oHttpRequest.responseText;this.aJavaScript=new Array();var sLowerTextString=this.oHttpRequest.responseText.toLowerCase();var iStartPosition=sLowerTextString.indexOf('<script');while(-1!==iStartPosition)
{var sJavascript="";var iEndPosition=0;var bHeadScript=false;var iArrowPosition=sScriptReturn.substr(iStartPosition).indexOf('>');var sStartTag=sScriptReturn.substr(iStartPosition,iArrowPosition);if(-1!==sStartTag.indexOf('src'))
{var sCloseChar=sStartTag.substr(sStartTag.indexOf('src')+4,1);bHeadScript=true;var sScriptUrl=sStartTag.substr(sStartTag.indexOf('src')+5,sStartTag.substr(sStartTag.indexOf('src')+5).indexOf(sCloseChar));}
iEndPosition=sLowerTextString.indexOf('</script>');if(-1===iEndPosition)
{iStartPosition=-1;}
else
{var sJavaScript=sScriptReturn.substr(iStartPosition,iEndPosition-iStartPosition);var iFirstArrow=sJavaScript.indexOf(">");sJavaScript=sJavaScript.substr(iFirstArrow+1);sScriptReturn=sScriptReturn.substr(iEndPosition+9);sLowerTextString=sScriptReturn.toLowerCase();iStartPosition=sLowerTextString.indexOf('<script');if(true===bHeadScript)
{if("undefined"===typeof(this.aHeadJavascripts[sScriptUrl])&&null!==this.oHeadElement&&false!==this.oHeadElement)
{if(true===this.bPrintAddedCssJs)
{oDiv=document.createElement("div");oDiv.innerHTML=sScriptUrl;document.body.appendChild(oDiv);}
var oScript=document.createElement('script');oScript.setAttribute("type","text/javascript");oScript.setAttribute("src",sScriptUrl);this.oHeadElement.appendChild(oScript);if("undefined"!==typeof(oScript.readyState))
{var pCount=0;while(oScript.readyState!=="loaded"&&pCount<10)
{sleep(50);pCount++;}}
this.aHeadJavascripts[sScriptUrl]=sScriptUrl;}}
else
{this.aJavaScript[this.aJavaScript.length]=sJavaScript;}}}
if("function"===typeof(this.mCallbackFunction))
{try
{if(false===this.bCallbackFunctionExecuted)
{this.mCallbackFunction(mReturn);this.bCallbackFunctionExecuted=true;}}
catch(e)
{}}
else
{try
{if("function"===typeof(eval(this.mCallbackFunction)))
{if(false===this.bCallbackFunctionExecuted)
{this.bCallbackFunctionExecuted=true;eval(this.mCallbackFunction+'(mReturn)');}}}
catch(e)
{}}
if(null===this.mCallbackFunction)
{return mReturn;}}
break;case 500:case 404:case 401:case 403:case 408:{if(null!==this.oImg)
{this.oImg.src=this.sErrorImage;this.oTextContainer.innerHTML=this.translate(this.aStateDescriptions[this.oHttpRequest.status]);}
if("function"===typeof(this.mCustomErrorFunction))
{try
{if(false===this.bCustomErrorFunctionExecuted)
{this.mCustomErrorFunction(this.oHttpRequest.status);this.bCustomErrorFunctionExecuted=true;}}
catch(e)
{}}
else
{try
{if("function"===typeof(eval(this.mCustomErrorFunction)))
{if(false===this.bCustomErrorFunctionExecuted)
{this.bCustomErrorFunctionExecuted=true;eval(this.mCustomErrorFunction+'(this.oHttpRequest.status)');}}}
catch(e)
{}}
if(null===this.mCustomErrorFunction)
{alert(this.getMessage(this.oHttpRequest.status));}}
break;default:{}
break;}}
break;default:{}
break;}
return true;}
this.loadHeadScripts=function()
{if(null===this.oHeadElement)
{this.oHeadElement=document.getElementsByTagName("head");if("undefined"!==typeof(this.oHeadElement[0]))
{this.oHeadElement=this.oHeadElement[0];}
else
{this.oHeadElement=false;}}
if(false!==this.oHeadElement&&null===this.aHeadJavascripts)
{this.aHeadJavascripts=new Array();if('undefined'!==typeof(document.aCoreCombinerScripts))
{if('undefined'!==typeof(document.aCoreCombinerScripts['css']))
{for(var pCount=0;pCount<document.aCoreCombinerScripts['css'].length;pCount++)
{this.aHeadCssfiles[document.aCoreCombinerScripts['css'][pCount]]=document.aCoreCombinerScripts['css'][pCount];}}
if('undefined'!==typeof(document.aCoreCombinerScripts['js']))
{for(var pCount=0;pCount<document.aCoreCombinerScripts['js'].length;pCount++)
{this.aHeadJavascripts[document.aCoreCombinerScripts['js'][pCount]]=document.aCoreCombinerScripts['js'][pCount];}}
if('undefined'!==typeof(document.aCoreCombinerScripts['meta']))
{for(var pCount=0;pCount<document.aCoreCombinerScripts['meta'].length;pCount++)
{this.aHeadMetaTags[document.aCoreCombinerScripts['meta'][pCount]]=document.aCoreCombinerScripts['meta'][pCount];}}}
for(var iChildPointer in this.oHeadElement.childNodes)
{if("indexOf"!==iChildPointer)
{var oChildNode=this.oHeadElement.childNodes[iChildPointer];switch(oChildNode.tagName)
{case'LINK':{this.aHeadCssfiles[oChildNode.href]=oChildNode.href;}
break;case'META':{this.aHeadMetaTags[oChildNode.name]=oChildNode.name}
break;case'SCRIPT':{if(""!==oChildNode.src)
{this.aHeadJavascripts[oChildNode.getAttribute("src")]=oChildNode.getAttribute("src");}}
break;default:{}
break;}}}}};this.cancelRequest=function()
{if(0!=this.oHttpRequest.readyState)
{this.oHttpRequest.abort();}}
this.httpRequest=function(sUrl,mCallbackFunction,mCustomErrorFunction)
{this.cancelRequest();if(null!==this.oHttpRequest)
{this.oHttpRequest.onreadystatechange=function()
{return oThisReference.onReadyStateChange();}}
if(null===this.oHttpRequest||"undefined"===typeof(sUrl))
{return;}
if("undefined"===typeof(mCallbackFunction))
{mCallbackFunction=null;}
if("undefined"===typeof(mCustomErrorFunction))
{mCustomErrorFunction=null;}
this.sLastUrl=sUrl;this.mCallbackFunction=mCallbackFunction;this.mCustomErrorFunction=mCustomErrorFunction;if(sUrl.length>this.iMaxUrlLength)
{this.eMethod=this.POST;}
var sData=null;if(this.eMethod===this.POST)
{if(""===this.sFormData)
{var aData=sUrl.split("?");sUrl=aData[0];var iSplitCount=aData.length;sData="";for(var pCount=1;pCount<iSplitCount;pCount++)
{if(sData!=="")
{sData+="&";}
sData+=aData[pCount];}}
else
{sData=this.sFormData;}}
this.bCallbackFunctionExecuted=false;this.bCustomErrorFunctionExecuted=false;this.oHttpRequest.open(this.eMethod,sUrl,!this.bSynchroniousCall);if(true===this.bUseXRequestedWithHeader)
{this.oHttpRequest.setRequestHeader("X-Requested-With","XMLHttpRequest");}
switch(this.eMethod)
{case this.POST:{this.oHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");}
break;default:case this.GET:{}
break;}
this.oHttpRequest.send(sData);if(true===this.bSynchroniousCall&&false===this.bCallbackFunctionExecuted)
{return this.onReadyStateChange();}
return true;}
this.setShowErrorMessage=function(bShow)
{if("undefined"===typeof(bShow)||true!==bShow)
{bShow=false;}
this.bShowErrorMessage=bShow;}
this.setShowErrorMessageInStatusBar=function(bShow)
{if("undefined"===typeof(bShow)||true!==bShow)
{bShow=false;}
this.bShowErrorMessageInStatusBar=bShow;}
this.getLastState=function()
{return this.getMessage(this.oHttpRequest.status,this.sLastUrl,this.bShowErrorMessage);}
this.getMessage=function(iStatus,sUrl,bForcedShow)
{if("undefined"===typeof(iStatus))
{iStatus=false;}
if("undefined"===typeof(sUrl))
{sUrl="";}
if("undefined"===typeof(bForcedShow))
{bForcedShow=false;}
if(true===bForcedShow)
{if(false===this.bShowErrorMessageInStatusBar||true===bForcedShow)
{var sErrorMessage="coreAjax error\n\nThere was a problem with the request.\n";sErrorMessage+="Category: ";sErrorMessage+=this.aStatusCategories[floor(iStatus/100)];sErrorMessage+="\nCode: "+iStatus+"\n";sErrorMessage+="Description: ";if("undefined"!==typeof(this.aStateDescriptions[iStatus.toString()]))
{sErrorMessage+=this.aStateDescriptions[iStatus.toString()];}
else
{sErrorMessage+="Unknow";}
sErrorMessage+="\nURI: "+sUrl;alert(sErrorMessage);}
else
{window.status="coreAjax error: "+iStatus;if(this.aStateDescriptions[iStatus.toString()])
{window.status+=" - "+this.aStateDescriptions[iStatus.toString()];}}}
return iStatus;}
this.setMethod=function(eMethod)
{if("undefined"===typeof(eMethod))
{eMethod=this.POST;}
switch(eMethod)
{case this.GET:{this.eMethod=eMethod;}
break;case this.POST:default:{this.eMethod=this.POST;}
break;}}
this.setResponseType=function(eResponseType)
{if("undefined"===typeof(eResponseType))
{eResponseType=this.POST;}
switch(eResponseType)
{case this.XML:{this.eResponseType=eResponseType;}
break;case this.TEXT:default:{this.eResponseType=this.TEXT;}
break;}}
this.setFormData=function(mData)
{if("undefined"!==typeof(mData))
{if("string"===typeof(mData))
{this.sFormData=mData;}}}
this.requestGetText=function(sUrl,mCallbackFunction,mCustomErrorFunction)
{this.setMethod(this.GET);this.setResponseType(this.TEXT);this.bSynchroniousCall=false;return this.httpRequest(sUrl,mCallbackFunction,mCustomErrorFunction);}
this.requestGetTextSynchrone=function(sUrl,mCallbackFunction,mCustomErrorFunction)
{this.setMethod(this.GET);this.setResponseType(this.TEXT);this.bSynchroniousCall=true;return this.httpRequest(sUrl,mCallbackFunction,mCustomErrorFunction);}
this.requestGetXml=function(sUrl,mCallbackFunction,mCustomErrorFunction)
{this.setMethod(this.GET);this.setResponseType(this.XML);this.bSynchroniousCall=false;return this.httpRequest(sUrl,mCallbackFunction,mCustomErrorFunction);}
this.requestGetXmlSynchrone=function(sUrl,mCallbackFunction,mCustomErrorFunction)
{this.setMethod(this.GET);this.setResponseType(this.XML);this.bSynchroniousCall=true;return this.httpRequest(sUrl,mCallbackFunction,mCustomErrorFunction);}
this.requestPostText=function(sUrl,mCallbackFunction,mData,mCustomErrorFunction)
{if("undefined"!==typeof(mData)&&null!==mData)
{this.setFormData(mData);}
this.setMethod(this.POST);this.setResponseType(this.TEXT);this.bSynchroniousCall=false;return this.httpRequest(sUrl,mCallbackFunction,mCustomErrorFunction);}
this.requestPostTextSynchrone=function(sUrl,mCallbackFunction,mData,mCustomErrorFunction)
{if("undefined"!==typeof(mData)&&null!==mData)
{this.setFormData(mData);}
this.setMethod(this.POST);this.setResponseType(this.TEXT);this.bSynchroniousCall=true;return this.httpRequest(sUrl,mCallbackFunction,mCustomErrorFunction);}
this.requestPostXml=function(sUrl,mCallbackFunction,mData,mCustomErrorFunction)
{if("undefined"!==typeof(mData)&&null!==mData)
{this.setFormData(mData);}
this.setMethod(this.POST);this.setResponseType(this.XML);this.bSynchroniousCall=false;return this.httpRequest(sUrl,mCallbackFunction,mCustomErrorFunction);}
this.requestPostXmlSynchrone=function(sUrl,mCallbackFunction,mData,mCustomErrorFunction)
{if("undefined"!==typeof(mData)&&null!==mData)
{this.setFormData(mData);}
this.setMethod(this.POST);this.setResponseType(this.XML);this.bSynchroniousCall=true;return this.httpRequest(sUrl,mCallbackFunction,mCustomErrorFunction);}
this.request=function(sUrl,mCallbackFunction,eMethod,mCustomErrorFunction)
{if("undefined"===typeof(eMethod)&&null!==eMethod)
{eMethod=this.POST;}
this.setMethod(eMethod);this.setResponseType(this.OBJECT);this.bSynchroniousCall=true;return this.httpRequest(sUrl,mCallbackFunction,mCustomErrorFunction);}
this.executeJavaScript=function()
{var mExFunction=function(){oThisReference.actuallyExecuteJavaScript()};setTimeout(mExFunction,50);}
this.actuallyExecuteJavaScript=function()
{var iScriptCount=this.aJavaScript.length;for(var pCount=0;pCount<iScriptCount;pCount++)
{try
{eval(this.aJavaScript[pCount]);}
catch(e)
{}}}
this.setLoadingImage=function(sImage)
{this.sLoadingImage=sImage;}
this.getLoadingImage=function(sLoadingText)
{if("undefined"===typeof(sLoadingText))
{sLoadingText=this.sLoadingText;}
if(null===this.oLoadingImage)
{this.oLoadingImage=document.createElement("div");this.oLoadingImage.className="loadingContainer";this.oImageContainer=document.createElement("div");this.oImageContainer.className="loadingImageContainer";this.oImg=document.createElement("img")
this.oImg.className="loadingImage";this.oImg.src=this.sLoadingImage;this.oImg.alt=sLoadingText;this.oTextContainer=document.createElement("div");this.oTextContainer.className="loadingTextContainer";this.oTextContainer.innerHTML=sLoadingText;}
else
{this.oLoadingImage.innerHTML="";this.oImageContainer.innerHTML="";this.oTextContainer.innerHTML=sLoadingText;}
this.oImageContainer.appendChild(this.oImg);this.oLoadingImage.appendChild(this.oImageContainer);this.oLoadingImage.appendChild(this.oTextContainer);return this.oLoadingImage;}
this.setErrorImage=function(sImage)
{this.sErrorImage=sImage;}
this.getErrorImage=function(sErrorText)
{if("undefined"===typeof(sErrorText))
{sErrorText=this.sErrorText;}
if(null===this.oLoadingImage)
{this.oLoadingImage=document.createElement("div");this.oLoadingImage.className="errorContainer";this.oImageContainer=document.createElement("div");this.oImageContainer.className="errorImageContainer";this.oImg=document.createElement("img")
this.oImg.className="errorImage";this.oImg.src=this.sErrorImage;this.oImg.alt=sErrorText;this.oTextContainer=document.createElement("div");this.oTextContainer.className="ErrorTextContainer";this.oTextContainer.innerHTML=sErrorText;}
else
{this.oLoadingImage.innerHTML="";this.oImageContainer.innerHTML="";this.oTextContainer.innerHTML=sErrorText;}
this.oImageContainer.appendChild(this.oImg);this.oLoadingImage.appendChild(this.oImageContainer);this.oLoadingImage.appendChild(this.oTextContainer);return this.oErrorImage;}}; 
/* file ./shared/breox/js/core/base.js*/function getElement(sElementName)
{return getElementById(sElementName);}
function getElementById(sElementName)
{return document.getElementById(sElementName);}
function getElementsByTagName(sTagName)
{return document.getElementsByTagName(sTagName);}
function getFirstParentByClassName(oElement,sClassName)
{if("object"===typeof(oElement)&&oElement.parentNode&&"undefined"!==typeof(oElement.parentNode))
{if("undefined"!==typeof(oElement.parentNode.className)&&-1!==oElement.parentNode.className.indexOf(sClassName))
{return oElement.parentNode;}
return getFirstParentByClassName(oElement.parentNode,sClassName);}
return false;}
function insertAfter(oNode,oReferenceNode)
{oParent=oReferenceNode.parentNode;if(null!==oParent&&"undefined"!==typeof(oParent))
{oParent.insertBefore(oNode,oReferenceNode.nextSibling);}
return null;}
function setAttribute(oObject,sAttributeName,mAttributeValue)
{if("object"!==typeof(oObject))
{return false;}
switch(sAttributeName)
{case'class':{alert("You cannot add the class attribute with this function use the class functions instead");return false;}
break;case'id':{oObject.id=mAttributeValue;oObject.setAttribute(sAttributeName,mAttributeValue);}
break;default:{if(sAttributeName.indexOf('breox')===-1)
{return false;}
oObject.setAttribute(sAttributeName,mAttributeValue);}
break;}
return oObject;}
function switchBoxes(oBoxOne,oBoxTwo)
{if("undefined"!==typeof(oBoxOne)&&"undefined"!==typeof(oBoxTwo))
{if(oBoxOne.style.display==='none')
{oBoxOne.style.display='';oBoxTwo.style.display='none';}
else
{oBoxOne.style.display='none';oBoxTwo.style.display='';}}}
function switchText(oObject,sStringOne,sStringTwo)
{if(oObject.innerHTML===sStringTwo)
{oObject.innerHTML=sStringOne;}
else
{oObject.innerHTML=sStringTwo;}}
function reverseString(sString)
{var sNewString='';for(i=strlen(sString);i>=0;i--)
{sNewString+=sString.substr(i,1);}
return sNewString;}
function isset(sVarname)
{return sVarname!=undefined;}
function isNumeric(sText)
{var sValidChars="0123456789.";var bIsNumber=true;var sChar;var iTextLength=sText.length;for(var iCount=0;iCount<iTextLength&&bIsNumber==true;iCount++)
{sChar=sText.charAt(iCount);if(sValidChars.indexOf(sChar)==-1)
{bIsNumber=false;}}
return bIsNumber;}
function empty(sText)
{if(sText===""||sText===null)
{return true;}
return false;}
function strlen(sText)
{return sText.length;}
function strtoupper(sText)
{return sText.toUpperCase();}
function strtolower(sText)
{return sText.toLowerCase();}
function trim(sText)
{sText=sText.replace(/^\s+/,'');sText=sText.replace(/\s+$/,'');return sText;}
function strpos(sHayStack,sNeedle)
{return sHayStack.indexOf(sNeedle);}
function checkdate(sMonth,sDay,sYear)
{var sMyDate=new Date();sMyDate.setFullYear(sYear,(sMonth-1),sDay);return((sMyDate.getMonth()+1)==sMonth);}
function is_array(mArray)
{return typeof(mArray).toLowerCase()==='array';}
function addEvent(sEventType,oEvent,oParentObject)
{if("undefined"===typeof(oParentObject))
{oParentObject=window;}
if("undefined"!==typeof(oParentObject.addEventListener))
{oParentObject.addEventListener(sEventType,oEvent,true);}
else if("undefined"!==typeof(oParentObject.attachEvent))
{if('on'!==sEventType.substr(0,2))
{sEventType='on'+sEventType;}
oParentObject.attachEvent(sEventType,oEvent);}
else
{if(null!==oParentObject.getAttribute(sEventType))
{oParentObject.setAttribute(sEventType,oParentObject.getAttribute(sEventType)+oEvent.toString());}
else
{oParentObject.setAttribute(sEventType,oEvent.toString());}}
return true;}
function d_addEvent(sEventType,sFunction,oElement,bUseCapture)
{if(oElement.addEventListener){oElement.addEventListener(sEventType,sFunction,bUseCapture);return true;}else if(oElement.attachEvent){var bResult=oElement.attachEvent("on"+sEventType,sFunction);return bResult;}else{alert('Handler could not be added');}}
function getEventSource(oEvent)
{if("undefined"!==typeof(window.event))
{oEvent=window.event;return oEvent.srcElement;}
return oEvent.target;}
function sleep(iMiliSeconds)
{var iStart=new Date().getTime();while(new Date().getTime()<iStart+iMiliSeconds)
{}}
function call_user_func(mFunction,aParams)
{var mReturn=null;if("undefined"===typeof(aParams))
{aParams=new Array();}
else if("object"!==typeof(aParams))
{var sTmp=aParams;aParams=new Array();aParams[0]=sTmp;}
var sParams="";for(var pCount=0;pCount<aParams.length;pCount++)
{eval("var mParam"+pCount+" = aParams[pCount]");if(sParams!=="")
{sParams+=", ";}
sParams+="mParam"+pCount;}
if("function"===typeof(mFunction))
{try
{eval("mReturn = mFunction("+sParams+")");}
catch(e)
{}}
else if("object"===typeof(mFunction)&&"undefined"!==typeof(mFunction[0])&&"undefined"!==typeof(mFunction[1]))
{if("object"===typeof(mFunction[1])&&"function"===typeof(mFunction[0].mFunction[1]))
{try
{eval("mReturn = mFunction[0].mFunction[1]("+sParams+")");}
catch(e)
{}}
else if("function"===typeof(eval("mFunction[0]."+mFunction[1])))
{try
{eval("mReturn = mFunction[0]."+mFunction[1]+"("+sParams+")");}
catch(e)
{}}}
else
{try
{eval("mReturn = "+mFunction);}
catch(e)
{eval(mFunction);}}
return mReturn;}
function showHideItem(sElementId)
{oObject=getElementById(sElementId);if(null!==oObject)
{if(oObject.style.display==='none')
{oObject.style.display='';}
else
{oObject.style.display='none';}}
return oObject;}
function addParamsToUrl(sUrl,aParams)
{var sChar='?';if(-1!==sUrl.indexOf("?"))
{sChar='&';}
for(var sParamName in aParams)
{if("indexOf"!==sParamName)
{sUrl+=sChar+sParamName+'='+escape(aParams[sParamName]);}}
return sUrl;}
function getFlashHtmlCode(sFileName,iFlashWidth,iFlashHeight,sScriptAccess)
{if('undefined'===typeof(sScriptAccess))
{sScriptAccess='sameDomain';}
var sFlashCode='<object type="application/x-shockwave-flash" id="flash_item_%CUSTOMID%" data="%FLASHURL%" width="%FLASHWIDTH%" height="%FLASHHEIGHT%" class="swfupload">'
+'<param name="wmode" value="transparent" />'
+'<param name="movie" value="%FLASHURL%" />'
+'<param name="quality" value="high" />'
+'<param name="menu" value="false" />'
+'<param name="allowScriptAccess" value="%SCRIPTACCES%" />'
+'</object>';return sFlashCode.replace(/%FLASHURL%/g,sFileName).replace(/%CUSTOMID%/g,Math.round(Math.random()*Math.random()*1000000)).replace(/%FLASHWIDTH%/g,iFlashWidth).replace(/%FLASHHEIGHT%/g,iFlashHeight).replace(/%SCRIPTACCES%/,sScriptAccess);}
function number_format(number,decimals,dec_point,thousands_sep){number=(number+'').replace(/[^0-9+\-Ee.]/g,'');var n=!isFinite(+number)?0:+number,prec=!isFinite(+decimals)?0:Math.abs(decimals),sep=(typeof thousands_sep==='undefined')?',':thousands_sep,dec=(typeof dec_point==='undefined')?'.':dec_point,s='',toFixedFix=function(n,prec){var k=Math.pow(10,prec);return''+Math.round(n*k)/k;};s=(prec?toFixedFix(n,prec):''+Math.round(n)).split('.');if(s[0].length>3){s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,sep);}
if((s[1]||'').length<prec){s[1]=s[1]||'';s[1]+=new Array(prec-s[1].length+1).join('0');}
return s.join(dec);}; 
/* file ./shared/breox/js/core/errorhandler.js*/function coreErrorhandler(sUrl,bIsOffline)
{this.bIsOffline=bIsOffline;this.oHttpObject=null;this.sUrl=sUrl;}
coreErrorhandler.prototype.triggerError=function(sDescription,sPage,iLine,iChar)
{var sIssue=new String('Javascript error: \n\nDescription: '+sDescription+'\nPage: '+sPage+'\nLine: '+iLine+'\nCharacter: '+iChar+' \n\nUseragent: '+navigator.userAgent)
if(true===this.bIsOffline)
{alert(sIssue);}
else
{if(null===this.oHttpObject)
{this.oHttpObject=this.getHttpObject();}
if(false!==this.oHttpObject)
{var sParams='code=500&type=jserror&issue='+encodeURIComponent(sDescription)+'&page='+encodeURIComponent(sPage)+'&line='+iLine+'&char='+encodeURIComponent(iChar)+'&useragent='+encodeURIComponent(navigator.userAgent);this.oHttpObject.open('POST',this.sUrl,true);this.oHttpObject.setRequestHeader("X-Requested-With","XMLHttpRequest");this.oHttpObject.setRequestHeader("Content-type","application/x-www-form-urlencoded");this.oHttpObject.setRequestHeader("Content-length",sParams.length);this.oHttpObject.setRequestHeader("Connection","close");this.oHttpObject.send(sParams);}}
return true;}
coreErrorhandler.prototype.getHttpObject=function()
{var oHttpRequest=false;if("undefined"!==typeof(window.XMLHttpRequest))
{oHttpRequest=new XMLHttpRequest();if("undefined"!==typeof(oHttpRequest.overrideMimeType))
{oHttpRequest.overrideMimeType('text/xml');}}
else if("undefined"!==typeof(window.ActiveXObject))
{try
{oHttpRequest=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{oHttpRequest=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e)
{return false;}}}
return oHttpRequest;}
function jsTriggerError(sDescription,sPage,iLine,iChar)
{if(sDescription.indexOf('Location.toString')!==-1||sPage.indexOf('sifr.js')!==-1)
{return true}
return oErrorhandler.triggerError(sDescription,sPage,iLine,iChar);}; 
/* file ./shared/daisycon/js/select.js*/if(!Array.indexOf){Array.prototype.indexOf=function(obj,start){for(var i=(start||0);i<this.length;i++){if(this[i]==obj){return i;}}
return-1;}}
function daisyconSelect(sID,iFixedWidth)
{if(null!==document.getElementById(sID+'daisySelect'))
{return false;}
this.bOpen=false;this.bMouseIn=false;this.tDropdownBoxTimer=null;this.oSelect=document.getElementById(sID);if(null===this.oSelect)
{return;}
this.charBuffer="";this.bFirstItemInvisible=false;this.oSelect.style.display='';this.oSelect.style.visibility='hidden';this.oSelect.daisySelect=this;this.bMultiSelect=this.oSelect.getAttribute('multiple')?true:false;this.aCheckBoxes=new Array();var thisRef=this;this.oSelect.populate=function(){thisRef.populateList();}
this.doActionByClick=function(){if(thisRef.bOpen===true)
{thisRef.collapse();}
else
{thisRef.expand();};};var expand=function(){if(thisRef.bOpen===true){thisRef.expand()}};var collapse=function(){if(thisRef.bOpen===true){thisRef.bMouseIn=false;clearTimeout(thisRef.tDropdownBoxTimer);thisRef.tDropdownBoxTimer=setTimeout(function(){if(thisRef.bMouseIn!=true){thisRef.collapse();}},400)}};var mouseover=function(){if(thisRef.bOpen===true){thisRef.bMouseIn=true;}};this.oSelectDiv=document.createElement('div');this.oSelectDiv.id=sID+'daisySelect';this.oSelectDiv.className='daisyconSelect';this.oSelectDivText=document.createElement('div');this.oSelectDivText.className='selectText';var oThisReference=this;this.oSelectDivText.onmouseover=function()
{this.bWasHidden=false;this.hideFullText();this.showFullText();};this.oSelectDivText.onmouseout=function()
{this.hideFullText();};this.oSelectDivText.onmousemove=function()
{if(true===oThisReference.bOpen)
{if("undefined"!==typeof(this.bIsDisplayed)&&true===this.bIsDisplayed)
{this.hideFullText();}}
else
{if("undefined"!==typeof(this.bWasHidden)&&false===this.bWasHidden)
{this.showFullText();}}}
this.oSelectDivText.showFullText=function()
{if(false===oThisReference.bOpen)
{this.bIsDisplayed=true;if("undefined"===typeof(this.oldWidth)||null===this.oldWidth)
{this.oldWidth=this.style.width;}
if("undefined"===typeof(this.oldClassName)||null===this.oldClassName)
{this.oldClassName=this.className;}
this.className="selectTextHover";this.style.minWidth=this.oldWidth;this.style.width="auto";this.style.marginLeft="5px";this.style.marginRight="5px";if(parseInt((this.offsetWidth-2),10)<=parseInt(this.oldWidth.replace("px",""),10))
{this.hideFullText();this.bWasHidden=true;}}}
this.oSelectDivText.hideFullText=function()
{this.bIsDisplayed=false;if("undefined"!==typeof(this.oldWidth)&&null!==this.oldWidth)
{this.style.width=this.oldWidth;}
if("undefined"!==typeof(this.oldClassName)&&null!==this.oldClassName)
{this.className=this.oldClassName;}
this.style.marginLeft="";this.style.minWidth="";this.style.marginLeft="";this.style.marginRight="";}
if(!isNaN(iFixedWidth))
{this.oSelectDiv.style.width=iFixedWidth+"px";this.oSelectDivText.style.width=(iFixedWidth-10)+"px";}
else if(this.oSelect.style.width)
{this.oSelectDiv.style.width=(parseInt(this.oSelect.style.width))+"px";this.oSelectDivText.style.width=(parseInt(this.oSelect.style.width)-10)+"px";}
else if(this.oSelect.offsetWidth)
{this.oSelectDiv.style.width=((this.oSelect.offsetWidth<10?10:parseInt(this.oSelect.offsetWidth)))+"px";this.oSelectDivText.style.width=((this.oSelect.offsetWidth<10?10:parseInt(this.oSelect.offsetWidth))-10)+"px";}
else
{this.oSelectDiv.style.width="170px";this.oSelectDivText.style.width="160px";}
this.oSelectDiv.appendChild(document.createElement('div'));this.oSelectDiv.appendChild(this.oSelectDivText);this.oSelectPanel=document.createElement('div');this.oSelectPanel.className='daisyconSelectPanel';this.oSelectPanel.style.position='absolute';this.oSelectPanel.onmouseout=collapse;this.oSelectPanel.onmouseover=mouseover;this.oSelectPanelItems=document.createElement('div');this.oSelectPanelItems.className='items';this.oSelectPanel.appendChild(this.oSelectPanelItems);this.oDisableDiv=document.createElement('div');this.oDisableDiv.className='disabled';this.oDisableDiv.style.height=this.oSelectDiv.style.height;this.disabled=false;if(!this.oSelect.disabled)
{this.enable();}
else
{this.disable();}
this.oSelectDiv.onmouseout=collapse;this.oSelectDiv.onmouseover=mouseover;if(this.bMultiSelect===true)
{this.oSelectAll=document.createElement('a');this.oSelectAll.href='toggle';this.oSelectAll.className='selector';this.oSelectAll.onclick=function(e)
{if(!e)var e=window.event;e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();if(this.checked===true)
{this.checked=false;thisRef.unselectAll();}
else
{this.checked=true;thisRef.selectAll();}
thisRef.oSelectDivText.innerHTML=thisRef.getMultiSelectedText();if(thisRef.oSelect.onchange)
thisRef.oSelect.onchange();return false;}
this.oSelectPanel.appendChild(this.oSelectAll);}
this.oSelectPanelRoundedCorner=document.createElement('div');this.oSelectPanelRoundedCorner.className='roundedcorner';this.oSelectPanel.appendChild(this.oSelectPanelRoundedCorner);this.populateList();this.oSelect.style.display='none';this.oSelect.parentNode.insertBefore(this.oSelectDiv,this.oSelect);}
daisyconSelect.prototype.isDisabled=function()
{return this.disabled;}
daisyconSelect.prototype.disable=function()
{this.disabled=true;this.oSelectDiv.onclick=null;{this.oSelectDiv.appendChild(this.oDisableDiv);}}
daisyconSelect.prototype.enable=function()
{this.disabled=false;this.oSelectDiv.onclick=this.doActionByClick;if(this.oDisableDiv.parentNode)
{this.oDisableDiv.parentNode.removeChild(this.oDisableDiv);}}
daisyconSelect.prototype.showSelect=function()
{this.oSelectDiv.style.display="";this.oSelectDiv.style.visibility="";}
daisyconSelect.prototype.hideSelect=function()
{this.oSelectDiv.style.display="none";this.oSelectDiv.style.visibility="hidden";return this.oSelectedDiv;}
daisyconSelect.prototype.populateList=function(criteria)
{this.oSelectPanelItems.innerHTML="";var thisRef=this;thisRef.oSelectDivText.innerHTML="";for(var iLen=this.oSelect.options.length,iPos=0;iLen>iPos;++iPos)
{if(iPos===0&&true===this.bFirstItemInvisible)
{continue;}
if(criteria)
{if(-1==this.oSelect.options[iPos].text.toUpperCase().indexOf(criteria))
continue;}
var oItem=document.createElement('div');oItem.className='item';oItem.id=this.oSelect.id+'_item_'+iPos;oItem.style.color=this.oSelect.options[iPos].style.color;oItem.selectValue=this.oSelect.options[iPos].value;oItem.selectIndex=iPos;oItem.optionDisabled=this.oSelect.options[iPos].disabled;if(oItem.optionDisabled)
{oItem.style.backgroundColor='#e2e2e2';}
if(this.bMultiSelect===true)
{var oCheckBox=document.createElement('input');oCheckBox.setAttribute("type",'checkbox');oCheckBox.onkeyup=function(){return false;}
oCheckBox.onkeydown=function(){return false;}
oCheckBox.onclick=function(e)
{if(!e)var e=window.event;e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();thisRef.selectSet(this.parentNode.selectValue,this.checked);thisRef.oSelectDivText.innerHTML=thisRef.getMultiSelectedText();if(thisRef.oSelect.onchange)
thisRef.oSelect.onchange();};oItem.appendChild(oCheckBox);oCheckBox.checked=this.oSelect.options[iPos].selected;if(oItem.optionDisabled)
{oCheckBox.disabled='disabled';}
this.aCheckBoxes[iPos]=oCheckBox;}
if(criteria)
{var oTmp=document.createElement('span');oTmp.innerHTML=this.highlightText(this.oSelect.options[iPos].text,criteria);oItem.appendChild(oTmp);}
else
{oItem.appendChild(document.createTextNode(this.oSelect.options[iPos].text));}
if(false===oItem.optionDisabled)
{if(this.bMultiSelect===true)
{oItem.onclick=function(e){this.firstChild.checked=!this.firstChild.checked;thisRef.selectSet(this.selectValue,this.firstChild.checked);thisRef.oSelectDivText.innerHTML=thisRef.getMultiSelectedText();if(thisRef.oSelect.onchange)
thisRef.oSelect.onchange();};}
else
{oItem.onclick=function(){thisRef.selectEnum(this.selectValue);thisRef.collapse();thisRef.oSelectDivText.innerHTML=thisRef.oSelect.options[this.selectIndex].text;if(thisRef.oSelect.onchange)
thisRef.oSelect.onchange();};}}
else
{var oThisRef=this;oItem.onclick=function()
{alert(oThisRef.translate('option_disabled'));}}
if(typeof oItem.onselectstart!="undefined"){oItem.onselectstart=function(){return false;};}
oItem.onmousedown=function(){return false;}
oItem.onmouseup=function(){return true;}
this.oSelectPanelItems.appendChild(oItem);}
if(this.bMultiSelect===true)
{this.oSelectDivText.innerHTML=this.getMultiSelectedText();}
else
{if(this.oSelect.selectedIndex!=-1)
{this.oSelectDivText.innerHTML=this.oSelect.options[this.oSelect.selectedIndex].innerHTML;}}}
daisyconSelect.prototype.getMultiSelectedText=function()
{var selectedText=null;var allSelected=true;var iTotalSelected=0;for(var iLen=this.oSelect.options.length,iPos=0;iLen>iPos;++iPos)
{if(this.oSelect.options[iPos].selected===true)
{iTotalSelected++;if(selectedText===null)
{selectedText=this.oSelect.options[iPos].innerHTML;}
else if(selectedText!==null&&allSelected===false)
{this.oSelectAll.checked=false;this.oSelectAll.innerHTML=this.translate('selectall');return this.translate('multipleselected');}}
else
{allSelected=false;}}
if(iTotalSelected===0)
{this.oSelectAll.innerHTML=this.translate('selectall');this.oSelectAll.checked=false;return this.translate('noneselected');}
else if(iTotalSelected===1)
{this.oSelectAll.innerHTML=this.translate('selectall');this.oSelectAll.checked=false;return selectedText;}
else if(iTotalSelected>=2&&allSelected===true)
{this.oSelectAll.innerHTML=this.translate('unselectall');this.oSelectAll.checked=true;return this.translate('allselected');}
else
{this.oSelectAll.innerHTML=this.translate('selectall');this.oSelectAll.checked=false;return this.translate('multipleselected');}}
daisyconSelect.prototype.select=function(selectID,skipOnchange)
{if(true!==skipOnchange)
{skipOnchange=false;}
this.collapse();for(var i=0;i<this.oSelect.options.length;++i)
{if(this.oSelect.options[i].value==selectID)
{this.oSelect.options[i].selected=true;this.oSelectDivText.innerHTML=this.oSelect.options[i].text;}
else
{this.oSelect.options[i].selected=false;}}
if(!skipOnchange&&this.oSelect.onchange)
this.oSelect.onchange();}
daisyconSelect.prototype.selectEnum=function(selectID)
{this.select(selectID,true);}
daisyconSelect.prototype.selectSet=function(selectID,checked)
{for(var iLen=this.oSelect.options.length,iPos=0;iLen>iPos;++iPos)
{if(this.oSelect.options[iPos].value===selectID)
{this.oSelect.options[iPos].selected=checked;}}}
daisyconSelect.prototype.unselectAll=function()
{for(var iLen=this.oSelect.options.length,iPos=0;iLen>iPos;++iPos)
{this.oSelect.options[iPos].selected=false;this.aCheckBoxes[iPos].checked=false;}}
daisyconSelect.prototype.selectAll=function()
{for(var iLen=this.oSelect.options.length,iPos=0;iLen>iPos;++iPos)
{this.oSelect.options[iPos].selected=true;this.aCheckBoxes[iPos].checked=true;}}
daisyconSelect.prototype.collapse=function()
{document.body.onkeydown=null;this.bOpen=false;if(this.oSelectPanel.parentNode)
{this.oSelectPanel.parentNode.removeChild(this.oSelectPanel);}}
daisyconSelect.prototype.highlightText=function(text,matchingtext)
{var pos=0;pos=text.toUpperCase().indexOf(matchingtext);if(pos==-1)
{return false;}
else
{var textReturn='';var len=matchingtext.length;if(pos>0)
textReturn+=text.substr(0,pos);textReturn+='<b id="highlight">'+text.substr(pos,len)+'</b>';if(pos+len<text.length)
textReturn+=text.substr(pos+len);return textReturn;}}
daisyconSelect.prototype.expand=function()
{var thisRef=this;this.populateList();this.charBuffer="";document.onkeydown=function(e)
{var event;var keycode;if(window.event){event=window.event;keycode=event.keyCode}
else if(e){event=e;keycode=e.which;}
if((keycode>=65&&keycode<=90)||(keycode>=48&&keycode<=57)||keycode==32||keycode==8)
{if(keycode==8)
{thisRef.charBuffer=thisRef.charBuffer.substr(0,thisRef.charBuffer.length-1);}
else
{thisRef.charBuffer+=String.fromCharCode(keycode);}
thisRef.populateList(thisRef.charBuffer);}
return true;}
var iCurLeft=iCurTop=0;var obj=this.oSelectDiv;if(obj.offsetParent)
{if(undefined!==obj.style.zoom)
{oObjZoom=obj;do
{oObjZoom.style.zoom=1;}while(oObjZoom=oObjZoom.offsetParent);}
do
{iCurLeft+=parseInt(obj.offsetLeft);iCurTop+=parseInt(obj.offsetTop);}while(obj=obj.offsetParent);}
this.oSelectPanel.style.left=(iCurLeft+3)+'px';this.oSelectPanel.style.top=(iCurTop+parseInt(this.oSelectDiv.offsetHeight))+'px';this.bOpen=true;document.body.appendChild(this.oSelectPanel);if(this.oSelectPanel.offsetWidth<this.oSelectDiv.offsetWidth-31)
{this.oSelectPanel.style.width=parseInt(this.oSelectDiv.offsetWidth-31)+'px';}}
daisyconSelect.prototype.setFirstItemInvisible=function()
{this.bFirstItemInvisible=true;}
daisyconSelect.prototype.getSelectedCount=function()
{var iCounted=0;for(var iLen=this.oSelect.options.length,iPos=0;iLen>iPos;++iPos)
{if(this.oSelect.options[iPos].selected==true)
{iCounted++;}}
return iCounted;}
daisyconSelect.prototype.translate=function(code)
{if("function"===typeof(translate))
{return translate(code);}
return code;}
daisyconSelect.prototype.getSelectDiv=function()
{return this.oSelectDiv;}
daisyconSelect.prototype.getDisableDiv=function()
{return this.oDisableDiv;}; 
/* file ./shared/breox/js/core/validator/base.js*/function coreValidatorBase()
{this.aValidations=new Array();this.bIsValid=true;this.aErrorObjects=new Array();this.addValidation=function(oObject,oField,aSettings)
{if("undefined"===typeof(this.aValidations[oObject.getValidationName()]))
{this.aValidations[oObject.getValidationName()]=oObject;}
this.aValidations[oObject.getValidationName()].addField(oField,aSettings);}
this.clearErrors=function()
{for(var pCount in this.aErrorObjects)
{if("indexOf"!==pCount)
{if(this.aErrorObjects[pCount].parentNode)
{var oParent=this.aErrorObjects[pCount].parentNode;oParent.removeChild(this.aErrorObjects[pCount]);}}}
this.aErrorObjects=new Array();}
this.isValid=function()
{this.clearErrors();this.bIsValid=true;for(var sValidatorName in this.aValidations)
{if("indexOf"!==sValidatorName)
{var aFields=this.aValidations[sValidatorName].getFields();for(var sFieldName in aFields)
{if("indexOf"!==sFieldName)
{if(false===this.aValidations[sValidatorName].isValid(aFields[sFieldName]['field'],aFields[sFieldName]['settings']))
{this.bIsValid=false;this.placeError(this.aValidations[sValidatorName].getError(),aFields[sFieldName]['field']);}}}}}
return this.bIsValid;}
this.placeError=function(sError,oInput)
{if("function"===typeof(Translate))
{sError=Translate(sError);}
oDiv=document.createElement("div");this.aErrorObjects[this.aErrorObjects.length]=oDiv;oDiv.innerHTML=sError;oDiv.className="formError";if(oInput)
{if(oInput.parentNode.parentNode.parentNode.nodeName=="DIV"&&oInput.parentNode.parentNode.nodeName=="DIV"&&oInput.parentNode.nodeName=="DIV")
{oInput.parentNode.parentNode.parentNode.appendChild(oDiv);}
else if(oInput.parentNode.parentNode.nodeName=="DIV"&&oInput.parentNode.nodeName=="DIV")
{oInput.parentNode.parentNode.appendChild(oDiv);}
else if(oInput.parentNode.nodeName=="DIV")
{oInput.parentNode.appendChild(oDiv);}}}}; 
/* file ./shared/breox/js/coreElements.js*/var backwardsCompatabilityDummy;; 
/* file ./shared/breox/js/core/validator/requiredwithjavascriptvalidation.js*/function valueValidatorRequiredwithjavascriptvalidation()
{this.NETHERLANDS=121;this.BELGIUM=15;this.oCountrySelect=null;this.eCountry=121;this.aFields=new Array();this.translate=function(sString)
{if("function"===typeof(translate))
{return translate(sString);}
return sString;}
this.getValidationName=function()
{return'coreValidatorRequiredwithjavascriptvalidation';}
this.addField=function(oField,aSettings)
{if("undefined"===typeof(this.aFields[oField.name]))
{this.aFields[oField.name]=new Array();this.aFields[oField.name]['field']=oField;this.aFields[oField.name]['settings']=aSettings;}}
this.getFields=function()
{return this.aFields;}
this.getError=function()
{return this.translate("Required");}
this.isValid=function(oField,aSettings)
{bReturn=false;if("select-one"==oField.type)
{bReturn=true;}
else if(oField.type=="text"&&undefined!=oField.value&&""!=oField.value)
{bReturn=true;}
else if(oField.type=="password"&&undefined!=oField.value&&""!=oField.value)
{bReturn=true;}
else if(oField.type=="checkbox"&&true==oField.checked)
{bReturn=true;}
return bReturn;}}; 
/* file ./shared/breox/js/core/validator/dependantrequired2.js*/function valueValidatorDependantrequired2()
{this.NETHERLANDS=121;this.BELGIUM=15;this.oCountrySelect=null;this.eCountry=121;this.aFields=new Array();this.getValidationName=function()
{return'valueValidatorDependantrequired2';}
this.translate=function(sString)
{if("function"===typeof(translate))
{return translate(sString);}
return sString;}
this.addField=function(oField,aSettings)
{if("undefined"===typeof(this.aFields[oField.name]))
{this.aFields[oField.name]=new Array();this.aFields[oField.name]['field']=oField;this.aFields[oField.name]['settings']=aSettings;}}
this.getFields=function()
{return this.aFields;}
this.getError=function()
{return this.translate("Required");}
this.isValid=function(oField,aSettings)
{bReturn=false;if(((aSettings['valueDependantrequired'].value!='business')||(aSettings['valueDependantrequired'].value=='business'&&(undefined!=oField.value&&""!=oField.value)))&&((aSettings['valueDependantrequired'].value!='Zakelijk')||(aSettings['valueDependantrequired'].value=='Zakelijk'&&(undefined!=oField.value&&""!=oField.value))))
{bReturn=true;}
return bReturn;}}; 
/* file ./shared/breox/js/formhelperdecimals.js*/function isNumericInput(e,who,checkFormat,extra)
{var keynum;var keychar;var numcheck;if(window.event)
{e=window.event;}
keynum=('undefined'!=typeof e.keyCode&&e.keyCode!=0)?e.keyCode:e.which;if(8===keynum||9===keynum||13===keynum||17===keynum||27===keynum||33===keynum||34===keynum||35===keynum||36===keynum||37===keynum||38===keynum||39===keynum||40===keynum)
return true;var check;switch(checkFormat)
{case'percentage':case'decimal':check=/\d|\-|\,|\./;break;case'integer':default:check=/\d/;break;}
keychar=String.fromCharCode(keynum);bCheck=((keychar=='.'||keychar==',')&&(who.value.indexOf(',')>=0||who.value.indexOf('.')>=0));return check.test(keychar)&&!bCheck;}
function formatString(who,format,extra,iMaxPercentage)
{var formatting;var text=who.value;switch(format)
{case'decimal':switch(extra)
{case',':text=text.replace('.',',');text=text.match(/\-?[0-9]*\,?[0-9]{0,9}/);break;case'.':default:text=text.replace(',','.');text=text.match(/\-?[0-9]*\.?[0-9]{0,9}/);}
break;case'percentage':if(!isNaN(parseInt(text)))
{if('undefined'!==typeof(iMaxPercentage)&&parseInt(text)>=iMaxPercentage)
text=iMaxPercentage;else if(parseInt(text)<=0)
text='0';else
{switch(extra)
{case',':text=text.replace('.',',');text=text.match(/\-?[0-9]*\,?[0-9]{0,3}/);break;case'.':default:text=text.replace(',','.');text=text.match(/\-?[0-9]*\.?[0-9]{0,3}/);}}}
break;case'integer':default:value=text.match(/[0-9]{0,11}/);if(value!=text)
text=value;break;}
if(text!=who.value)
{who.value=text;}
return true;}; 
/* file ./shared/breox/js/coreWindowOnLoad.js*/function coreWindowOnLoadBase()
{this.aWindowOnLoadCalls=new Array();this.initialize=function()
{this.aWindowOnLoadCalls=new Array();}
this.go=function()
{for(var i=0;i<this.aWindowOnLoadCalls.length;i++)
{call_user_func(this.aWindowOnLoadCalls[i]);}}
this.add=function(sJavascriptCall)
{this.aWindowOnLoadCalls[this.aWindowOnLoadCalls.length]=sJavascriptCall;}}
var goCoreWindowOnLoad=new coreWindowOnLoadBase();function coreWindowOnLoad()
{goCoreWindowOnLoad.go();}
if(typeof window.addEventListener!="undefined")
{window.addEventListener("load",coreWindowOnLoad,false);}
else if(typeof window.attachEvent!="undefined")
{window.attachEvent("onload",coreWindowOnLoad);}
else
{if(window.onload!=null)
{var goCoreWindowOnLoad=new coreWindowOnLoad();goCoreWindowOnLoad.initialize();var oldOnload=window.onload;window.onload=function(e)
{oldOnload(e);goCoreWindowOnLoad.go();};}
else
{window.onload=goCoreWindowOnLoad.go();}}; 
/* file ./shared/breox/js/coreAjax.js*/var gbCoreAjaxShowErrorMessage=true;var gbCoreAjaxShowErrorMessageInStatusBar=false;var gaStateDescriptions={"100":"Continue","101":"Switching Protocols","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"NNo Content","205":"Reset Content","206":"Partial Content","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","306":"Unused","307":"Temporary Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"URI Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Request Entity Too Large","414":"Request-URI Too Long","415":"Unsupported Media Type","416":"Requested Range Not Satisfiable","417":"Expectation Failed","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","999":"Dummy"}
var gaStatusCategories={"1xx":"Informational","2xx":"Successful","3xx":"Redirection","4xx":"Client Error","5xx":"Server Error","xxx":"Dummy"}
function coreAjaxOnReadyStateChange(oHttpRequest,sUrl,sCallbackFunction,bReturnXml,bReturnResponseText)
{if(undefined!=oHttpRequest&&null!=oHttpRequest)
{if(undefined==bReturnXml)
{var bReturnXml=false;}
if(undefined==bReturnResponseText)
{var bReturnResponseText=false;}
if(oHttpRequest.readyState==4&&(sCallbackFunction||true===bReturnResponseText))
{if(oHttpRequest.status==200||oHttpRequest.status==122)
{if(bReturnXml)
{if(true===bReturnResponseText)
{return oHttpRequest.responseXML;}
else
{if("function"===typeof(sCallbackFunction))
{sCallbackFunction(oHttpRequest.responseXML);}
else
{eval(sCallbackFunction+'(oHttpRequest.responseXML)');}}}
else
{if(true===bReturnResponseText)
{return oHttpRequest.responseText;}
else
{if("function"===typeof(sCallbackFunction))
{sCallbackFunction(oHttpRequest.responseText);}
else
{eval(sCallbackFunction+'(oHttpRequest.responseText)');}}}}
else
{coreAjaxErrorMessage(oHttpRequest.status,sUrl);return false;}}}
else
{return false;}
return false;}
function coreAjaxErrorMessage(iStatus,sUrl,bForcedShow)
{if(undefined==iStatus)
{var iStatus=false;}
if(undefined==sUrl)
{var sUrl="";}
if(undefined==bForcedShow)
{var bForcedShow=false;}
if(true==gbCoreAjaxShowErrorMessage||true==bForcedShow)
{var sErrorMessage="coreAjax error\n\nThere was a problem with the request.\n";sErrorMessage+="Category: ";if(100<=iStatus&&199>=iStatus)
{sErrorMessage+=gaStatusCategories["1xx"];}
else if(200<=iStatus&&299>=iStatus)
{sErrorMessage+=gaStatusCategories["2xx"];}
else if(300<=iStatus&&399>=iStatus)
{sErrorMessage+=gaStatusCategories["3xx"];}
else if(400<=iStatus&&499>=iStatus)
{sErrorMessage+=gaStatusCategories["4xx"];}
else if(500<=iStatus&&599>=iStatus)
{sErrorMessage+=gaStatusCategories["5xx"];}
sErrorMessage+="\nCode: "+iStatus+"\n";sErrorMessage+="Description: ";if(gaStateDescriptions[iStatus.toString()])
{sErrorMessage+=gaStateDescriptions[iStatus.toString()];}
else
{sErrorMessage+="Unknow";}
sErrorMessage+="\nURI: "+sUrl;if(false==gbCoreAjaxShowErrorMessageInStatusBar||true==bForcedShow)
{alert(sErrorMessage);}
else
{window.status="coreAjax error: "+iStatus;if(gaStateDescriptions[iStatus.toString()])
{window.status+=" - "+gaStateDescriptions[iStatus.toString()];}}}
return iStatus;}
function coreAjax()
{this.bInitialized=false;this.bUpdateing=false;this.sobjId=false;this.bUseXRequestedWithHeader=true;this.sFormData="";this.sLastUrl="";this.__makeHttpRequest=function(sUrl,sCallbackFunction,bReturnXml,bPost,bAsynchronCall,bReturnResponseText)
{var oHttpRequest=null;if(window.XMLHttpRequest)
{oHttpRequest=new XMLHttpRequest();if(oHttpRequest.overrideMimeType)
{oHttpRequest.overrideMimeType('text/xml');}}
else if(window.ActiveXObject)
{try
{oHttpRequest=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{oHttpRequest=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e)
{}}}
if(null!=oHttpRequest)
{this.bInitialized=true;}
if(false==this.bInitialized)
{alert('Unfortunately your browser doesn\'t support this feature.');return false;}
this.sLastUrl=sUrl;if(undefined==bReturnXml)
{var bReturnXml=false;}
if(undefined==bReturnResponseText)
{var bReturnResponseText=false;}
if(undefined==bPost)
{var bPost=false;}
if(undefined==bAsynchronCall)
{var bAsynchronCall=true;}
oHttpRequest.onreadystatechange=function()
{return coreAjaxOnReadyStateChange(oHttpRequest,sUrl,sCallbackFunction,bReturnXml,bReturnResponseText);}
if(sUrl.length>2000)
{bPost=true;}
if(true==bPost)
{oHttpRequest.open('POST',sUrl,bAsynchronCall);oHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");if(true==this.bUseXRequestedWithHeader)
{oHttpRequest.setRequestHeader("X-Requested-With","XMLHttpRequest");}
oHttpRequest.send(this.sFormData);if(false===bAsynchronCall)
{return coreAjaxOnReadyStateChange(oHttpRequest,sUrl,sCallbackFunction,bReturnXml,bReturnResponseText);}}
else
{oHttpRequest.open('GET',sUrl,bAsynchronCall);if(true==this.bUseXRequestedWithHeader)
{oHttpRequest.setRequestHeader("X-Requested-With","XMLHttpRequest");}
oHttpRequest.send(null);if(bAsynchronCall==false)
{return coreAjaxOnReadyStateChange(oHttpRequest,sUrl,sCallbackFunction,bReturnXml,bReturnResponseText);}}
return true;}
this.setShowErrorMessage=function(bShow)
{if(undefined==bShow)
{var bShow=false;}
gbCoreAjaxShowErrorMessage=bShow;}
this.setShowErrorMessageInStatusBar=function(bShow)
{if(undefined==bShow)
{var bShow=false;}
gbCoreAjaxShowErrorMessageInStatusBar=bShow;}
this.getLastState=function(bShow)
{if(undefined==bShow)
{var bShow=false;}
return coreAjaxErrorMessage(oHttpRequest.status,this.sLastUrl,bShow);}
this.requestGetText=function(sUrl,sCallbackFunction)
{if(undefined===sCallbackFunction)
{return this.__makeHttpRequest(sUrl,sCallbackFunction,false,false,true,true);}
else
{return this.__makeHttpRequest(sUrl,sCallbackFunction,false,false,true,false);}}
this.requestGetTextSynchrone=function(sUrl,sCallbackFunction)
{if(undefined===sCallbackFunction)
{return this.__makeHttpRequest(sUrl,sCallbackFunction,false,false,false,true);}
else
{return this.__makeHttpRequest(sUrl,sCallbackFunction,false,false,false,false);}}
this.requestGetXml=function(sUrl,sCallbackFunction)
{if(undefined===sCallbackFunction)
{return this.__makeHttpRequest(sUrl,sCallbackFunction,true,false,true,true);}
else
{return this.__makeHttpRequest(sUrl,sCallbackFunction,true,false,true,false);}}
this.requestGetXmlSynchrone=function(sUrl,sCallbackFunction)
{if(undefined===sCallbackFunction)
{return this.__makeHttpRequest(sUrl,sCallbackFunction,true,false,false,true);}
else
{return this.__makeHttpRequest(sUrl,sCallbackFunction,true,false,false,false);}}
this.requestGetXmlSynchron=function(sUrl,sCallbackFunction)
{alert("not correct, add the letter e to your function!");return this.requestGetXmlSynchrone(sUrl,sCallbackFunction);}
this.requestPostText=function(sUrl,sCallbackFunction,sFormData)
{if(undefined!=sFormData)
{this.sFormData=sFormData;}
if(undefined===sCallbackFunction)
{return this.__makeHttpRequest(sUrl,sCallbackFunction,false,true,true,true);}
else
{return this.__makeHttpRequest(sUrl,sCallbackFunction,false,true,true,false);}}
this.requestPostTextSynchrone=function(sUrl,sCallbackFunction,sFormData)
{if(undefined!=sFormData)
{this.sFormData=sFormData;}
if(undefined===sCallbackFunction)
{return this.__makeHttpRequest(sUrl,sCallbackFunction,false,true,false,true);}
else
{return this.__makeHttpRequest(sUrl,sCallbackFunction,false,true,false,false);}}
this.requestPostTextSynchron=function(sUrl,sCallbackFunction,sFormData)
{alert("not correct, add the letter e to your function!");this.requestPostTextSynchrone(sUrl,sCallbackFunction,sFormData);}
this.requestPostXml=function(sUrl,sCallbackFunction,sFormData)
{if(undefined!=sFormData)
{this.sFormData=sFormData;}
if(undefined===sCallbackFunction)
{return this.__makeHttpRequest(sUrl,sCallbackFunction,true,true,true,true);}
else
{return this.__makeHttpRequest(sUrl,sCallbackFunction,true,true,true,false);}}
this.requestPostXmlSynchrone=function(sUrl,sCallbackFunction,sFormData)
{if(undefined!=sFormData)
{this.sFormData=sFormData;}
if(undefined===sCallbackFunction)
{return this.__makeHttpRequest(sUrl,sCallbackFunction,true,true,false,true);}
else
{return this.__makeHttpRequest(sUrl,sCallbackFunction,true,true,false,false);}}
this.requestPostXmlSynchron=function(sUrl,sCallbackFunction,sFormData)
{alert("not correct, add the letter e to your function!");this.requestPostXmlSynchrone(sUrl,sCallbackFunction,sFormData);}}; 
/* file ./shared/breox/js/core/validator/zipcode.js*/if('undefined'!=typeof(goCoreWindowOnLoad))
{goCoreWindowOnLoad.add('document.goCoreAjax = new coreAjax();');goCoreWindowOnLoad.add('document.goCoreAjax.bUseXRequestedWithHeader = true;');goCoreWindowOnLoad.add('document.goCoreAjax.setShowErrorMessage( true );');}
else
{document.goCoreAjax=new coreAjax();document.goCoreAjax.bUseXRequestedWithHeader=true;document.goCoreAjax.setShowErrorMessage(true);}
function coreValidatorZipcode(sValidatorName)
{this.NETHERLANDS=121;this.oZipcode=null;this.oZipcodeAdditive=null;this.oHousenumber=null;this.oStreet=null;this.oCity=null;this.oAdditiveAddress=null;this.oForeignAddress=null;this.aSettings=new Array();this.sBaseUrl=document.location.href;this.oCountrySelect=null;this.eCountry=121;this.oRegExp=new RegExp("\[|\]","g");if("undefined"!==typeof(sValidatorName))
{this.sName=sValidatorName;}
else
{this.sName='coreValidatorZipcode';}
this.aFields=new Array();var oThis=this;this.translate=function(sString)
{if("function"===typeof(translate))
{return translate(sString);}
return sString;}
this.getValidationName=function()
{return this.sName;}
this.addField=function(oField,aSettings)
{if("undefined"===typeof(this.aFields[oField.name.replace(this.oRegExp,"_")]))
{this.aFields[oField.name.replace(this.oRegExp,"_")]=new Array();this.aFields[oField.name.replace(this.oRegExp,"_")]['field']=oField;this.aFields[oField.name.replace(this.oRegExp,"_")]['settings']=aSettings;if('undefined'!==typeof(aSettings['base_url']))
{this.sBaseUrl=aSettings['base_url'];}}}
this.getFields=function()
{return this.aFields;}
this.getError=function()
{return this.translate("Zipcode is not valid");}
this.isValid=function(oField,aSettings)
{if(typeof(aSettings['country'])==="undefined")
{eCountry=this.getCountry();}
else
{if("object"===typeof(aSettings['country']))
{eCountry=aSettings['country'].options[aSettings['country'].selectedIndex].value;}
else
{eCountry=aSettings['country'];}}
switch(parseInt(eCountry,10))
{case this.NETHERLANDS:{var sResponse="not found";if(this.oZipcode.value!=""&&this.oZipcodeAdditive.value!=""&&this.oHousenumber.value!="")
{var sChar='?';if(-1!==this.sBaseUrl.indexOf('?'))
{sChar='&';}
var sUrl=this.sBaseUrl+sChar+'zipcode='+this.oZipcode.value+'&zipcode_additive='+this.oZipcodeAdditive.value+'&homenumber='+this.oHousenumber.value+'&country_id='+eCountry;sResponse=document.goCoreAjax.requestGetTextSynchrone(sUrl);}
return this.fillZipcode(sResponse)}
break;default:{return true;}
break;}
return false;}
this.setCountrySelect=function(oCountrySelect)
{this.oCountrySelect=oCountrySelect;}
this.setCountry=function(eCountry)
{this.eCountry=eCountry;}
this.getCountry=function()
{if(null!==this.oCountrySelect)
{return this.oCountrySelect.options[this.oCountrySelect.selectedIndex].value;}
return this.eCountry;}
this.setFields=function(aFields)
{this.aSettings=aFields;this.oZipcode=aFields['zipcode'];this.oZipcodeAdditive=aFields['zipcode_additive'];this.oHousenumber=aFields['housenumber'];this.oCountrySelect=aFields['country'];this.oStreet=aFields['street'];this.oCity=aFields['city'];this.oAdditiveAddress=aFields['additive_address'];this.oForeignAddress=aFields['foreign_address'];}
this.init=function()
{var oReference=this;this.oZipcode.onkeydown=function(oEvent)
{oEvent=(oEvent)?oEvent:((event)?event:null);if(oEvent)
{iPosition=oThis.getSelectionStart(this);iKeycode=oEvent.keyCode;if(35===iKeycode)
{oThis.setSelection(oThis.oZipcodeAdditive,2);oThis.oZipcodeAdditive.focus();}
if(46===iKeycode&&this.value.length===iPosition&&oThis.oZipcodeAdditive.value.length>0)
{oThis.oZipcodeAdditive.focus();oThis.setSelection(oThis.oZipcodeAdditive,0);}
if(39===iKeycode&&this.value.length===iPosition&&iPosition<4)
{oThis.oZipcodeAdditive.focus();oThis.setSelection(oThis.oZipcodeAdditive,0);}}}
this.oZipcode.onkeyup=function(oEvent)
{oEvent=(oEvent)?oEvent:((event)?event:null);if(oEvent)
{iPosition=oThis.getSelectionStart(this);iKeycode=oEvent.keyCode;if(37!==iKeycode&&38!==iKeycode&&39!==iKeycode&&40!==iKeycode&&4===iPosition)
{oThis.oZipcodeAdditive.focus();oThis.setSelection(oThis.oZipcodeAdditive,0,2);}
if(39===iKeycode&&4===iPosition)
{oThis.oZipcodeAdditive.focus();oThis.setSelection(oThis.oZipcodeAdditive,0);}}}
this.oZipcodeAdditive.onkeydown=function(oEvent)
{oEvent=(oEvent)?oEvent:((event)?event:null);if(oEvent)
{iPosition=oThis.getSelectionStart(this);iKeycode=oEvent.keyCode;if(36===iKeycode)
{oThis.oZipcode.focus();oThis.setSelection(oThis.oZipcode,0);}
if(8===iKeycode&&0===iPosition)
{oThis.oZipcode.focus();oThis.setSelection(oThis.oZipcode,4);}}}
this.oZipcodeAdditive.onkeyup=function(oEvent)
{oEvent=(oEvent)?oEvent:((event)?event:null);if(oEvent)
{iPosition=oThis.getSelectionStart(this);iKeycode=oEvent.keyCode;if((37===iKeycode||8===iKeycode)&&0===iPosition)
{oThis.oZipcode.focus();oThis.setSelection(oThis.oZipcode,4);}}}
this.oZipcode.onchange=function()
{oReference.isValid(oReference.oZipcode,oReference.aSettings);}
this.oZipcodeAdditive.onchange=function()
{oReference.isValid(oReference.oZipcode,oReference.aSettings);}
this.oHousenumber.onchange=function()
{oReference.isValid(oReference.oZipcode,oReference.aSettings);}
this.oCountrySelect.onchange=function()
{if(this.options[this.selectedIndex].value==121)
{if(null!==oReference.oForeignAddress)
{oFormRowHouseNumber=getFirstParentByClassName(oReference.oHousenumber,'formrow');oFormRowZipcode=getFirstParentByClassName(oReference.oZipcode,'formrow');oFormRowStreet=getFirstParentByClassName(oReference.oStreet,'formrow');oFormRowCity=getFirstParentByClassName(oReference.oCity,'formrow');oFormRowAdditiveAddress=getFirstParentByClassName(oReference.oAdditiveAddress,'formrow');oFormRowForeignAddress=getFirstParentByClassName(oReference.oForeignAddress,'formrow');oFormRowHouseNumber.style.display='';oFormRowZipcode.style.display='';oFormRowStreet.style.display='';oFormRowCity.style.display='';oFormRowForeignAddress.style.display='none';if(oFormRowAdditiveAddress)
{oFormRowAdditiveAddress.style.display='';}}
oReference.oZipcode.maxLength=4;oReference.oZipcodeAdditive.maxLength=2;oReference.oZipcodeAdditive.style.display='';oReference.oStreet.readOnly=true;oReference.oCity.readOnly=true;}
else
{if(null!==oReference.oForeignAddress)
{oFormRowHouseNumber=getFirstParentByClassName(oReference.oHousenumber,'formrow');oFormRowZipcode=getFirstParentByClassName(oReference.oZipcode,'formrow');oFormRowStreet=getFirstParentByClassName(oReference.oStreet,'formrow');oFormRowCity=getFirstParentByClassName(oReference.oCity,'formrow');oFormRowAdditiveAddress=getFirstParentByClassName(oReference.oAdditiveAddress,'formrow');oFormRowForeignAddress=getFirstParentByClassName(oReference.oForeignAddress,'formrow');oFormRowHouseNumber.style.display='none';oFormRowZipcode.style.display='none';oFormRowStreet.style.display='none';oFormRowCity.style.display='none';oFormRowForeignAddress.style.display='';if(oFormRowAdditiveAddress)
{oFormRowAdditiveAddress.style.display='none';}}
else
{oReference.oZipcode.maxLength=10;oReference.oZipcodeAdditive.maxLength=10;oReference.oZipcodeAdditive.style.display='none';oReference.oStreet.readOnly=false;oReference.oCity.readOnly=false;}}}
if(this.oCountrySelect.options[this.oCountrySelect.selectedIndex].value==121)
{if(null!==this.oForeignAddress)
{var oFormRowForeignAddress=getFirstParentByClassName(this.oForeignAddress,'formrow');if(null!==oFormRowForeignAddress&&false!==oFormRowForeignAddress)
{oFormRowForeignAddress.style.display='none';}}
this.oZipcode.maxLength=4;this.oZipcodeAdditive.maxLength=2;this.oZipcodeAdditive.style.display='';this.oStreet.readOnly=true;this.oStreet.tabIndex=-1;this.oCity.readOnly=true;this.oCity.tabIndex=-1;}
else
{if(null!==this.oForeignAddress)
{oFormRowHouseNumber=getFirstParentByClassName(this.oHousenumber,'formrow');oFormRowZipcode=getFirstParentByClassName(this.oZipcode,'formrow');oFormRowStreet=getFirstParentByClassName(this.oStreet,'formrow');oFormRowCity=getFirstParentByClassName(this.oCity,'formrow');oFormRowAdditiveAddress=getFirstParentByClassName(this.oAdditiveAddress,'formrow');oFormRowForeignAddress=getFirstParentByClassName(this.oForeignAddress,'formrow');oFormRowHouseNumber.style.display='none';oFormRowZipcode.style.display='none';oFormRowStreet.style.display='none';oFormRowCity.style.display='none';oFormRowForeignAddress.style.display='';if(oFormRowAdditiveAddress)
{oFormRowAdditiveAddress.style.display='none';}}
else
{this.oZipcode.maxLength=10;this.oZipcodeAdditive.maxLength=10;this.oZipcodeAdditive.style.display='none';this.oStreet.readOnly=false;this.oCity.readOnly=false;}}}
this.fillZipcode=function(sResponse)
{if(-1!==sResponse.indexOf("|"))
{var aData=sResponse.split("|");this.oStreet.value=aData[0];this.oCity.value=aData[1];this.oZipcodeAdditive.value=this.oZipcodeAdditive.value.toUpperCase();return true;}
else
{var sErrorMessage=this.translate("Invalid combination");if("function"===typeof(Translate))
{sErrorMessage=Translate(sErrorMessage);}
this.oStreet.value=sErrorMessage;this.oCity.value="";return false;}}
this.getSelectionStart=function(oInput)
{if(oInput.createTextRange)
{var oRange=document.selection.createRange().duplicate();oRange.moveEnd('character',oInput.value.length);if(''===oRange.text)
{return oInput.value.length;}
return oInput.value.lastIndexOf(oRange.text);}
else
{return oInput.selectionStart;}}
this.setSelection=function(oInput,iStart,iEnd)
{if(!iEnd)
{iEnd=iStart;}
if(oInput.createTextRange)
{var oRange=oInput.createTextRange();oRange.collapse(true);oRange.moveEnd('character',iEnd);oRange.moveStart('character',iStart);oRange.select();}
else if(oInput.setSelectionRange)
{oInput.focus();oInput.setSelectionRange(iStart,iEnd);}}}; 
/* file ./shared/breox/js/core/validator/required.js*/function coreValidatorRequired()
{this.translate=function(sString)
{if("function"===typeof(translate))
{return translate(sString);}
return sString;}
this.aFields=new Array();this.getValidationName=function()
{return'coreValidatorRequired';}
this.addField=function(oField,aSettings)
{if("undefined"===typeof(this.aFields[oField.name]))
{this.aFields[oField.name]=new Array();oField;this.aFields[oField.name]['field']=oField;this.aFields[oField.name]['settings']=aSettings;}}
this.getFields=function()
{return this.aFields;}
this.getError=function()
{return this.translate("Required");}
this.isValid=function(oField,aSettings)
{if(null!==oField&&'object'===typeof(oField)&&isset(oField.value)&&'string'===typeof(oField.value))
{return oField.value!=="";}
return true;}}; 
