if(window&&window.top&&(window!=window.top)){
top.location.href=location.href;
}
String.prototype.trim=function(){
return this.replace(/^\s+|\s+$/g,"");
};
function getElementByIdIndependant(_1){
var _2=null;
if(document.getElementById){
_2=document.getElementById(_1);
}else{
if(document.all){
_2=document.all[_1];
}
}
return _2;
}
function getElementsByTagNameIndependant(_3,_4){
var _5=null;
if(document.all){
alert("here: "+document+"  / "+_3);
alert("here: "+document.getElementsByTagName);
alert("here: "+_3.getElementsByTagName);
_5=_3.tags(_4);
}
}
function ie_getElementsByTagName(_6){
if(_6=="*"){
return document.all;
}else{
return document.all.tags(_6);
}
}
function getElementsByTagNameAndIdPrefix(_7,_8){
var _9=document.getElementsByTagName(_7);
var _a=new Array();
for(var i=0;i<_9.length;i++){
var _c=_9[i];
if(_c.id.indexOf(_8)==0){
_a[_a.length]=_c;
}
}
return _a;
}
function getChildNodesByTagName(_d,_e){
var _f=_e.toLowerCase();
var _10=_d.childNodes;
var _11=new Array();
for(var i=0;i<_10.length;i++){
var _13=_10[i];
if(_13.nodeName.toLowerCase()==_f){
_11[_11.length]=_13;
}
}
return _11;
}
function getMultipleFormElements(_14,_15){
var _16=_14.elements;
var _17=new Array();
for(var i=0;i<_16.length;i++){
var _19=_16[i];
if((_19!=null)&&(_19.name==_15)){
_17[_17.length]=_19;
}
}
return _17;
}
function hideElement(_1a){
if(_1a==null){
}else{
_1a.style.display="none";
}
}
function showElement(_1b){
if(_1b==null){
}else{
_1b.style.display="";
}
}
function clearSelectOptions(_1c){
if(_1c==null){
}else{
if(_1c.options!=null){
var _1d=_1c.options.length;
for(var j=(_1d-1);j>=0;j--){
_1c.options[j]=null;
}
}
}
}
function setDivText(_1f,_20){
var _21=getElementByIdIndependant(_1f);
_21.innerHTML=_20;
}
function simpleToggleElementDisplay(_22){
var el=getElementByIdIndependant(_22);
if(el==null){
return;
}
if(el.style.display=="none"){
el.style.display="";
}else{
el.style.display="none";
}
}
function toggleDisplay(_24,_25,_26,_27){
var el=null;
var _29;
if(document.getElementById){
el=document.getElementById(_25);
_29=document.getElementById(_24);
}else{
if(document.all){
el=document.all[_25];
_29=document.all[_24];
}
}
if(el==null||_29==null){
return;
}
if(el.style.display=="none"){
el.style.display="";
_29.innerHTML=_26;
}else{
el.style.display="none";
_29.innerHTML=_27;
}
}
function toggleStyle(_2a,_2b,_2c,_2d,_2e,_2f){
if(_2b.substr){
toggleIndividualStyle(_2a,_2b,_2c,_2d,_2e,_2f);
}else{
if(_2b.join){
for(var i=0;i<_2b.length;i++){
var _31=_2b[i];
toggleIndividualStyle(_2a,_31,_2c,_2d,_2e,_2f);
}
}else{
}
}
}
function toggleIndividualStyle(_32,_33,_34,_35,_36,_37){
el=getElementByIdIndependant(_33);
elLink=getElementByIdIndependant(_32);
if(el==null||elLink==null){
return;
}
if(el.className.indexOf(_37)>=0){
elLink.innerHTML=_34;
el.className=substituteText(el.className,_37,_36);
}else{
if(el.className.indexOf(_36)>=0){
elLink.innerHTML=_35;
el.className=substituteText(el.className,_36,_37);
}else{
el.className=el.className+" "+_36;
}
}
}
function substituteText(_38,_39,_3a){
var _3b=_38;
var _3c=_38.indexOf(_39);
if(_3c>=0){
var _3d=_38.substring(0,_3c);
var _3e=_38.substring(_3c+_39.length,_38.length);
_3b=_3d+_3a+_3e;
}else{
_3b=_38;
}
return _3b;
}
function addStyleClass(_3f,_40){
if(_3f&&_3f.className&&_40){
var _41=_40.trim();
var _42=_3f.className.trim();
if(!((_42.indexOf(_41)>=0))){
_3f.className+=" "+_41;
}
}else{
}
}
function removeStyleClass(_43,_44){
if(_43&&_43.className&&_44){
var _45=_43.className.trim();
var _46=_44.trim();
if(_45.indexOf(_46)>=0){
_43.className=substituteText(_45,_46,"");
_43.className=_43.className.trim();
}
}else{
}
}
function closewin(_47){
window.opener.focus();
window.opener.document.location.href=_47;
window.close();
}
function openwin(_48){
var _49=window.open(_48,"openwin","height=400,width=550,resizable=1,scrollbars=1,status=0,location=0,menubar=1,toolbar=0");
_49.focus();
}
function openwinMoreImages(_4a){
var _4b=window.open(_4a,"openwin","height=640,width=640,resizable=0,scrollbars=0,status=0,location=0,menubar=0,toolbar=0");
_4b.focus();
}
function openwinSmall(_4c){
var _4d=window.open(_4c,"openwin","height=350,width=500,resizable=1,scrollbars=1,status=0,location=0,menubar=1,toolbar=0");
_4d.focus();
}
function openwinTall(_4e){
var _4f=window.open(_4e,"openwin","height=850,width=800,resizable=1,scrollbars=1,status=0,location=0,menubar=1,toolbar=0");
_4f.focus();
}
function openwinWide(_50){
var _51=window.open(_50,"openwin","height=730,width=920,resizable=1,scrollbars=1,status=0,location=0,menubar=1,toolbar=0");
_51.focus();
}
function openwin(_52,_53){
var _54=window.open(_52,_53,"height=400,width=550,resizable=1,scrollbars=1,status=0,location=0,menubar=1,toolbar=0");
_54.focus();
}
function openwin(_55,_56,_57,_58){
var _59="height="+_57+",width="+_58;
var _5a=window.open(_55,_56,_59+",resizable=1,scrollbars=1,status=0,location=0,menubar=1,toolbar=0");
_5a.focus();
}
function formSubmit(_5b,_5c,_5d,_5e,_5f,_60,_61,_62,_63,_64){
if(onSubmitFormHandler!=null){
onSubmitFormHandler();
}else{
}
if(document.forms[_5b]==null){
}
var _65=document.forms[_5b];
_65.elements["step"].value=_5c;
_65.elements["op_action"].value=_5d;
if(_5e!=null){
_65.elements["op_flavour"].value=_5e;
}
if(_5f!=null&&_60!=null){
if(_65.elements[_5f]==null){
}
_65.elements[_5f].value=_60;
}
if(_61!=null&&_62!=null){
_65.elements[_61].value=_62;
}
if(_63!=null&&_64!=null){
_65.elements[_63].value=_64;
}
_65.submit();
}
function toggleRadioControlledDisplay(_66){
var _67=_66.name;
var _68=_66.value;
var _69=_67+"_"+_68;
var _6a=null;
if(is_ie){
_6a=document.all.tags("div");
}else{
_6a=document.getElementsByTagName("div");
}
if(_6a!=null){
for(var i=0;i<_6a.length;i++){
var _6c=_6a[i];
if(_6c.id.indexOf(_67)>=0){
if(_6c.id==_69){
_6c.style.display="";
}else{
_6c.style.display="none";
}
}
}
}else{
}
}
var preloadedImages=new Array();
function preloadImages(){
var _6d=arguments;
for(var i=0;i<_6d.length;i++){
var _6f=new Image();
_6f.src=_6d[i];
preloadedImages[preloadedImages.length]=_6f;
}
}
function doTextFormElementMouseover(_70){
this.className="textFormFocus";
return false;
}
function doTextFormElementMouseout(_71){
if(!(this.hasFocus)||(!this.hasFocus)){
this.className="textFormBlur";
}
return false;
}
function doTextFormElementFocus(_72){
this.hasFocus=true;
this.className="textFormFocus";
return false;
}
function doTextFormElementBlur(_73){
this.hasFocus=false;
this.className="textFormBlur";
return false;
}
function link(_74){
window.location.href=_74;
}
function doNothing(){
return false;
}
