/*
global image functions
Version Date Developer Notes
1.0 2. Oktober 2003 Nicolai Lyng Als (NL) Initial version supported by IE 5.5 and 6.0.
1.1 14 September 2004 Nicolai Lyng Als (NL) Support for ImageLib in Homepage environment.
*/
function getgsImage(imgId,imgType,func,imgTooltip){
if ("" + imgTooltip == "undefined"){
imgTooltip="";
}
if ("" + func == "undefined" || "" + func == ""){
str = "
";
}
else {
str = "
";
}
return str;
}
function getgsImageURL(imgType){
if (top.ishomepage){
// homepage frameset
var brand = top.gsBrand;
return location.protocol + "//" + top.domain_domino + "/image/" + "imagelib" + brand.toLowerCase() + "/$File/ico_" + imgType + ".gif";
}
else if (top.indhold){
// netbank frameset
var brand = top.brand;
brand = brand.toUpperCase();
return location.protocol + "//" + location.host + "/img/" + brand + "/ico_" + imgType + ".gif";
}
else if(top.appcontent){
// intranet portal
var brand = top.getBrand();
brand = brand.toUpperCase();
return location.protocol + "//" + location.host + "/img/" + brand + "/ico_" + imgType + ".gif";
}
}
function getgsCompImageURL(componentType,imgType){
if (top.ishomepage){
// homepage frameset
var brand = top.gsBrand;
return location.protocol + "//" + top.domain_domino + "/image/" + "imagelib" + brand.toLowerCase() + "_" + componentType + "/$File/" + imgType + ".gif";
}
else if (top.indhold){
// netbank frameset
var brand = top.brand;
brand = brand.toUpperCase();
return location.protocol + "//" + location.host + "/img/" + brand + "/" + componentType + "/" + imgType + ".gif";
}
else if(top.appcontent){
// intranet portal
var brand = top.getBrand();
brand = brand.toUpperCase();
return location.protocol + "//" + location.host + "/img/" + brand + "/" + componentType + "/" + imgType + ".gif";
}
}
/*
inactive fields functions
Version Date Developer Notes
1.0 7. Oktober 2003 Claus Witt-Jespersen CWI Initial version supported by IE 5.5 and 6.0.
1.1 25. Marts 2004 Morten Schou Larsen MLAR Rettet til at understøtte radioknapper fornuftigt
*/
// call using fieldDisable(field1,field2,field3) where fields are javascript objects.
function fieldDisable() {
for(i=0;i0 && obj.nodeName!="SELECT") {
var q=0;
var str="";
for (a in obj) {
if (q==0)
myLength=obj[a];
q++;
}
for (b=0;b0 && obj.nodeName!="SELECT") {
var q=0;
var str="";
for (a in obj) {
if (q==0)
myLength=obj[a];
q++;
}
for (b=0;b'
);
obj.insertAdjacentElement('afterEnd',oEle);
//oEle.style.position='relative';
//oEle.style.top='1px';
//oEle.style.left='-'+(obj.clientWidth+2)+'px';
//oEle.style.top='3px';
//obj.style.top=(oEle.offsetTop-1)+'px';
}
// ********** INPUT ****************
else if(obj.tagName=="INPUT"&&(obj.type=="text"||obj.type=="password")) {
obj.oldClassName=obj.className;
obj.className="error";
if(obj.currentStyle.height!="auto") obj.style.pixelHeight=obj.clientHeight;
if(obj.currentStyle.width!="auto") obj.style.pixelWidth=obj.clientWidth;
}
// ********** CHECKBOX ****************
else if(obj.tagName=="INPUT"&&(obj.type=="checkbox")) {
obj.oldClassName=obj.className;
obj.className="error";
/*
if(obj.currentStyle.height!="auto") obj.style.pixelHeight=obj.clientHeight;
if(obj.currentStyle.width!="auto") obj.style.pixelWidth=obj.clientWidth;
*/
}
// ********** TEXTAREA ****************
else if(obj.tagName=="TEXTAREA") {
obj.oldClassName=obj.className;
obj.className="error";
if(obj.currentStyle.height!="auto") obj.style.pixelHeight=obj.clientHeight;
if(obj.currentStyle.width!="auto") obj.style.pixelWidth=obj.clientWidth+13;
}
// ********** Single radio ****************
else if(obj.tagName=="INPUT"&&(obj.type=="radio")) {
obj.oldClassName=obj.className;
obj.className="error";
}
// ********** RADIO-group ****************
else if (obj.length>0 && obj.nodeName!="SELECT") {
var q=0;
var str="";
for (a in obj) {
if (q==0)
myLength=obj[a];
q++;
}
for (b=0;b0 && obj.nodeName!="SELECT") {
var q=0;
var str="";
for (a in obj) {
if (q==0)
myLength=obj[a];
q++;
}
for (b=0;b