var FrontColumns_navigation01 = {
currentColumn: 0,
isShowSecondColumn: "",
compId: "",
addClickEvent: function() {
$(".navMenu li").each(function(a) {
$(this).bind("click", function() {
$("#columns-" + FrontColumns_navigation01.compId + "-" + FrontColumns_navigation01.currentColumn).removeClass("navMenubg" + FrontColumns_navigation01.currentColumn);
$(this).addClass("navMenubg" + a);
if (FrontColumns_navigation01.isShowSecondColumn.length >
0) {
$("#secondColumns-" + FrontColumns_navigation01.compId + "-" + FrontColumns_navigation01.currentColumn).hide();
$("#secondColumns-" + FrontColumns_navigation01.compId + "-" + a).show()
}
FrontColumns_navigation01.currentColumn = a
})
})
},
addMouseOverEvent: function() {
$(".navMenu li").each(function(a) {
$(this).bind("mouseover", function() {
$("#columns-" + FrontColumns_navigation01.compId + "-" + FrontColumns_navigation01.currentColumn).removeClass("navMenubg" + FrontColumns_navigation01.currentColumn);
$(this).addClass("navMenubg" + a);
if (FrontColumns_navigation01.isShowSecondColumn.length > 0) {
$("#secondColumns-" + FrontColumns_navigation01.compId + "-" + FrontColumns_navigation01.currentColumn).hide();
$("#secondColumns-" + FrontColumns_navigation01.compId + "-" + a).show()
}
})
})
},
addMouseOutEvent: function() {
$(".navMenu li").each(function(a) {
$(this).bind("mouseout", function() {
$(this).removeClass("navMenubg" + a);
$("#columns-" + FrontColumns_navigation01.compId + "-" + FrontColumns_navigation01.currentColumn).addClass("navMenubg" + FrontColumns_navigation01.currentColumn);
if (FrontColumns_navigation01.isShowSecondColumn.length > 0) {
$("#secondColumns-" + FrontColumns_navigation01.compId + "-" + a).hide();
$("#secondColumns-" + FrontColumns_navigation01.compId + "-" + FrontColumns_navigation01.currentColumn).show()
}
})
})
},
setSelectedColumn: function(a) {
var b = this.getUrlParam(a);
if (b != null) {
this.currentColumn = b
}
},
setFocusColumn: function() {
$("#columns-" + FrontColumns_navigation01.compId + "-" + this.currentColumn).addClass("navMenubg" + this.currentColumn);
if (this.isShowSecondColumn.length > 0) {
$("#secondColumns-" + FrontColumns_navigation01.compId + "-" + this.currentColumn).show()
}
},
getUrlParam: function(a) {
var b = new RegExp("(^|&)" + a + "=([^&]*)(&|$)");
var c = window.locations.toString().match(b);
if (c != null) {
return unescape(c[2])
}
return null
},
init: function(c, b, a) {
this.compId = c;
this.isShowSecondColumn = a;
this.setSelectedColumn(c + "-" + b);
this.addClickEvent();
this.addMouseOverEvent();
this.addMouseOutEvent();
this.setFocusColumn()
},
extEvents: function(d, a) {
var b = this.getUrlParam(d + "FirstColumnId");
var c = this.getUrlParam(d + "SecondColumnId");
if (b == null) {
b = $("#" + d + " ul.nav-first .first").attr("id")
} else {
b = "columns" + b
}
if (c == null) {
c = $("#" + d + " #" + b + " .nav-second .nav-sec-main ul li:first a").attr("id")
} else {
c = "cols" + c
}
$("#" + d + " #" + b).addClass("current");
$("#" + d + " #" + c).addClass("current-a");
$("#" + d + " #" + b + "Sub").show();
if (a) {
$("#" + d + " ul.nav-first li[id^='columns']").hover(function() {
if ($(this).attr("id") != b) {
$("#" + d + " #" + b).removeClass("current");
$("#" + d + " #" + b + "Sub").hide();
$(this).addClass("current");
$("#" + d + " #" + $(this).attr("id") + "Sub").show();
if (!$(this).find(".nav-second .nav-sec-main a").hasClass("current-a")) {
$(this).find(".nav-second .nav-sec-main a:first").addClass("current-a")
}
}
}, function() {
$(this).removeClass("current");
$("#" + d + " #" + $(this).attr("id") + "Sub").hide();
$("#" + d + " #" + b).addClass("current");
$("#" + d + " #" + b + "Sub").show()
});
$("#" + d + " ul.nav-first li[id^='columns']").click(function() {
$("#" + d + " #" + b).removeClass("current");
$("#" + d + " #" + b + "Sub").hide();
$(this).addClass("current");
$("#" + d + " #" + $(this).attr("id") + "Sub").show();
b = $("#" + d + " ul.nav-first li.current").attr("id")
});
$("#" + d + " ul.nav-first .nav-second .nav-sec-main a").click(function() {
$(this).parent().parent().find("a").removeClass("current-a");
$(this).addClass("current-a");
var e = $(this).parents(".nav-second").attr("id");
if (e !== b + "Sub") {
$("#" + d + " #" + b).removeClass("current");
$("#" + d + " #" + b + "Sub").hide();
b = e.substring(0, e.length - 3);
$("#" + d + " #" + b).addClass("current");
$("#" + d + " #" + e).show()
}
})
} else {
$("#" + d + " ul.nav-first li[id^='columns']").hover(function() {
if ($(this).attr("id") != b) {
$("#" + d + " #" + b).removeClass("current");
$(this).addClass("current")
}
}, function() {
$(this).removeClass("current");
$("#" + d + " #" + b).addClass("current")
});
$("#" + d + " ul.nav-first li[id^='columns']").click(function() {
$("#" + d + " #" + b).removeClass("current");
$(this).addClass("current");
b = $("#" + d + " ul.nav-first li.current").attr("id")
})
}
},
ddlevelsmenu: {
enableshim: true,
arrowpointers: {
downarrow: ["../images/columns/arrow-down.gif", 11, 7],
rightarrow: ["../images/columns/arrow-right.gif", 12, 12],
showarrow: {
toplevel: true,
sublevel: true
}
},
hideinterval: 200,
effects: {
enableswipe: true,
enablefade: true,
duration: 200
},
httpsiframesrc: "blank.htm",
topmenuids: [],
topitems: {},
subuls: {},
lastactivesubul: {},
topitemsindex: -1,
ulindex: -1,
hidetimers: {},
shimadded: false,
nonFF: !/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent),
getoffset: function(b, a) {
return (b.offsetParent) ? b[a] + this.getoffset(b.offsetParent, a) : b[a]
},
getoffsetof: function(a) {
a._offsets = {
left: this.getoffset(a, "offsetLeft"),
top: this.getoffset(a, "offsetTop")
}
},
getwindowsize: function() {
this.docwidth = window.innerWidth ? window.innerWidth - 10 : this.standardbody.clientWidth - 10;
this.docheight = window.innerHeight ? window.innerHeight - 15 : this.standardbody.clientHeight - 18
},
gettopitemsdimensions: function() {
for (var a = 0; a < this.topmenuids.length; a++) {
var d = this.topmenuids[a];
for (var b = 0; b < this.topitems[d].length; b++) {
var e = this.topitems[d][b];
var c = document.getElementById(e.getAttribute("rel"));
e._dimensions = {
w: e.offsetWidth,
h: e.offsetHeight,
submenuw: c.offsetWidth,
submenuh: c.offsetHeight
}
}
}
},
isContained: function(a, b) {
var b = window.event || b;
var d = b.relatedTarget || ((b.type == "mouseover") ? b.fromElement : b.toElement);
while (d && d != a) {
try {
d = d.parentNode
} catch (b) {
d = a
}
}
if (d == a) {
return true
} else {
return false
}
},
addpointer: function(d, f, a, c) {
var e = document.createElement("img");
e.src = a[0];
e.style.width = a[1] + "px";
e.style.height = a[2] + "px";
if (f == "FrontColumn_navigation01_rightarrowpointer") {
e.style.left = d.offsetWidth - a[2] - 2 + "px"
}
e.className = f;
var b = d.childNodes[d.firstChild.nodeType != 1 ? 1 : 0];
if (b && b.tagName == "SPAN") {
d = b
}
if (c == "before") {
d.insertBefore(e, d.firstChild)
} else {
d.appendChild(e)
}
},
css: function(b, a, c) {
var d = new RegExp("(^|\\s+)" + a + "($|\\s+)","ig");
if (c == "check") {
return d.test(b.className)
} else {
if (c == "remove") {
b.className = b.className.replace(d, "")
} else {
if (c == "add" && !d.test(b.className)) {
b.className += " " + a
}
}
}
},
addshimmy: function(b) {
var c = (!window.opera) ? document.createElement("iframe") : document.createElement("div");
c.className = "FrontColumn_navigation01_ddiframeshim";
c.setAttribute("src", locations.protocol == "https:" ? this.httpsiframesrc : "about:blank");
c.setAttribute("frameborder", "0");
b.appendChild(c);
try {
c.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"
} catch (a) {}
return c
},
positionshim: function(g, c, a, f, e) {
if (g._istoplevel) {
var e = window.pageYOffset ? window.pageYOffset : this.standardbody.scrollTop;
var d = g._offsets.top - e;
var b = e + this.docheight - g._offsets.top - g._dimensions.h;
if (d > 0) {
this.shimmy.topshim.style.left = f + "px";
this.shimmy.topshim.style.top = e + "px";
this.shimmy.topshim.style.width = "99%";
this.shimmy.topshim.style.height = d + "px"
}
if (b > 0) {
this.shimmy.bottomshim.style.left = f + "px";
this.shimmy.bottomshim.style.top = g._offsets.top + g._dimensions.h + "px";
this.shimmy.bottomshim.style.width = "99%";
this.shimmy.bottomshim.style.height = b + "px"
}
}
},
hideshim: function() {
this.shimmy.topshim.style.width = this.shimmy.bottomshim.style.width = 0;
this.shimmy.topshim.style.height = this.shimmy.bottomshim.style.height = 0
},
buildmenu: function(d, f, c, e, a, b) {
f._master = d;
f._pos = e;
f._istoplevel = a;
if (a) {
this.addEvent(f, function(g) {
FrontColumns_navigation01.ddlevelsmenu.hidemenu(FrontColumns_navigation01.ddlevelsmenu.subuls[this._master][parseInt(this._pos)])
}, "click")
}
this.subuls[d][e] = c;
f._dimensions = {
w: f.offsetWidth,
h: f.offsetHeight,
submenuw: c.offsetWidth,
submenuh: c.offsetHeight
};
this.getoffsetof(f);
c.style.visibility = "hidden";
this.addEvent(f, function(j) {
if (!FrontColumns_navigation01.ddlevelsmenu.isContained(this, j)) {
var h = FrontColumns_navigation01.ddlevelsmenu.subuls[this._master][parseInt(this._pos)];
if (this._istoplevel) {
FrontColumns_navigation01.ddlevelsmenu.css(this, "selected", "add");
clearTimeout(FrontColumns_navigation01.ddlevelsmenu.hidetimers[this._master][this._pos])
}
FrontColumns_navigation01.ddlevelsmenu.getoffsetof(f);
var l = window.pageXOffset ? window.pageXOffset : FrontColumns_navigation01.ddlevelsmenu.standardbody.scrollLeft;
var i = window.pageYOffset ? window.pageYOffset : FrontColumns_navigation01.ddlevelsmenu.standardbody.scrollTop;
var n = this._offsets.left + this._dimensions.submenuw + (this._istoplevel && b == "topbar" ? 0 : this._dimensions.w);
var g = this._offsets.top + this._dimensions.submenuh;
var m = (this._istoplevel ? this._offsets.left + (b == "sidebar" ? this._dimensions.w : 0) : this._dimensions.w);
if (n - l > FrontColumns_navigation01.ddlevelsmenu.docwidth) {
m += -this._dimensions.submenuw + (this._istoplevel && b == "topbar" ? this._dimensions.w : -this._dimensions.w)
}
m=navMenuLeft(this);
h.style.left = m + "px";
var k = (this._istoplevel ? this._offsets.top + (b == "sidebar" ? 0 : this._dimensions.h) : this.offsetTop);
if (g - i > FrontColumns_navigation01.ddlevelsmenu.docheight) {
if (this._dimensions.submenuh < this._offsets.top + (b == "sidebar" ? this._dimensions.h : 0) - i) {
k += -this._dimensions.submenuh + (this._istoplevel && b == "topbar" ? -this._dimensions.h : this._dimensions.h)
} else {
k += -(this._offsets.top - i) + (this._istoplevel && b == "topbar" ? -this._dimensions.h : 0)
}
}
h.style.top = k + "px";
if (FrontColumns_navigation01.ddlevelsmenu.enableshim && (FrontColumns_navigation01.ddlevelsmenu.effects.enableswipe == false || FrontColumns_navigation01.ddlevelsmenu.nonFF)) {
FrontColumns_navigation01.ddlevelsmenu.positionshim(f, h, b, l, i)
} else {
h.FFscrollInfo = {
x: l,
y: i
}
}
FrontColumns_navigation01.ddlevelsmenu.showmenu(f, h, b)
}
}, "mouseover");
this.addEvent(f, function(h) {
var g = FrontColumns_navigation01.ddlevelsmenu.subuls[this._master][parseInt(this._pos)];
if (this._istoplevel) {
if (!FrontColumns_navigation01.ddlevelsmenu.isContained(this, h) && !FrontColumns_navigation01.ddlevelsmenu.isContained(g, h)) {
FrontColumns_navigation01.ddlevelsmenu.hidemenu(g)
}
} else {
if (!this._istoplevel && !FrontColumns_navigation01.ddlevelsmenu.isContained(this, h)) {
FrontColumns_navigation01.ddlevelsmenu.hidemenu(g)
}
}
}, "mouseout")
},
setopacity: function(a, b) {
a.style.opacity = b;
if (typeof a.style.opacity != "string") {
a.style.MozOpacity = b;
if (a.filters) {
a.style.filter = "progid:DXImageTransform.Microsoft.alpha(opacity=" + b * 100 + ")"
}
}
},
showmenu: function(d, b, a) {
if (this.effects.enableswipe || this.effects.enablefade) {
if (this.effects.enableswipe) {
var c = (d._istoplevel && a == "topbar") ? d._dimensions.submenuh : d._dimensions.submenuw;
b.style.width = b.style.height = 0;
b.style.overflow = "hidden"
}
if (this.effects.enablefade) {
this.setopacity(b, 0)
}
b._curanimatedegree = 0;
b.style.visibility = "visible";
clearInterval(b._animatetimer);
b._starttime = new Date().getTime();
b._animatetimer = setInterval(function() {
FrontColumns_navigation01.ddlevelsmenu.revealmenu(d, b, c, a)
}, 10)
} else {
b.style.visibility = "visible"
}
},
revealmenu: function(e, c, d, b) {
var a = new Date().getTime() - c._starttime;
if (a < this.effects.duration) {
if (this.effects.enableswipe) {
if (c._curanimatedegree == 0) {
c.style[e._istoplevel && b == "topbar" ? "width" : "height"] = "auto"
}
c.style[e._istoplevel && b == "topbar" ? "height" : "width"] = (c._curanimatedegree * d) + "px"
}
if (this.effects.enablefade) {
this.setopacity(c, c._curanimatedegree)
}
} else {
clearInterval(c._animatetimer);
if (this.effects.enableswipe) {
c.style.width = "auto";
c.style.height = "auto";
c.style.overflow = "visible"
}
if (this.effects.enablefade) {
this.setopacity(c, 1);
c.style.filter = ""
}
if (this.enableshim && c.FFscrollInfo) {
this.positionshim(e, c, b, c.FFscrollInfo.x, c.FFscrollInfo.y)
}
}
c._curanimatedegree = (1 - Math.cos((a / this.effects.duration) * Math.PI)) / 2
},
hidemenu: function(a) {
if (typeof a._pos != "undefined") {
this.css(this.topitems[a._master][parseInt(a._pos)], "selected", "remove");
if (this.enableshim) {
this.hideshim()
}
}
clearInterval(a._animatetimer);
a.style.visibility = "hidden"
},
addEvent: function(b, c, a) {
if (b.addEventListener) {
b.addEventListener(a, c, false)
} else {
if (b.attachEvent) {
b.attachEvent("on" + a, function() {
return c.call(b, window.event)
})
}
}
},
domready: function(a) {
if (dd_domreadycheck) {
a();
return
}
if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", function() {
document.removeEventListener("DOMContentLoaded", arguments.callee, false);
a();
dd_domreadycheck = true
}, false)
} else {
if (document.attachEvent) {
if (document.documentElement.doScroll && window == window.top) {
(function() {
if (dd_domreadycheck) {
a();
return
}
try {
document.documentElement.doScroll("left")
} catch (b) {
setTimeout(arguments.callee, 0);
return
}
a();
dd_domreadycheck = true
}
)()
}
}
}
if (document.attachEvent && parent.length > 0) {
this.addEvent(window, function() {
a()
}, "load")
}
},
init: function(b, e) {
this.standardbody = (document.compatMode == "CSS1Compat") ? document.documentElement : document.body;
this.topitemsindex = -1;
this.ulindex = -1;
this.topmenuids.push(b);
this.topitems[b] = [];
this.subuls[b] = [];
this.hidetimers[b] = [];
if (this.enableshim && !this.shimadded) {
this.shimmy = {};
this.shimmy.topshim = this.addshimmy(document.body);
this.shimmy.bottomshim = this.addshimmy(document.body);
this.shimadded = true
}
var j = document.getElementById(b);
var d = j.getElementsByTagName("a");
this.getwindowsize();
for (var g = 0; g < d.length; g++) {
if (d[g].getAttribute("rel")) {
this.topitemsindex++;
this.ulindex++;
var l = d[g];
this.topitems[b][this.topitemsindex] = l;
var m = document.getElementById(l.getAttribute("rel"));
m.style.zIndex = 2000;
m._master = b;
m._pos = this.topitemsindex;
this.addEvent(m, function() {
FrontColumns_navigation01.ddlevelsmenu.hidemenu(this)
}, "click");
var n = (e == "sidebar") ? "FrontColumn_navigation01_rightarrowpointer" : "FrontColumn_navigation01_downarrowpointer";
var h = (e == "sidebar") ? this.arrowpointers.rightarrow : this.arrowpointers.downarrow;
if (this.arrowpointers.showarrow.toplevel) {
this.addpointer(l, n, h, (e == "sidebar") ? "before" : "after")
}
this.buildmenu(b, l, m, this.ulindex, true, e);
m.onmouseover = function() {
clearTimeout(FrontColumns_navigation01.ddlevelsmenu.hidetimers[this._master][this._pos])
}
;
this.addEvent(m, function(i) {
if (!FrontColumns_navigation01.ddlevelsmenu.isContained(this, i) && !FrontColumns_navigation01.ddlevelsmenu.isContained(FrontColumns_navigation01.ddlevelsmenu.topitems[this._master][parseInt(this._pos)], i)) {
var c = this;
if (FrontColumns_navigation01.ddlevelsmenu.enableshim) {
FrontColumns_navigation01.ddlevelsmenu.hideshim()
}
FrontColumns_navigation01.ddlevelsmenu.hidetimers[this._master][this._pos] = setTimeout(function() {
FrontColumns_navigation01.ddlevelsmenu.hidemenu(c)
}, FrontColumns_navigation01.ddlevelsmenu.hideinterval)
}
}, "mouseout");
var f = m.getElementsByTagName("ul");
for (var k = 0; k < f.length; k++) {
this.ulindex++;
var a = f[k].parentNode;
if (this.arrowpointers.showarrow.sublevel) {
this.addpointer(a.getElementsByTagName("a")[0], "FrontColumn_navigation01_rightarrowpointer", this.arrowpointers.rightarrow, "before")
}
this.buildmenu(b, a, f[k], this.ulindex, false, e)
}
}
}
this.addEvent(window, function() {
FrontColumns_navigation01.ddlevelsmenu.getwindowsize();
FrontColumns_navigation01.ddlevelsmenu.gettopitemsdimensions()
}, "resize")
}
},
d2ddlevelsmenu: {
enableshim: false,
arrowpointers: {
downarrow: ["../images/columns/arrow-down.gif", 11, 7],
rightarrow: ["../images/columns/nav-arrow-03.gif", 7, 10],
showarrow: {
toplevel: false,
sublevel: true
}
},
hideinterval: 200,
effects: {
enableswipe: true,
enablefade: true,
duration: 200
},
httpsiframesrc: "blank.htm",
topmenuids: [],
topitems: {},
subuls: {},
lastactivesubul: {},
topitemsindex: -1,
ulindex: -1,
hidetimers: {},
shimadded: false,
nonFF: !/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent),
getoffset: function(b, a) {
return (b.offsetParent) ? b[a] + this.getoffset(b.offsetParent, a) : b[a]
},
getoffsetof: function(a) {
a._offsets = {
left: this.getoffset(a, "offsetLeft"),
top: this.getoffset(a, "offsetTop")
}
},
getwindowsize: function() {
this.docwidth = window.innerWidth ? window.innerWidth - 10 : this.standardbody.clientWidth - 10;
this.docheight = window.innerHeight ? window.innerHeight - 15 : this.standardbody.clientHeight - 18
},
gettopitemsdimensions: function() {
for (var a = 0; a < this.topmenuids.length; a++) {
var d = this.topmenuids[a];
for (var b = 0; b < this.topitems[d].length; b++) {
var e = this.topitems[d][b];
var c = document.getElementById(e.getAttribute("rel"));
e._dimensions = {
w: e.offsetWidth,
h: e.offsetHeight,
submenuw: c.offsetWidth,
submenuh: c.offsetHeight
}
}
}
},
isContained: function(a, b) {
var b = window.event || b;
var d = b.relatedTarget || ((b.type == "mouseover") ? b.fromElement : b.toElement);
while (d && d != a) {
try {
d = d.parentNode
} catch (b) {
d = a
}
}
if (d == a) {
return true
} else {
return false
}
},
addpointer: function(d, f, a, c) {
var e = document.createElement("img");
e.src = a[0];
e.style.width = a[1] + "px";
e.style.height = a[2] + "px";
if (f == "rightarrowpointer") {
e.style.left = d.offsetWidth - a[2] - 2 + "px"
}
e.className = f;
var b = d.childNodes[d.firstChild.nodeType != 1 ? 1 : 0];
if (b && b.tagName == "SPAN") {
d = b
}
if (c == "before") {
d.insertBefore(e, d.firstChild)
} else {
d.appendChild(e)
}
},
css: function(b, a, c) {
var d = new RegExp("(^|\\s+)" + a + "($|\\s+)","ig");
if (c == "check") {
return d.test(b.className)
} else {
if (c == "remove") {
b.className = b.className.replace(d, "")
} else {
if (c == "add" && !d.test(b.className)) {
b.className += " " + a
}
}
}
},
addshimmy: function(b) {
var c = (!window.opera) ? document.createElement("iframe") : document.createElement("div");
c.className = "ddiframeshim";
c.setAttribute("src", locations.protocol == "https:" ? this.httpsiframesrc : "about:blank");
c.setAttribute("frameborder", "0");
b.appendChild(c);
try {
c.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"
} catch (a) {}
return c
},
positionshim: function(g, c, a, f, e) {
if (g._istoplevel) {
var e = window.pageYOffset ? window.pageYOffset : this.standardbody.scrollTop;
var d = g._offsets.top - e;
var b = e + this.docheight - g._offsets.top - g._dimensions.h;
if (d > 0) {
this.shimmy.topshim.style.left = f + "px";
this.shimmy.topshim.style.top = e + "px";
this.shimmy.topshim.style.width = "99%";
this.shimmy.topshim.style.height = d + "px"
}
if (b > 0) {
this.shimmy.bottomshim.style.left = f + "px";
this.shimmy.bottomshim.style.top = g._offsets.top + g._dimensions.h + "px";
this.shimmy.bottomshim.style.width = "99%";
this.shimmy.bottomshim.style.height = b + "px"
}
}
},
hideshim: function() {
this.shimmy.topshim.style.width = this.shimmy.bottomshim.style.width = 0;
this.shimmy.topshim.style.height = this.shimmy.bottomshim.style.height = 0
},
buildmenu: function(d, f, c, e, a, b) {
f._master = d;
f._pos = e;
f._istoplevel = a;
if (a) {
this.addEvent(f, function(g) {
FrontColumns_navigation01.d2ddlevelsmenu.hidemenu(FrontColumns_navigation01.d2ddlevelsmenu.subuls[this._master][parseInt(this._pos)])
}, "click")
}
this.subuls[d][e] = c;
f._dimensions = {
w: f.offsetWidth,
h: f.offsetHeight,
submenuw: c.offsetWidth,
submenuh: c.offsetHeight
};
this.getoffsetof(f);
c.style.visibility = "hidden";
this.addEvent(f, function(j) {
if (!FrontColumns_navigation01.d2ddlevelsmenu.isContained(this, j)) {
var h = FrontColumns_navigation01.d2ddlevelsmenu.subuls[this._master][parseInt(this._pos)];
if (this._istoplevel) {
FrontColumns_navigation01.d2ddlevelsmenu.css(this, "selected", "add");
clearTimeout(FrontColumns_navigation01.d2ddlevelsmenu.hidetimers[this._master][this._pos])
}
FrontColumns_navigation01.d2ddlevelsmenu.getoffsetof(f);
var l = window.pageXOffset ? window.pageXOffset : FrontColumns_navigation01.d2ddlevelsmenu.standardbody.scrollLeft;
var i = window.pageYOffset ? window.pageYOffset : FrontColumns_navigation01.d2ddlevelsmenu.standardbody.scrollTop;
var n = this._offsets.left + this._dimensions.submenuw + (this._istoplevel && b == "topbar" ? 0 : this._dimensions.w);
var g = this._offsets.top + this._dimensions.submenuh;
var m = (this._istoplevel ? this._offsets.left + (b == "sidebar" ? this._dimensions.w : 0) : this._dimensions.w);
if (n - l > FrontColumns_navigation01.d2ddlevelsmenu.docwidth) {
m += -this._dimensions.submenuw + (this._istoplevel && b == "topbar" ? this._dimensions.w : -this._dimensions.w)
}
m=navMenuLeft(this);
h.style.left = m + "px";
var k = (this._istoplevel ? this._offsets.top + (b == "sidebar" ? 0 : this._dimensions.h) : this.offsetTop);
if (g - i > FrontColumns_navigation01.d2ddlevelsmenu.docheight) {
if (this._dimensions.submenuh < this._offsets.top + (b == "sidebar" ? this._dimensions.h : 0) - i) {
k += -this._dimensions.submenuh + (this._istoplevel && b == "topbar" ? -this._dimensions.h : this._dimensions.h)
} else {
k += -(this._offsets.top - i) + (this._istoplevel && b == "topbar" ? -this._dimensions.h : 0)
}
}
h.style.top = k-45 + "px";
if (FrontColumns_navigation01.d2ddlevelsmenu.enableshim && (FrontColumns_navigation01.d2ddlevelsmenu.effects.enableswipe == false || FrontColumns_navigation01.d2ddlevelsmenu.nonFF)) {
FrontColumns_navigation01.d2ddlevelsmenu.positionshim(f, h, b, l, i)
} else {
h.FFscrollInfo = {
x: l,
y: i
}
}
FrontColumns_navigation01.d2ddlevelsmenu.showmenu(f, h, b)
}
}, "mouseover");
this.addEvent(f, function(h) {
var g = FrontColumns_navigation01.d2ddlevelsmenu.subuls[this._master][parseInt(this._pos)];
if (this._istoplevel) {
if (!FrontColumns_navigation01.d2ddlevelsmenu.isContained(this, h) && !FrontColumns_navigation01.d2ddlevelsmenu.isContained(g, h)) {
FrontColumns_navigation01.d2ddlevelsmenu.hidemenu(g)
}
} else {
if (!this._istoplevel && !FrontColumns_navigation01.d2ddlevelsmenu.isContained(this, h)) {
FrontColumns_navigation01.d2ddlevelsmenu.hidemenu(g)
}
}
}, "mouseout")
},
setopacity: function(a, b) {
a.style.opacity = b;
if (typeof a.style.opacity != "string") {
a.style.MozOpacity = b;
if (a.filters) {
a.style.filter = "progid:DXImageTransform.Microsoft.alpha(opacity=" + b * 100 + ")"
}
}
},
showmenu: function(d, b, a) {
if (this.effects.enableswipe || this.effects.enablefade) {
if (this.effects.enableswipe) {
var c = (d._istoplevel && a == "topbar") ? d._dimensions.submenuh : d._dimensions.submenuw;
b.style.width = b.style.height = 0;
b.style.overflow = "hidden"
}
if (this.effects.enablefade) {
this.setopacity(b, 0)
}
b._curanimatedegree = 0;
b.style.visibility = "visible";
clearInterval(b._animatetimer);
b._starttime = new Date().getTime();
b._animatetimer = setInterval(function() {
FrontColumns_navigation01.d2ddlevelsmenu.revealmenu(d, b, c, a)
}, 10)
} else {
b.style.visibility = "visible"
}
},
revealmenu: function(e, c, d, b) {
var a = new Date().getTime() - c._starttime;
if (a < this.effects.duration) {
if (this.effects.enableswipe) {
if (c._curanimatedegree == 0) {
c.style[e._istoplevel && b == "topbar" ? "width" : "height"] = "auto"
}
c.style[e._istoplevel && b == "topbar" ? "height" : "width"] = (c._curanimatedegree * d) + "px"
}
if (this.effects.enablefade) {
this.setopacity(c, c._curanimatedegree)
}
} else {
clearInterval(c._animatetimer);
if (this.effects.enableswipe) {
c.style.width = "auto";
c.style.height = "auto";
c.style.overflow = "visible"
}
if (this.effects.enablefade) {
this.setopacity(c, 1);
c.style.filter = ""
}
if (this.enableshim && c.FFscrollInfo) {
this.positionshim(e, c, b, c.FFscrollInfo.x, c.FFscrollInfo.y)
}
}
c._curanimatedegree = (1 - Math.cos((a / this.effects.duration) * Math.PI)) / 2
},
hidemenu: function(a) {
if (typeof a._pos != "undefined") {
this.css(this.topitems[a._master][parseInt(a._pos)], "selected", "remove");
if (this.enableshim) {
this.hideshim()
}
}
clearInterval(a._animatetimer);
a.style.visibility = "hidden"
},
addEvent: function(b, c, a) {
if (b.addEventListener) {
b.addEventListener(a, c, false)
} else {
if (b.attachEvent) {
b.attachEvent("on" + a, function() {
return c.call(b, window.event)
})
}
}
},
init: function(b, e) {
this.standardbody = (document.compatMode == "CSS1Compat") ? document.documentElement : document.body;
this.topitemsindex = -1;
this.ulindex = -1;
this.topmenuids.push(b);
this.topitems[b] = [];
this.subuls[b] = [];
this.hidetimers[b] = [];
if (this.enableshim && !this.shimadded) {
this.shimmy = {};
this.shimmy.topshim = this.addshimmy(document.body);
this.shimmy.bottomshim = this.addshimmy(document.body);
this.shimadded = true
}
var j = document.getElementById(b);
var d = j.getElementsByTagName("a");
this.getwindowsize();
for (var g = 0; g < d.length; g++) {
if (d[g].getAttribute("rel")) {
this.topitemsindex++;
this.ulindex++;
var l = d[g];
this.topitems[b][this.topitemsindex] = l;
var m = document.getElementById(l.getAttribute("rel"));
m.style.zIndex = 2000;
m._master = b;
m._pos = this.topitemsindex;
this.addEvent(m, function() {
FrontColumns_navigation01.d2ddlevelsmenu.hidemenu(this)
}, "click");
var n = (e == "sidebar") ? "rightarrowpointer" : "downarrowpointer";
var h = (e == "sidebar") ? this.arrowpointers.rightarrow : this.arrowpointers.downarrow;
if (this.arrowpointers.showarrow.toplevel) {
this.addpointer(l, n, h, (e == "sidebar") ? "before" : "after")
}
this.buildmenu(b, l, m, this.ulindex, true, e);
m.onmouseover = function() {
clearTimeout(FrontColumns_navigation01.d2ddlevelsmenu.hidetimers[this._master][this._pos])
}
;
this.addEvent(m, function(i) {
if (!FrontColumns_navigation01.d2ddlevelsmenu.isContained(this, i) && !FrontColumns_navigation01.d2ddlevelsmenu.isContained(FrontColumns_navigation01.d2ddlevelsmenu.topitems[this._master][parseInt(this._pos)], i)) {
var c = this;
if (FrontColumns_navigation01.d2ddlevelsmenu.enableshim) {
FrontColumns_navigation01.d2ddlevelsmenu.hideshim()
}
FrontColumns_navigation01.d2ddlevelsmenu.hidetimers[this._master][this._pos] = setTimeout(function() {
FrontColumns_navigation01.d2ddlevelsmenu.hidemenu(c)
}, FrontColumns_navigation01.d2ddlevelsmenu.hideinterval)
}
}, "mouseout");
var f = m.getElementsByTagName("ul");
for (var k = 0; k < f.length; k++) {
this.ulindex++;
var a = f[k].parentNode;
if (this.arrowpointers.showarrow.sublevel) {
this.addpointer(a.getElementsByTagName("a")[0], "rightarrowpointer", this.arrowpointers.rightarrow, "before")
}
this.buildmenu(b, a, f[k], this.ulindex, false, e)
}
}
}
this.addEvent(window, function() {
FrontColumns_navigation01.d2ddlevelsmenu.getwindowsize();
FrontColumns_navigation01.d2ddlevelsmenu.gettopitemsdimensions()
}, "resize")
}
},
nativeMenu: function(b) {
var a;
jQuery(document).ready(function(e) {
a = screen.width;
var c = e("#" + b + ">ul");
var d = c.find("ul").parent();
d.each(function(g) {
var h = e(this);
var f = e(this).find("ul:eq(0)");
this._dimensions = {
w: this.offsetWidth,
h: this.offsetHeight,
subulw: f.outerWidth(),
subulh: f.outerHeight()
};
this.istopheader = h.parents("ul").length == 1 ? true : false;
h.hover(function(l) {
var j = e(this).children("ul:eq(0)");
_offsets = {
left: e(this).offset().left,
top: e(this).offset().top
};
if (e(this).parents("ul").length == 1) {
e(this).attr("class", "current")
}
var m = this.istopheader ? 0 : this._dimensions.w;
var k = j.find("li");
k.each(function(n) {
if (e(this).children("ul").length != 0) {
if (_offsets.left + m + this._dimensions.subulw * 2 > a) {
e(this).children("a").attr("class", "has-left")
} else {
e(this).children("a").attr("class", "has-right")
}
}
});
if (_offsets.left + m + this._dimensions.subulw * 2 > a) {
j.addClass(j.parents("ul").length == 1 || j.parents("ul").attr("class").indexOf("left-slid") != -1 ? "left-slid" : "left-forward")
}
e(this).attr("style", j.parents("ul").length == 1 ? "position:relative;z-index:12;" : "position:relative;");
var i = e(this).children("a").attr("class");
if (i != undefined) {
if (i.indexOf("left") != -1) {
e(this).children("a").addClass(" left-current")
} else {
if (i.indexOf("right") != -1) {
e(this).children("a").addClass(" right-current")
}
}
}
e(this).find("ul").attr("style", "visibility:visible");
e(this).children("ul:eq(0)").find("ul").attr("style", "visibility:hidden")
}, function(i) {
e(this).children("a").removeClass("right-current");
e(this).children("a").removeClass("left-current");
e(this).removeClass("current");
e(this).find("ul").attr("style", "visibility:hidden")
})
})
})
}
};
$(document).ready(function() {
var a = null;
function b() {
if (a) {
return
}
a = setInterval(function() {
$("#feature li.current a span").animate({
top: "-55px"
}, "fast");
$("#feature li.current a p").animate({
top: "-55px"
}, "fast")
}, 200)
}
function c() {
if (!a) {
return
}
$("#feature li.current a span").animate({
top: "0px"
}, "fast");
$("#feature li.current a p").animate({
top: "0px"
}, "fast");
$("#feature li.current").removeClass("current");
clearInterval(a);
a = null
}
$("#feature li").hover(function() {
$(this).addClass("current");
b()
}, c)
});
var FrontNews_search01 = {
check: function(a, f, b) {
var d = document.getElementById(a + "_form");
var c = d.newsKeywordDisplay;
if (f == "Y" && b == c.value) {
alert(i18n_FrontNews_search01_inputkeyword);
c.focus();
return false
}
if (f == "Y") {
if (this.trim(c.value) == "" || this.trim(c.value) == null || this.trim(c.value) == b) {
alert(i18n_FrontNews_search01_inputkeyword);
c.focus();
return false
}
}
if (f == "" && b == c.value) {
c.value = ""
}
if (specialCharactersCheck(this.trim(c.value))) {
alert(i18n_FrontNews_search01_keywordspecsymbol + this.trim(c.value));
c.focus();
return false
}
var e = encodeURIComponent(this.trim(c.value));
d.newsKeyword.value = e;
return true
},
trim: function(a, b) {
a = "" + a;
if (b == "l" || b == "L") {
RegularExp = /^\s+/gi;
return a.replace(RegularExp, "")
} else {
if (b == "r" || b == "R") {
RegularExp = /\s+$/gi;
return a.replace(RegularExp, "")
} else {
RegularExp = /^\s+|\s+$/gi;
return a.replace(RegularExp, "")
}
}
}
};
var FrontPublic_slideShow01 = function() {
this.ce_slide_effect_style = null;
this.ce_slide_index = 0;
this.ce_slide_pic_temple = null;
this.ce_slide_open_type = null;
this.ce_slide_show_title = null;
this.ce_slide_show_content = null;
this.ce_slide_tag_style = null;
this.ce_slide_recursion_times = null;
this.ce_slide_id = "";
this.ce_requestDataFilePath = "";
this.ce_slide_settimeout = null;
this.ce_slide_autoPlay = null;
this.ce_slide_totle = null;
this.ce_slide_img_width = null;
this.ce_slide_img_height = null;
this.ce_slide_thumbnail_width = null;
this.ce_slide_thumbnail_height = null;
this.ce_slide_tag_text_width = 16;
this.ce_slide_tag_text_height = 16;
this.ce_slide_info_mark_height = 60;
this.ce_slide_thumbnail_max_width = 0;
this.ce_slide_thumbnail_show_width = 0;
this.ce_slide_thumbnail_pages = 1;
this.ce_slide_thumbnail_groups = 0;
this.ce_slide_thumbnail_tmp = 0;
this.ce_slide_contes_obj = Object();
this.ce_slide_imgs = new Array();
this.ce_slide_imgs_hrefs = new Array();
this.ce_slide_thumbnails = new Array();
this.ce_slide_titles = new Array();
this.ce_slide_memos = new Array();
this.ce_slide_frame = null;
this.ce_slide_contente = null;
this.ce_slide_pic = null;
this.ce_slide_tag_thumbnail = null;
this.ce_slide_thumbnail_list = null;
this.ce_slide_thumbnail_arrowhead = null;
this.ce_slide_tag_text = null;
this.ce_slide_info_mark = null;
this.ce_slide_info = null;
this.ce_slide_info_title = null;
this.ce_slide_text_memo = null;
this.ce_slide_arrowhead_left = null;
this.ce_slide_arrowhead_right = null;
this.FrontPublic_slideShow01_tempSetTimeout = null;
this.ce_slide_init = function(setJsonData, querySegment, tempData) {
window.clearTimeout(this.FrontPublic_slideShow01_tempSetTimeout);
if (setJsonData) {
var setJsonData = this.ce_slide_strToJson(setJsonData);
this.ce_slide_open_type = setJsonData.openType;
this.ce_slide_tag_style = setJsonData.showType;
this.ce_slide_recursion_times = setJsonData.changeTimes;
this.ce_slide_show_title = setJsonData.isShowSlideTitle;
this.ce_slide_show_content = setJsonData.isShowSlideContent;
this.ce_requestDataFilePath = setJsonData.requestDataFilePath;
this.ce_slide_id = this.ce_requestDataFilePath.replace("/comp-FrontSlide_listJson01", "FrontPublic_slideShow01");
var d = new Date();
var t = "" + d.getFullYear() + d.getMonth() + d.getDate();
this.ce_slide_contes_obj = tempData;
this.ce_slide_frame = $("#" + this.ce_slide_id + "");
this.ce_slide_contente = $("#" + this.ce_slide_id + " .slide-contente");
this.ce_slide_pic = $("#" + this.ce_slide_id + " .slide-pic ul");
this.ce_slide_tag_thumbnail = $("#" + this.ce_slide_id + " .slide-tag-thumbnail ul");
this.ce_slide_thumbnail_list = $("#" + this.ce_slide_id + " .thumbnail-list");
this.ce_slide_thumbnail_arrowhead = $("#" + this.ce_slide_id + " .slide-tag-thumbnail .arrowhead");
this.ce_slide_tag_text = $("#" + this.ce_slide_id + " .slide-tag-text ul");
this.ce_slide_info_mark = $("#" + this.ce_slide_id + " .slide-info-mark");
this.ce_slide_info = $("#" + this.ce_slide_id + " .slide-info");
this.ce_slide_info_title = $("#" + this.ce_slide_id + " .slide-info h3");
this.ce_slide_text_memo = $("#" + this.ce_slide_id + " .slide-text");
this.ce_slide_arrowhead_left = $("#" + this.ce_slide_id + " .arrowhead-left");
this.ce_slide_arrowhead_right = $("#" + this.ce_slide_id + " .arrowhead-right");
this.ce_slide_totle = this.ce_slide_contes_obj.contents.length;
this.ce_slide_contents_init();
this.ce_slide_tag_init();
this.ce_slide_img_init();
this.ce_slide_run();
var thise = this;
this.ce_slide_pic.hover(function(event) {
window.clearTimeout(thise.FrontPublic_slideShow01_tempSetTimeout)
}, function(event) {
thise.ce_slide_loop()
})
}
}
;
this.ce_slide_contents_init = function() {
this.ce_slide_effect_style = this.ce_slide_contes_obj.setData.changeStyle;
this.ce_slide_autoPlay = this.ce_slide_contes_obj.setData.isPlaysSet;
for (var i = 0; i < this.ce_slide_totle; i++) {
this.ce_slide_imgs[i] = this.ce_slide_contes_obj.contents[i].bigPicPath;
this.ce_slide_imgs[i] = this.ce_slide_contes_obj.contents[i].bigPicPath;
this.ce_slide_imgs_hrefs[i] = this.ce_slide_contes_obj.contents[i].plink;
this.ce_slide_thumbnails[i] = this.ce_slide_contes_obj.contents[i].smallPicPath;
this.ce_slide_titles[i] = this.ce_slide_contes_obj.contents[i].slideName;
this.ce_slide_memos[i] = this.ce_slide_contes_obj.contents[i].descriPtion
}
}
;
this.ce_slide_tag_text_init = function() {
for (var i = 0; i < this.ce_slide_totle; i++) {
if (i == 0) {
this.ce_slide_tag_text.append("" + (i + 1) + "")
} else {
this.ce_slide_tag_text.append("" + (i + 1) + "")
}
}
}
;
this.ce_slide_tag_thumbnail_init = function() {
if (this.ce_slide_thumbnails.length) {
for (var i = 0; i < this.ce_slide_totle; i++) {
this.ce_slide_tag_thumbnail.append("")
}
}
this.ce_slide_thumbnail_max_width += parseInt(this.ce_slide_tag_thumbnail.find("li").width());
this.ce_slide_thumbnail_max_width += parseInt(this.ce_slide_tag_thumbnail.find("li").css("margin-left").replace("px", ""));
this.ce_slide_thumbnail_max_width += parseInt(this.ce_slide_tag_thumbnail.find("li").css("margin-right").replace("px", ""));
this.ce_slide_thumbnail_max_width += parseInt(this.ce_slide_tag_thumbnail.find("li").css("padding-left").replace("px", ""));
this.ce_slide_thumbnail_max_width += parseInt(this.ce_slide_tag_thumbnail.find("li").css("padding-right").replace("px", ""));
this.ce_slide_thumbnail_max_width = parseInt(this.ce_slide_thumbnail_max_width * this.ce_slide_totle);
if (parseInt(this.ce_slide_frame.width()) < this.ce_slide_thumbnail_max_width) {
this.ce_slide_thumbnail_show_width = this.ce_slide_frame.width() - parseInt(this.ce_slide_tag_thumbnail.parent().parent().find(".arrowhead").width() * 2);
this.ce_slide_tag_thumbnail.parent().width(this.ce_slide_thumbnail_show_width);
this.ce_slide_tag_thumbnail.width(this.ce_slide_thumbnail_max_width);
this.ce_slide_thumbnail_groups = this.ce_slide_thumbnail_max_width / this.ce_slide_thumbnail_show_width;
this.ce_slide_thumbnail_groups = (Math.floor(this.ce_slide_thumbnail_groups) > 0) ? parseInt(this.ce_slide_thumbnail_groups) + 1 : this.ce_slide_thumbnail_groups;
this.ce_slide_arrowhead_left.addClass("no-arrowhead")
} else {
var li_width = parseInt(this.ce_slide_frame.width()) / parseInt(this.ce_slide_totle);
li_width = li_width / parseInt(this.ce_slide_frame.width()) * 100;
this.ce_slide_tag_thumbnail.find("li").attr("style", "padding:0px;margin:0px;width:" + li_width + "%");
this.ce_slide_tag_thumbnail.width(parseInt(this.ce_slide_frame.width()));
this.ce_slide_tag_thumbnail.parent().width(parseInt(this.ce_slide_frame.width()));
this.ce_slide_thumbnail_arrowhead.attr("style", "display:none")
}
}
;
this.ce_slide_tag_init = function() {
switch (parseInt(this.ce_slide_tag_style)) {
case 1:
this.ce_slide_tag_text.parent().css("display", "block");
this.ce_slide_tag_text_init();
break;
case 0:
this.ce_slide_tag_thumbnail.parent().parent().css("display", "block");
this.ce_slide_tag_thumbnail_init();
break
}
}
;
this.ce_slide_tag_changeStyle = function() {
var nowObj = null;
if (this.ce_slide_tag_text.length) {
this.ce_slide_tag_text.find("li").removeClass();
nowObj = this.ce_slide_tag_text.find("li:eq(" + this.ce_slide_index + ")");
nowObj.addClass("slide-hover")
}
if (this.ce_slide_thumbnails.length) {
this.ce_slide_tag_thumbnail.find("li").removeClass();
nowObj = this.ce_slide_tag_thumbnail.find("li:eq(" + this.ce_slide_index + ")");
nowObj.addClass("slide-hover")
}
}
;
this.ce_slide_img_init = function() {
this.ce_slide_pic.html("");
this.ce_slide_contente.css("height", this.ce_slide_img_height);
for (var i = 0; i < this.ce_slide_totle; i++) {
if (parseInt(this.ce_slide_imgs_hrefs[i].length) > 0) {
this.ce_slide_pic.append("")
} else {
if (parseInt(this.ce_slide_imgs_hrefs[i].length) <= 0) {
this.ce_slide_pic.append("")
}
}
}
}
;
this.ce_slide_effect_init = function(style) {
switch (style) {
case 1:
if (!this.ce_slide_pic_temple) {
this.ce_slide_pic_temple = this.ce_slide_pic.find("li:eq(" + (this.ce_slide_imgs.length - 1) + ")")
}
this.ce_slide_effect_gradual();
break;
case 2:
this.ce_slide_pic_temple = (this.ce_slide_pic_temple) ? this.ce_slide_pic_temple : 1;
this.ce_slide_pic_temple = (this.ce_slide_index == null) ? this.ce_slide_pic_temple : (this.ce_slide_index + 1);
this.ce_slide_effect_aspect_x("right");
break;
case 3:
this.ce_slide_pic_temple = (this.ce_slide_pic_temple) ? this.ce_slide_pic_temple : 1;
this.ce_slide_pic_temple = (this.ce_slide_index == null) ? this.ce_slide_pic_temple : (this.ce_slide_index + 1);
this.ce_slide_effect_aspect_x("left");
break;
case 4:
this.ce_slide_pic_temple = (this.ce_slide_pic_temple) ? this.ce_slide_pic_temple : 1;
this.ce_slide_pic_temple = (this.ce_slide_index == null) ? this.ce_slide_pic_temple : (this.ce_slide_index + 1);
this.ce_slide_effect_aspect_y("bottom");
break;
case 5:
this.ce_slide_pic_temple = (this.ce_slide_pic_temple) ? this.ce_slide_pic_temple : 1;
this.ce_slide_pic_temple = (this.ce_slide_index == null) ? this.ce_slide_pic_temple : (this.ce_slide_index + 1);
this.ce_slide_effect_aspect_y("top");
break
}
}
;
this.ce_slide_effect_aspect_x = function(aspect) {
var aspect_float;
var slide_pic_width = this.ce_slide_frame.width() * this.ce_slide_imgs.length;
var now_position;
if (aspect == "left") {
aspect_float = "right";
now_position = -(slide_pic_width - this.ce_slide_frame.width() * this.ce_slide_pic_temple)
}
if (aspect == "right") {
aspect_float = "left";
now_position = (this.ce_slide_pic_temple == 1) ? 0 : -(this.ce_slide_frame.width() * (this.ce_slide_pic_temple - 1))
}
this.ce_slide_pic.css("position", "absolute");
this.ce_slide_pic.css("width", slide_pic_width);
this.ce_slide_pic.animate({
left: now_position
}, "slow");
this.ce_slide_pic.find("li").css("float", aspect_float);
this.ce_slide_pic_temple = (this.ce_slide_pic_temple >= this.ce_slide_imgs.length) ? 1 : this.ce_slide_pic_temple + 1
}
;
this.ce_slide_effect_aspect_y = function(aspect) {
if (aspect == "top") {
this.ce_slide_pic.html("");
this.ce_slide_pic.css("position", "absolute");
for (var i = this.ce_slide_imgs.length - 1; i >= 0; i--) {
if (parseInt(this.ce_slide_imgs_hrefs[i].length)) {
this.ce_slide_pic.append("")
} else {
this.ce_slide_pic.append("")
}
}
var now_position = -(this.ce_slide_pic.height() - this.ce_slide_pic.find("li").height() * this.ce_slide_pic_temple);
this.ce_slide_pic.animate({
top: now_position
}, "slow")
}
if (aspect == "bottom") {
this.ce_slide_pic.css("position", "absolute");
var now_position = (this.ce_slide_pic_temple == 1) ? 0 : -(this.ce_slide_pic.find("li").height() * (this.ce_slide_pic_temple - 1));
this.ce_slide_pic.animate({
top: now_position
}, "slow")
}
this.ce_slide_pic_temple = (this.ce_slide_pic_temple >= this.ce_slide_imgs.length) ? 1 : this.ce_slide_pic_temple + 1
}
;
this.ce_slide_effect_gradual = function() {
this.ce_slide_pic.find("li").css("position", "absolute");
this.ce_slide_pic.find("li").css("top", "0");
this.ce_slide_pic.find("li").css("left", "0");
this.ce_slide_pic.find("li").css("display", "none");
var nowOBJ = this.ce_slide_pic.find("li:eq(" + this.ce_slide_index + ")");
nowOBJ.fadeIn("slow")
}
;
this.ce_slide_show = function() {
this.ce_slide_effect_init(this.ce_slide_effect_style);
this.ce_slide_contente.width(this.ce_slide_frame.width());
this.ce_slide_pic.find("img").width(this.ce_slide_frame.width());
this.ce_slide_pic.find("img").height(this.ce_slide_contente.height());
this.ce_slide_pic.parent().width(this.ce_slide_frame.width());
this.ce_slide_info_title.html("");
this.ce_slide_text_memo.html("");
this.ce_slide_tag_changeStyle();
if (parseInt(this.ce_slide_show_title)) {
this.ce_slide_info_title.html(this.ce_slide_titles[this.ce_slide_index])
}
if (parseInt(this.ce_slide_show_content)) {
this.ce_slide_text_memo.html(this.ce_slide_memos[this.ce_slide_index])
}
this.ce_slide_index = (this.ce_slide_index >= (this.ce_slide_imgs.length - 1)) ? 0 : (this.ce_slide_index + 1)
}
;
this.ce_slide_loop = function() {
this.ce_slide_show();
var thise = this;
if (this.ce_slide_autoPlay) {
thise.FrontPublic_slideShow01_tempSetTimeout = setTimeout(function() {
thise.ce_slide_loop()
}, thise.ce_slide_recursion_times)
}
}
;
this.ce_slide_hover_init = function(obj, thise) {
obj.click(function() {
thise.ce_slide_index = obj.index(this);
thise.ce_slide_show();
if (this.ce_slide_autoPlay) {
window.clearTimeout(thise.FrontPublic_slideShow01_tempSetTimeout);
thise = setTimeout(function() {
thise.ce_slide_loop()
}, thise.ce_slide_recursion_times)
}
})
}
;
this.ce_slide_arrowhead_click_init = function(obj, thise) {
obj.click(function() {
var arrowhead = $(this).attr("class").split(" ");
switch (arrowhead[0].replace(/(^\s*)|(\s*$)/g, "")) {
case "arrowhead-left":
if (thise.ce_slide_thumbnail_pages > 1 && thise.ce_slide_thumbnail_pages != 1) {
thise.ce_slide_thumbnail_tmp += thise.ce_slide_thumbnail_show_width;
thise.ce_slide_tag_thumbnail.animate({
left: thise.ce_slide_thumbnail_tmp
}, "slow");
thise.ce_slide_thumbnail_pages = ((thise.ce_slide_thumbnail_pages - 1) < 0) ? 0 : (thise.ce_slide_thumbnail_pages - 1)
}
if (thise.ce_slide_thumbnail_pages <= 1) {
$(this).addClass("no-arrowhead");
thise.ce_slide_arrowhead_right.removeClass("no-arrowhead")
}
if (thise.ce_slide_thumbnail_pages < thise.ce_slide_thumbnail_groups) {
thise.ce_slide_arrowhead_right.removeClass("no-arrowhead")
}
break;
case "arrowhead-right":
if (thise.ce_slide_thumbnail_pages < thise.ce_slide_thumbnail_groups) {
thise.ce_slide_thumbnail_tmp -= thise.ce_slide_thumbnail_show_width;
thise.ce_slide_tag_thumbnail.animate({
left: thise.ce_slide_thumbnail_tmp
}, "slow");
thise.ce_slide_thumbnail_pages += 1
}
if (thise.ce_slide_thumbnail_pages >= thise.ce_slide_thumbnail_groups) {
$(this).addClass("no-arrowhead");
thise.ce_slide_arrowhead_left.removeClass("no-arrowhead")
}
if (thise.ce_slide_thumbnail_pages > 1 && thise.ce_slide_thumbnail_pages != 1) {
thise.ce_slide_arrowhead_left.removeClass("no-arrowhead")
}
break
}
})
}
;
this.ce_slide_run = function() {
var arrowhead_h;
this.ce_slide_hover_init(this.ce_slide_tag_thumbnail.find("li"), this);
this.ce_slide_hover_init(this.ce_slide_tag_text.find("li"), this);
this.ce_slide_arrowhead_click_init(this.ce_slide_tag_thumbnail.parent().parent().find(".arrowhead"), this);
var thise = this;
this.ce_slide_tag_thumbnail.parent().parent().find(".arrowhead").hover(function() {
arrowhead_h = $(this).attr("class").split(" ");
switch (arrowhead_h[0].replace(/(^\s*)|(\s*$)/g, "")) {
case "arrowhead-left":
if (thise.ce_slide_thumbnail_pages > 1) {
$(this).addClass("arrowhead-left-hover")
}
break;
case "arrowhead-right":
if (thise.ce_slide_thumbnail_pages < thise.ce_slide_thumbnail_groups) {
$(this).addClass("arrowhead-right-hover")
}
break
}
}, function() {
arrowhead_h = $(this).attr("class").split(" ");
switch (arrowhead_h[0].replace(/(^\s*)|(\s*$)/g, "")) {
case "arrowhead-left":
$(this).removeClass("arrowhead-left-hover");
break;
case "arrowhead-right":
$(this).removeClass("arrowhead-right-hover");
break
}
});
this.ce_slide_loop()
}
;
this.d5_slide = function(userW, userH) {
var sWidth = $("#slider_name").width();
$("#slider_name").width(userW);
$("#slider_name").height(userH);
var len = $("#slider_name .silder_panel").length;
var index = 0;
var picTimer;
var btn = "PrevNext";
$("#slider_name").append(btn);
$("#slider_name .silder_nav li").css({
opacity: "0.6",
filter: "alpha(opacity=60)"
}).mouseover(function() {
index = $("#slider_name .silder_nav li").index(this);
showPics(index)
}).eq(0).trigger("mouseover");
$("#slider_name .prev,#slider_name .next").css({
opacity: "0.2",
filter: "alpha(opacity=20)"
}).hover(function() {
$(this).stop(true, false).animate({
opacity: "0.6",
filter: "alpha(opacity=60)"
}, 300)
}, function() {
$(this).stop(true, false).animate({
opacity: "0.2",
filter: "alpha(opacity=20)"
}, 300)
});
$("#slider_name .prev").click(function() {
index -= 1;
if (index == -1) {
index = len - 1
}
showPics(index)
});
$("#slider_name .next").click(function() {
index += 1;
if (index == len) {
index = 0
}
showPics(index)
});
$("#slider_name .silder_con").css("width", sWidth * (len));
$("#slider_name").hover(function() {
clearInterval(picTimer)
}, function() {
picTimer = setInterval(function() {
showPics(index);
index++;
if (index == len) {
index = 0
}
}, 3000)
}).trigger("mouseleave");
function showPics(index) {
var nowLeft = -index * sWidth;
$("#slider_name .silder_con").stop(true, false).animate({
left: nowLeft
}, 300);
$("#slider_name .silder_nav li").removeClass("current").eq(index).addClass("current");
$("#slider_name .silder_nav li").stop(true, false).animate({
opacity: "0.5"
}, 300).eq(index).stop(true, false).animate({
opacity: "1"
}, 300)
}
}
;
this.ce_slide_strToJson = function(str) {
segs = str.match(/=/g).length;
for (var i = 0; i < segs; i++) {
str = str.replace("=", ":'").replace("&", "',")
}
str += "'";
return evals("str = {" + str + "};")
}
};
var FrontPublic_slideShow02 = function() {
function c(f, d, h) {
var j = f.getElementsByTagName(d);
for (var g = 0, k = j.length, e = []; g < k; g++) {
if (j[g].className == h) {
e.push(j[g])
}
}
if (e.length == 1) {
e = e[0]
}
return e
}
function a(d, e) {
if (d.filters) {
d.filters.alpha.opacity = Math.round(e)
} else {
d.style.opacity = e / 100
}
}
function b(e, h, d, g, j) {
this.slides = [];
this.over = false;
this.S = this.S0 = h;
this.iW = d;
this.iH = g;
this.oP = j;
this.oc = document.getElementById(e);
this.frm = c(this.oc, "div", "slide");
this.NF = this.frm.length;
this.resize();
for (var f = 0; f < this.NF; f++) {
this.slides[f] = new Slide(this,f)
}
this.oc.parent = this;
this.view = this.slides[0];
this.Z = this.mx;
this.oc.onmouseout = function() {
this.parent.mouseout();
return false
}
}
b.prototype = {
run: function() {
this.Z += this.over ? (this.mn - this.Z) * 0.5 : (this.mx - this.Z) * 0.5;
this.view.calc();
var d = this.NF;
while (d--) {
this.slides[d].move()
}
},
resize: function() {
this.wh = this.oc.clientWidth;
this.ht = this.oc.clientHeight;
this.wr = this.wh * this.iW;
this.r = this.ht / this.wr;
this.mx = this.wh / this.NF;
this.mn = (this.wh * (1 - this.iW)) / (this.NF - 1)
},
mouseout: function() {
this.over = false;
a(this.view.img, this.oP)
}
};
Slide = function(d, e) {
this.parent = d;
this.N = e;
this.x0 = this.x1 = e * d.mx;
this.v = 0;
this.loaded = false;
this.cpt = 0;
this.start = new Date();
this.obj = d.frm[e];
this.img = c(this.obj, "img", "diapo");
if (e == 0) {
this.obj.style.borderLeft = "none"
}
this.obj.style.left = Math.floor(this.x0) + "px";
a(this.img, d.oP);
this.obj.parent = this;
this.obj.onmouseover = function() {
this.parent.over();
return false
}
}
;
Slide.prototype = {
calc: function() {
var e = this.parent;
for (var d = 0; d <= this.N; d++) {
e.slides[d].x1 = d * e.Z
}
for (var d = this.N + 1; d < e.NF; d++) {
e.slides[d].x1 = e.wh - (e.NF - d) * e.Z
}
},
move: function() {
var f = this.parent;
var e = (this.x1 - this.x0) / f.S;
if (this.N && Math.abs(e) > 0.5) {
this.obj.style.left = Math.floor(this.x0 += e) + "px"
}
var d = (this.N < f.NF - 1) ? f.slides[this.N + 1].x0 - this.x0 : f.wh - this.x0;
if (Math.abs(d - this.v) > 0.5) {
this.v = d;
this.cpt++
} else {
if (!this.pro) {
this.pro = true;
var g = new Date() - this.start;
if (this.cpt > 1) {
f.S = Math.max(2, (28 / (g / this.cpt)) * f.S0)
}
}
}
if (!this.loaded) {
if (this.img.complete) {
this.img.style.visibility = "visible";
this.loaded = true
}
}
},
over: function() {
this.parent.resize();
this.parent.over = true;
a(this.parent.view.img, this.parent.oP);
this.parent.view = this;
this.start = new Date();
this.cpt = 0;
this.pro = false;
this.calc();
a(this.img, 100)
}
};
return {
init: function(d) {
this.s1 = new b("slider",d,1.84 / 3,1 / 3.2,70);
setInterval("FrontPublic_slideShow02.s1.run();", d)
}
}
}();
var FrontProducts_list01 = {
changeOrderby: function(A, E, D) {
var C = A.value;
var F = document.getElementById(E);
F.orderby.value = C;
try {
F.action_page.value = D
} catch (B) {}
F.submit()
},
changeOrderby2: function(A, E, D) {
var C = A;
var F = document.getElementById(E);
F.orderby.value = C;
try {
F.action_page.value = D
} catch (B) {}
F.submit()
},
changeView: function(A, D, C) {
var E = document.getElementById(D);
E.spType.value = A;
try {
E.action_page.value = C
} catch (B) {}
E.submit()
},
loadMemberLevelID: function(B) {
var G = document.getElementsByName(B);
var A = document.cookie;
var F = A.indexOf("c_memberInfo=");
if (F == -1) {
for (var C = 0; C < G.length; C++) {
G[C].parentNode.style.display = "none"
}
return
}
var E = A.indexOf(";", F);
if (E == -1) {
E = A.length
}
F = "c_memberInfo".length + 1 + F;
var D = unescape(A.substring(F, E));
for (var C = 0; C < G.length; C++) {
if (G[C].value != D) {
G[C].parentNode.style.display = "none"
} else {
G[C].parentNode.style.display = "block"
}
}
},
toPrice: function(B, A) {
if (A == "_blank") {
window.open(B)
} else {
if (A == "_self") {
document.locations.href = B
} else {
document.locations.href = B
}
}
}
};
var imf = function() {
var E = 0;
var C = [];
function A(K, G, H) {
var J = K.getElementsByTagName(G);
for (var I = 0, L = J.length, M = []; I < L; I++) {
if (J[I].className == H) {
M.push(J[I])
}
}
if (M.length == 1) {
M = M[0]
}
return M
}
function F(H, G, I) {
if (window.addEventListener) {
H.addEventListener(G, I, false)
} else {
if (window.attachEvent) {
r = H.attachEvent("on" + G, I)
}
}
}
function B(H, K) {
var I = false;
if (document.createElement("canvas").getContext) {
I = document.createElement("canvas");
I.width = K.width;
I.height = K.height;
var G = I.getContext("2d");
G.translate(0, K.height);
G.scale(1, -1);
G.globalCompositeOperation = "destination-out";
var J = G.createLinearGradient(0, 0, 0, K.height * 2);
J.addColorStop(1, "rgba(255, 255, 255, 0)");
J.addColorStop(0, "rgba(255, 255, 255, 1)");
G.fillStyle = J;
G.fillRect(0, 0, K.width, K.height * 2)
} else {
I = document.createElement("img");
I.src = K.src;
I.style.filter = "flipv progid:DXImageTransform.Microsoft.Alpha(opacity=50, style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy=" + (K.height * 0.25) + ")"
}
I.style.position = "absolute";
I.style.left = "-1000px";
H.appendChild(I);
return I
}
function D(L, G, M, K) {
this.diapos = [];
this.scr = false;
this.size = G;
this.zoom = M;
this.bdw = K;
this.oCont = L;
this.oc = document.getElementById(L);
this.scrollbar = A(this.oc, "div", "scrollbar");
this.text = A(this.oc, "div", "text");
this.title = A(this.text, "div", "title");
this.legend = A(this.text, "div", "legend");
this.bar = A(this.oc, "img", "bar");
this.arL = A(this.oc, "img", "arrow-left");
this.arR = A(this.oc, "img", "arrow-right");
this.bw = this.bar.width;
this.alw = this.arL.width - 5;
this.arw = this.arR.width - 5;
this.bar.parent = this.oc.parent = this;
this.arL.parent = this.arR.parent = this;
this.view = this.back = -1;
this.resize();
this.oc.onselectstart = function() {
return false
}
;
var I = A(this.oc, "div", "bank").getElementsByTagName("a");
this.NF = I.length;
for (var H = 0, J; J = I[H]; H++) {
this.diapos[H] = new Diapo(this,H,J.rel,J.title || "- " + H + " -",J.innerHTML || J.rel,J.href || "",J.target || "_self")
}
if (window.addEventListener) {
this.oc.addEventListener("DOMMouseScroll", function(N) {
this.parent.scroll(-N.detail)
}, false)
} else {
this.oc.onmousewheel = function() {
this.parent.scroll(event.wheelDelta)
}
}
this.bar.onmousedown = function(O) {
if (!O) {
O = window.event
}
var N = O.screenX - this.offsetLeft;
var P = this.parent;
this.parent.oc.onmousemove = function(Q) {
if (!Q) {
Q = window.event
}
P.bar.style.left = Math.round(Math.min((P.ws - P.arw - P.bw), Math.max(P.alw, Q.screenX - N))) + "px";
P.view = Math.round(((Q.screenX - N)) / (P.ws - P.alw - P.arw - P.bw) * P.NF);
if (P.view != P.back) {
P.calc()
}
return false
}
;
this.parent.oc.onmouseup = function(Q) {
P.oc.onmousemove = null;
return false
}
;
return false
}
;
this.arR.onclick = this.arR.ondblclick = function() {
if (this.parent.view < this.parent.NF - 1) {
this.parent.calc(1)
}
}
;
this.arL.onclick = this.arL.ondblclick = function() {
if (this.parent.view > 0) {
this.parent.calc(-1)
}
}
}
D.prototype = {
calc: function(H) {
if (H) {
this.view += H
}
var K = 0;
var N = 0;
var M = this.diapos[this.view];
if (M && M.loaded) {
var G = this.diapos[this.back];
if (G && G != M) {
G.img.className = "diapo";
G.z1 = 1
}
this.title.replaceChild(document.createTextNode(M.title), this.title.firstChild);
this.legend.replaceChild(document.createTextNode(M.text), this.legend.firstChild);
if (M.url) {
M.img.className = "diapo link";
window.status = "hyperlink: " + M.url
} else {
M.img.className = "diapo";
window.status = ""
}
M.w1 = Math.min(M.iw, this.wh * 0.5) * M.z1;
var J = M.x1 = (this.wh * 0.5) - (M.w1 * 0.5);
var O = J + M.w1 + this.bdw;
for (var L = this.view + 1, M; M = this.diapos[L]; L++) {
if (M.loaded) {
M.x1 = O;
M.w1 = (this.ht / M.r) * this.size;
O += M.w1 + this.bdw;
K += M.w1 + this.bdw
}
}
O = J - this.bdw;
for (var L = this.view - 1, M; M = this.diapos[L]; L--) {
if (M.loaded) {
M.w1 = (this.ht / M.r) * this.size;
M.x1 = O - M.w1;
O -= M.w1 + this.bdw;
K += M.w1 + this.bdw;
N += M.w1 + this.bdw
}
}
if (!this.scr && K) {
var I = (this.ws - this.alw - this.arw - this.bw) / K;
this.bar.style.left = Math.round(this.alw + N * I) + "px"
}
this.back = this.view
}
},
scroll: function(G) {
if (G < 0) {
if (this.view < this.NF - 1) {
this.calc(1)
}
} else {
if (this.view > 0) {
this.calc(-1)
}
}
},
resize: function() {
this.wh = this.oc.clientWidth;
this.ht = this.oc.clientHeight;
this.ws = this.scrollbar.offsetWidth;
this.calc();
this.run(true)
},
run: function(H) {
var G = this.NF;
while (G--) {
this.diapos[G].move(H)
}
}
};
Diapo = function(M, H, I, K, J, G, L) {
this.parent = M;
this.loaded = false;
this.title = K;
this.text = J;
this.url = G;
this.target = L;
this.N = H;
this.img = document.createElement("img");
this.img.src = I;
this.img.parent = this;
this.img.className = "diapo";
this.x0 = this.parent.oc.clientWidth;
this.x1 = this.x0;
this.w0 = 0;
this.w1 = 0;
this.z1 = 1;
this.img.parent = this;
this.img.onclick = function() {
this.parent.click()
}
;
this.parent.oc.appendChild(this.img);
if (G) {
this.img.onmouseover = function() {
this.className = "diapo link"
}
;
this.img.onmouseout = function() {
this.className = "diapo"
}
}
}
;
Diapo.prototype = {
move: function(K) {
if (this.loaded) {
var I = this.x1 - this.x0;
var G = this.w1 - this.w0;
if (Math.abs(I) > 2 || Math.abs(G) > 2 || K) {
this.x0 += I * 0.1;
this.w0 += G * 0.1;
if (this.x0 < this.parent.wh && this.x0 + this.w0 > 0) {
this.visible = true;
var J = this.img.style;
var H = this.w0 * this.r;
J.left = Math.round(this.x0) + "px";
J.bottom = Math.floor(this.parent.ht * 0.25) + "px";
J.width = Math.round(this.w0) + "px";
J.height = Math.round(H) + "px";
if (this.flx) {
var J = this.flx.style;
J.left = Math.round(this.x0) + "px";
J.top = Math.ceil(this.parent.ht * 0.75 + 1) + "px";
J.width = Math.round(this.w0) + "px";
J.height = Math.round(H) + "px"
}
} else {
if (this.visible) {
this.visible = false;
this.img.style.width = "0px";
if (this.flx) {
this.flx.style.width = "0px"
}
}
}
}
} else {
if (this.img.complete && this.img.width) {
this.iw = this.img.width;
this.ih = this.img.height;
this.r = this.ih / this.iw;
this.loaded = true;
this.flx = B(this.parent.oc, this.img);
if (this.parent.view < 0) {
this.parent.view = this.N
}
this.parent.calc()
}
}
},
click: function() {
if (this.parent.view == this.N) {
if (this.url) {
window.open(this.url, this.target)
} else {
this.z1 = this.z1 == 1 ? this.parent.zoom : 1;
this.parent.calc()
}
} else {
this.parent.view = this.N;
this.parent.calc()
}
return false
}
};
return {
create: function(J, G, K, I) {
var H = function() {
var M = false;
var L = C.length;
while (L--) {
if (C[L].oCont == J) {
M = true
}
}
if (!M) {
C.push(new D(J,G,K,I));
if (!imf.initialized) {
imf.initialized = true;
F(window, "resize", function() {
var N = C.length;
while (N--) {
C[N].resize()
}
});
F(document.getElementById(J), "mouseout", function(O) {
if (!O) {
O = window.event
}
var N = O.relatedTarget || O.toElement;
if (N && N.tagName == "HTML") {
var P = C.length;
while (P--) {
C[P].oc.onmousemove = null
}
}
return false
});
setInterval(function() {
var N = C.length;
while (N--) {
C[N].run()
}
}, 16)
}
}
};
F(window, "load", function() {
H()
})
}
}
}();
var FrontMessages_customizeEmit01 = {
isValidphones: function(B) {
if (!/^[\d\-()、]{7,32}$/.test(B)) {
return false
}
var A = [];
for (var C = 0, D; D = B.charAt(C); C++) {
if (D == "(") {
A.push(D)
} else {
if (D == ")") {
if (A.pop() != "(") {
return false
}
}
}
}
return !A.length
},
isIdCard: function(B) {
var C = /^\s*\d{15}\s*$/;
var A = /^\s*\d{16}[\dxX]{2}\s*$/;
if (!C.exec(B) && !A.exec(B)) {
return false
}
return true
},
displayInfo: function(A) {
document.getElementById(A).style.display = "block"
},
hideInfo: function(A) {
document.getElementById(A).style.display = "none"
},
showinfo: function(A) {
strarr = A.split("_");
laststr = strarr[strarr.length - 1];
strinfo = "";
strno = "";
strerr = "";
strpast = "";
for (i = 0; i < strarr.length - 1; i++) {
if (i == 0) {
strinfo = strinfo + strarr[i];
strno = strno + strarr[i];
strerr = strerr + strarr[i];
strpast = strpast + strarr[i]
} else {
strinfo = strinfo + "_" + strarr[i];
strno = strno + "_" + strarr[i];
strerr = strerr + "_" + strarr[i];
strpast = strpast + "_" + strarr[i]
}
}
strinfor = strinfo + "_info" + laststr;
strinfo_black = strinfo + "_info" + laststr + "_black";
strno = strno + "_no" + laststr;
strerr = strerr + "_err" + laststr;
strpast = strpast + "_past" + laststr;
if (document.getElementById(strinfor)) {
document.getElementById(strinfor).style.display = "none"
}
if (document.getElementById(strno)) {
document.getElementById(strno).style.display = "none"
}
if (document.getElementById(strerr)) {
document.getElementById(strerr).style.display = "none"
}
if (document.getElementById(strinfo_black)) {
document.getElementById(strinfo_black).style.display = "block"
}
if (document.getElementById(strpast)) {
document.getElementById(strpast).style.display = "none"
}
},
checkForm: function(C, M, J, A, B) {
var G = M;
var H = true;
if ((M == "all" || M == "mail") && C.mail) {
C.mail.value = C.mail.value.replace(/^\s+|\s+$/g, "");
if (C.isByMail || C.isDisplayMail.value == "1") {
if (C.isDisplayMail.value == "1" || C.isByMail.checked) {
if (!isEmail(C.mail.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infomail");
FrontMessages_customizeEmit01.hideInfo(J + "_infomail_black");
FrontMessages_customizeEmit01.hideInfo(J + "_nomail");
FrontMessages_customizeEmit01.displayInfo(J + "_errmail");
H = false
}
if (/^\s*$/.test(C.mail.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infomail");
FrontMessages_customizeEmit01.hideInfo(J + "_infomail_black");
FrontMessages_customizeEmit01.hideInfo(J + "_errmail");
FrontMessages_customizeEmit01.displayInfo(J + "_nomail");
H = false
}
}
}
if (C.isDisplayMail.value == "0") {
if (!isEmail(C.mail.value) && !/^\s*$/.test(C.mail.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infomail");
FrontMessages_customizeEmit01.hideInfo(J + "_infomail_black");
FrontMessages_customizeEmit01.hideInfo(J + "_nomail");
FrontMessages_customizeEmit01.displayInfo(J + "_errmail");
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_infomail_black");
FrontMessages_customizeEmit01.displayInfo(J + "_infomail")
}
}
if ((M == "all" || M == "author") && C.author) {
C.author.value = C.author.value.replace(/^\s+|\s+$/g, "");
if (specialCharactersCheck(C.author.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infoauthor");
FrontMessages_customizeEmit01.hideInfo(J + "_infoauthor_black");
FrontMessages_customizeEmit01.hideInfo(J + "_noauthor");
FrontMessages_customizeEmit01.displayInfo(J + "_errauthor");
H = false
}
if (C.isDisplayAuthor.value == "1") {
if (/^\s*$/.test(C.author.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infoauthor");
FrontMessages_customizeEmit01.hideInfo(J + "_infoauthor_black");
FrontMessages_customizeEmit01.hideInfo(J + "_errauthor");
FrontMessages_customizeEmit01.displayInfo(J + "_noauthor");
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_infoauthor_black");
FrontMessages_customizeEmit01.displayInfo(J + "_infoauthor")
}
}
if ((M == "all" || M == "mobiles") && C.mobiles) {
C.mobiles.value = C.mobiles.value.replace(/^\s+|\s+$/g, "");
var E = trim(C.mobiles.value);
if (C.isByNote || C.isDisplaymobiles.value == "1") {
if (C.isDisplaymobiles.value == "1" || C.isByNote.checked) {
if (/^\s*$/.test(C.mobiles.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infomobiles");
FrontMessages_customizeEmit01.hideInfo(J + "_infomobiles_black");
FrontMessages_customizeEmit01.hideInfo(J + "_errmobiles");
FrontMessages_customizeEmit01.displayInfo(J + "_nomobiles");
H = false
} else {
if (!ismobilesNumber(E) || !(/^1[3|4|5|7|8]\d{9}$/.test(C.mobiles.value))) {
FrontMessages_customizeEmit01.hideInfo(J + "_infomobiles");
FrontMessages_customizeEmit01.hideInfo(J + "_infomobiles_black");
FrontMessages_customizeEmit01.hideInfo(J + "_nomobiles");
FrontMessages_customizeEmit01.displayInfo(J + "_errmobiles");
H = false
}
}
}
}
if (C.isDisplaymobiles.value == "0") {
if (!/^\s*$/.test(C.mobiles.value)) {
if (!ismobilesNumber(E) || !(/^1[3|4|5|7|8]\d{9}$/.test(C.mobiles.value))) {
FrontMessages_customizeEmit01.hideInfo(J + "_infomobiles");
FrontMessages_customizeEmit01.hideInfo(J + "_infomobiles_black");
FrontMessages_customizeEmit01.hideInfo(J + "_nomobiles");
FrontMessages_customizeEmit01.displayInfo(J + "_errmobiles");
H = false
}
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_infomobiles_black");
FrontMessages_customizeEmit01.displayInfo(J + "_infomobiles")
}
}
if ((M == "all" || M == "phones") && C.phones) {
C.phones.value = C.phones.value.replace(/^\s+|\s+$/g, "");
if (!/^\s*$/.test(C.phones.value)) {
if (!FrontMessages_customizeEmit01.isValidphones(C.phones.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infophones");
FrontMessages_customizeEmit01.hideInfo(J + "_infophones_black");
FrontMessages_customizeEmit01.hideInfo(J + "_nophones");
FrontMessages_customizeEmit01.displayInfo(J + "_errphones");
H = false
}
}
if (C.isDisplayphones.value == "1") {
if (/^\s*$/.test(C.phones.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infophones");
FrontMessages_customizeEmit01.hideInfo(J + "_infophones_black");
FrontMessages_customizeEmit01.hideInfo(J + "_errphones");
FrontMessages_customizeEmit01.displayInfo(J + "_nophones");
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_infophones_black");
FrontMessages_customizeEmit01.displayInfo(J + "_infophones")
}
}
if ((M == "all" || M == "address") && C.address) {
C.address.value = C.address.value.replace(/^\s+|\s+$/g, "");
if (!/^\s*$/.test(C.address.value)) {
if (specialCharactersCheck(C.address.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infoaddress");
FrontMessages_customizeEmit01.hideInfo(J + "_infoaddress_black");
FrontMessages_customizeEmit01.hideInfo(J + "_noaddress");
FrontMessages_customizeEmit01.displayInfo(J + "_erraddress");
H = false
}
}
if (C.isDisplayAddress.value == "1") {
if (/^\s*$/.test(C.address.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infoaddress");
FrontMessages_customizeEmit01.hideInfo(J + "_infoaddress_black");
FrontMessages_customizeEmit01.hideInfo(J + "_noaddress");
FrontMessages_customizeEmit01.displayInfo(J + "_noaddress");
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_infoaddress_black");
FrontMessages_customizeEmit01.displayInfo(J + "_infoaddress")
}
}
if ((M == "all" || M == "area") && C.area) {
C.area.value = C.area.value.replace(/^\s+|\s+$/g, "");
if (!/^\s*$/.test(C.area.value)) {
if (specialCharactersCheck(C.area.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infoarea");
FrontMessages_customizeEmit01.hideInfo(J + "_infoarea_black");
FrontMessages_customizeEmit01.hideInfo(J + "_noarea");
FrontMessages_customizeEmit01.displayInfo(J + "_errarea");
H = false
}
}
if (C.isDisplayArea.value == "1") {
if (/^\s*$/.test(C.area.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infoarea");
FrontMessages_customizeEmit01.hideInfo(J + "_infoarea_black");
FrontMessages_customizeEmit01.hideInfo(J + "_noarea");
FrontMessages_customizeEmit01.displayInfo(J + "_noarea");
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_infoarea_black");
FrontMessages_customizeEmit01.displayInfo(J + "_infoarea")
}
}
if ((M == "all" || M == "corpName") && C.corpName) {
C.corpName.value = C.corpName.value.replace(/^\s+|\s+$/g, "");
if (!/^\s*$/.test(C.corpName.value)) {
if (specialCharactersCheck(C.corpName.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infocorpName");
FrontMessages_customizeEmit01.hideInfo(J + "_infocorpName_black");
FrontMessages_customizeEmit01.hideInfo(J + "_nocorpName");
FrontMessages_customizeEmit01.displayInfo(J + "_errcorpName");
H = false
}
}
if (C.isDisplayCorpName.value == "1") {
if (/^\s*$/.test(C.corpName.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infocorpName");
FrontMessages_customizeEmit01.hideInfo(J + "_infocorpName_black");
FrontMessages_customizeEmit01.hideInfo(J + "_errcorpName");
FrontMessages_customizeEmit01.displayInfo(J + "_nocorpName");
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_infocorpName_black");
FrontMessages_customizeEmit01.displayInfo(J + "_infocorpName")
}
}
if (M == "all" || M == "messagesCategoryId") {
if (C.messagesCategoryId) {
FrontMessages_customizeEmit01.showinfo(J + "_messagesCategoryId");
if (document.getElementById("messagesCategoryId").selectedIndex == 0) {
FrontMessages_customizeEmit01.displayInfo(J + "_errmessagesCategoryId");
H = false
}
}
}
if ((M == "all" || M == "content") && C.content) {
if (/^\s*$/.test(C.content.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infocontent");
FrontMessages_customizeEmit01.hideInfo(J + "_infocontent_black");
FrontMessages_customizeEmit01.hideInfo(J + "_errcontent");
FrontMessages_customizeEmit01.displayInfo(J + "_nocontent");
H = false
} else {
if (C.content.value.length > C.maxContent.value) {
FrontMessages_customizeEmit01.hideInfo(J + "_infocontent");
FrontMessages_customizeEmit01.hideInfo(J + "_infocontent_black");
FrontMessages_customizeEmit01.hideInfo(J + "_nocontent");
FrontMessages_customizeEmit01.displayInfo(J + "_errcontent");
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_infocontent_black");
FrontMessages_customizeEmit01.displayInfo(J + "_infocontent")
}
}
if ((M == "all" || M == "messagesTitle") && C.messagesTitle) {
C.messagesTitle.value = C.messagesTitle.value.replace(/^\s+|\s+$/g, "");
if (!/^\s*$/.test(C.messagesTitle.value)) {
if (specialCharactersCheck(C.messagesTitle.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infomessagesTitle");
FrontMessages_customizeEmit01.hideInfo(J + "_infomessagesTitle_black");
FrontMessages_customizeEmit01.hideInfo(J + "_nomessagesTitle");
FrontMessages_customizeEmit01.displayInfo(J + "_errmessagesTitle");
H = false
}
}
if (C.isDisplayMessagesTitle.value == "1") {
if (/^\s*$/.test(C.messagesTitle.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infomessagesTitle");
FrontMessages_customizeEmit01.hideInfo(J + "_infomessagesTitle_black");
FrontMessages_customizeEmit01.hideInfo(J + "_errmessagesTitle");
FrontMessages_customizeEmit01.displayInfo(J + "_nomessagesTitle");
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_infomessagesTitle_black");
FrontMessages_customizeEmit01.displayInfo(J + "_infomessagesTitle")
}
}
if ((M == "all" || M == "weburl") && C.weburl) {
var L = /^((http|https|ftp):(\/\/|\\\\))?((\w)+[.]){1,}/;
if (C.isDisplayUrl.value == "1") {
if (C.weburl.value == "" || C.weburl.value == "https://") {
FrontMessages_customizeEmit01.hideInfo(J + "_infoweburl");
FrontMessages_customizeEmit01.hideInfo(J + "_infoweburl_black");
FrontMessages_customizeEmit01.hideInfo(J + "_errweburl");
FrontMessages_customizeEmit01.displayInfo(J + "_noweburl");
H = false
} else {
if (!L.test(C.weburl.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infoweburl");
FrontMessages_customizeEmit01.hideInfo(J + "_infoweburl_black");
FrontMessages_customizeEmit01.hideInfo(J + "_errweburl");
FrontMessages_customizeEmit01.displayInfo(J + "_errweburl");
H = false
}
}
} else {
if (C.weburl.value != "" && C.weburl.value != "https://") {
if (!L.test(C.weburl.value)) {
FrontMessages_customizeEmit01.hideInfo(J + "_infoweburl");
FrontMessages_customizeEmit01.hideInfo(J + "_infoweburl_black");
FrontMessages_customizeEmit01.hideInfo(J + "_errweburl");
FrontMessages_customizeEmit01.displayInfo(J + "_errweburl");
H = false
}
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_infoweburl_black");
FrontMessages_customizeEmit01.displayInfo(J + "_infoweburl")
}
}
if (M == "all" || M == "verifyCode") {
if (C.verifyCode.value.length == 0) {
FrontMessages_customizeEmit01.hideInfo(J + "_pastverifyCode");
FrontMessages_customizeEmit01.hideInfo(J + "_errverifyCode");
FrontMessages_customizeEmit01.displayInfo(J + "_noverifyCode");
H = false
} else {
if (!FrontMessages_customizeEmit01.checkVerifyCodeInput(C.verifyCode.value, J)) {
FrontMessages_customizeEmit01.hideInfo(J + "_pastverifyCode");
FrontMessages_customizeEmit01.displayInfo(J + "_errverifyCode");
FrontMessages_customizeEmit01.hideInfo(J + "_noverifyCode");
H = false
}
}
}
if (M == "all" || A == "0") {
if (B == "0") {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
}
if (B == "1") {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!isEmail(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "2") {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!ismobilesNumber(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "3") {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!FrontMessages_customizeEmit01.isValidphones(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "4") {
zip = /^\d{6}$/;
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!zip.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "5") {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!FrontMessages_customizeEmit01.isIdCard(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "6") {
L = /^((http|https|ftp):(\/\/|\\\\))?((\w)+[.]){1,}/;
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (isDisplayAttribute == "1") {
if (extendAtrributevalsue == "" || extendAtrributevalsue == "https://") {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
} else {
if (!L.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
} else {
if (extendAtrributevalsue != "" && extendAtrributevalsue != "https://") {
if (!L.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "7") {
qq = /^[1-9]\d{4,9}$/;
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!qq.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "8") {
str = /^[-]{0,1}[0-9]{1,}$/;
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!str.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "9") {
str = /^(-?\d+)(\.\d+)?$/;
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!str.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
}
if (M == "all" || A == "1") {
if (document.getElementById("extendAtrribute" + M) && document.getElementById("isDisplayAttribute" + M)) {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
attributeMaxContent = document.getElementById("maxContent" + M).value;
if (/^\s*$/.test(extendAtrributevalsue) && isDisplayAttribute == "1") {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
} else {
if (extendAtrributevalsue.length > attributeMaxContent) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
}
if (M == "all" || A == "2") {
if (document.getElementById("isDisplayAttribute" + M)) {
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (document.getElementById("extendAtrribute" + M)) {
extendAtrribute = document.getElementById("extendAtrribute" + M)
}
option = document.getElementsByName("extendAtrribute" + M);
arrCheckbox = document.getElementsByName("checkboxExtendAtrribute" + M);
if (arrCheckbox.length > 0) {
option = document.getElementsByName("checkboxExtendAtrribute" + M)
}
if (isDisplayAttribute == "1") {
var K = false;
for (i = 0; i < option.length; i++) {
if (option[i].checked) {
K = true
}
}
if (extendAtrribute.type == "select-one") {
if (extendAtrribute.selectedIndex != 0) {
K = true
}
}
if (!K) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
} else {
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
}
}
if (M == "all" || A == "3") {
if (document.getElementById("extendAtrribute" + M) && document.getElementById("isDisplayAttribute" + M)) {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
}
}
if (M == "all") {
arrAttribute = document.getElementsByName(J + "_isDisplayAttribute");
for (i = 0; i < arrAttribute.length; i++) {
otherAttribute = arrAttribute[i].getAttribute("otherAttribute");
allOtherAttribute = otherAttribute.split("_attribute_");
A = allOtherAttribute[0];
B = allOtherAttribute[1];
M = arrAttribute[i].id.substr(18, arrAttribute[i].id.length);
if (M == "all" || A == "0") {
if (B == "0") {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
}
if (B == "1") {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!isEmail(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "2") {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!ismobilesNumber(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "3") {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!FrontMessages_customizeEmit01.isValidphones(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "4") {
zip = /^\d{6}$/;
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!zip.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "5") {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!FrontMessages_customizeEmit01.isIdCard(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "6") {
L = /^((http|https|ftp):(\/\/|\\\\))?((\w)+[.]){1,}/;
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (isDisplayAttribute == "1") {
if (extendAtrributevalsue == "" || extendAtrributevalsue == "https://") {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
} else {
if (!L.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
} else {
if (extendAtrributevalsue != "" && extendAtrributevalsue != "https://") {
if (!L.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "7") {
qq = /^[1-9]\d{4,9}$/;
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!qq.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "8") {
str = /^[-]{0,1}[0-9]{1,}$/;
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!str.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
if (B == "9") {
str = /^(-?\d+)(\.\d+)?$/;
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (!/^\s*$/.test(extendAtrributevalsue)) {
if (!str.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
}
if (M == "all" || A == "1") {
if (document.getElementById("extendAtrribute" + M) && document.getElementById("isDisplayAttribute" + M)) {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
attributeMaxContent = document.getElementById("maxContent" + M).value;
if (/^\s*$/.test(extendAtrributevalsue) && isDisplayAttribute == "1") {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
} else {
if (extendAtrributevalsue.length > attributeMaxContent) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_err" + M);
H = false
}
}
if (H == true) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
}
if (M == "all" || A == "2") {
if (document.getElementById("isDisplayAttribute" + M)) {
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (document.getElementById("extendAtrribute" + M)) {
extendAtrribute = document.getElementById("extendAtrribute" + M)
}
option = document.getElementsByName("extendAtrribute" + M);
arrCheckbox = document.getElementsByName("checkboxExtendAtrribute" + M);
if (arrCheckbox.length > 0) {
strCheckbox = "";
for (m = arrCheckbox.length - 1; m >= 0; m--) {
if (arrCheckbox[m].checked) {
strCheckbox = arrCheckbox[m].value + "," + strCheckbox
}
}
strCheckbox = strCheckbox.substr(0, strCheckbox.length - 1);
extendAtrribute.value = strCheckbox;
option = document.getElementsByName("checkboxExtendAtrribute" + M)
}
if (isDisplayAttribute == "1") {
var K = false;
for (j = 0; j < option.length; j++) {
if (option[j].checked) {
K = true
}
}
if (extendAtrribute.type == "select-one") {
if (extendAtrribute.selectedIndex != 0) {
K = true
}
}
if (!K) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
} else {
FrontMessages_customizeEmit01.hideInfo(J + "_no" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_info" + M)
}
}
}
}
if (M == "all" || A == "3") {
if (document.getElementById("extendAtrribute" + M) && document.getElementById("isDisplayAttribute" + M)) {
document.getElementById("extendAtrribute" + M).value = document.getElementById("extendAtrribute" + M).value.replace(/^\s+|\s+$/g, "");
extendAtrributevalsue = document.getElementById("extendAtrribute" + M).value;
isDisplayAttribute = document.getElementById("isDisplayAttribute" + M).value;
if (isDisplayAttribute == "1") {
if (/^\s*$/.test(extendAtrributevalsue)) {
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M);
FrontMessages_customizeEmit01.hideInfo(J + "_info" + M + "_black");
FrontMessages_customizeEmit01.hideInfo(J + "_err" + M);
FrontMessages_customizeEmit01.displayInfo(J + "_no" + M);
H = false
}
}
}
}
}
}
if (!C.content) {
H = false
}
if (H && G == "all") {
var D = document.createElement("input");
var I = C.verifyCode.value;
var F = document.getElementsByName("vlidationSet", J);
if (F.length == 0) {
D.setAttribute("type", "hidden");
D.name = "vlidationSet";
D.value = I;
C.appendChild(D)
} else {
F.value = I
}
C.orignal_url.value = window.locations.href;
document.getElementById(J + "_submit").disabled = "disabled";
C.submit()
}
},
selectEmotion: function(A, H) {
var G = A.src;
var D = G.replace("mesa-", "mes-");
var B = document.getElementById(H + "_emotion");
var C = document.getElementById(H + "_imageId");
if (C.value != null && C.value != "") {
var F = document.getElementById(C.value);
F.src = C.name
}
A.src = D;
var E = A.src;
E = E.substring(E.lastIndexOf("/") + 1);
B.value = E;
document.getElementById(H + "_imageId").value = A.id;
if (C.name.substring(C.name.length - 6, C.name.length) != A.src.substring(A.src.length - 6, A.src.length)) {
document.getElementById(H + "_imageId").name = G
}
document.getElementById(H + "_emotion").value = A.name
},
addIsByMailValue: function(A, B) {
FrontMessages_customizeEmit01.hideInfo(B + "_infomail_black");
FrontMessages_customizeEmit01.hideInfo(B + "_nomail");
FrontMessages_customizeEmit01.hideInfo(B + "_errmail");
FrontMessages_customizeEmit01.displayInfo(B + "_infomail");
if (A.checked) {
$("#isByMail").attr("value", "1")
} else {
$("#isByMail").attr("value", "0")
}
},
addIsByNotevalsue: function(A, B) {
FrontMessages_customizeEmit01.hideInfo(B + "_infomobiles_black");
FrontMessages_customizeEmit01.hideInfo(B + "_nomobiles");
FrontMessages_customizeEmit01.hideInfo(B + "_errmobiles");
FrontMessages_customizeEmit01.displayInfo(B + "_infomobiles");
if (A.checked) {
$("#isByNote").attr("value", "1")
} else {
$("#isByNote").attr("value", "0")
}
},
checknumber: function(C) {
var B = "1234567890";
var A;
var D;
for (A = 0; A < C.length; A++) {
D = C.charAt(A);
if (B.indexOf(D) == -1) {
return true
}
}
return false
},
callback: function(A) {
arrsp = A.split("***");
authorarr = arrsp[0].split(":");
authorarr[1] = authorarr[1].substr(1, authorarr[1].length - 2);
$("#mail").attr("value", authorarr[1] == null ? "" : authorarr[1]);
if (A["mail"] != null) {
$("#mail").attr("readonly", "true")
}
authorarr = arrsp[1].split(":");
authorarr[1] = authorarr[1].substr(1, authorarr[1].length - 2);
$("#author").attr("value", authorarr[1] == null ? "" : authorarr[1]);
authorarr = arrsp[3].split(":");
authorarr[1] = authorarr[1].substr(1, authorarr[1].length - 2);
$("#phones").attr("value", authorarr[1] == null ? "" : authorarr[1]);
authorarr = arrsp[4].split(":");
authorarr[1] = authorarr[1].substr(1, authorarr[1].length - 2);
$("#mobiles").attr("value", authorarr[1] == null ? "" : authorarr[1]);
authorarr = arrsp[7].split(":");
authorarr[1] = authorarr[1].substr(1, authorarr[1].length - 2);
$("#address").attr("value", authorarr[1] == null ? "" : authorarr[1]);
authorarr = arrsp[8].split(":");
authorarr[1] = authorarr[1].substr(1, authorarr[1].length - 2);
$("#corpName").attr("value", authorarr[1] == null ? "" : authorarr[1]);
authorarr = arrsp[2].split(":");
authorarr[1] = authorarr[1].substr(1, authorarr[1].length - 2);
if (authorarr[1] != null && authorarr[1] == "0") {
$("#sex1").attr("checked", "checked")
} else {
if (authorarr[1] != null && authorarr[1] == "1") {
$("#sex2").attr("checked", "checked")
}
}
if (A["isByMail"] != null && A["isByMail"] == "0") {
$("#isByMail2").attr("checked", "checked")
} else {
if (A["isByMail"] != null && A["isByMail"] == "1") {
$("#isByMail1").attr("checked", "checked")
}
}
if (A["isByNote"] != null && A["isByNote"] == "0") {
$("#isByNote2").attr("checked", "checked")
} else {
if (A["isByNote"] != null && A["isByNote"] == "1") {
$("#isByNote1").attr("checked", "checked")
}
}
},
dynamicNum: function(B, C, D) {
var A = {};
A.agt = navigator.userAgent.toLowerCase();
A.isW3C = document.getElementById ? true : false;
A.isIE = ((A.agt.indexOf("msie") != -1) && (A.agt.indexOf("opera") == -1) && (A.agt.indexOf("omniweb") == -1));
A.isNS6 = A.isW3C && (navigator.appName == "Netscape");
A.isOpera = A.agt.indexOf("opera") != -1;
A.isGecko = A.agt.indexOf("gecko") != -1;
A.ieTrueBody = function() {
return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body
}
;
if (A.isNS6) {
HTMLElement.prototype.__defineGetter__("innerText", function() {
return this.textContent
});
HTMLElement.prototype.__defineSetter__("innerText", function(H) {
this.textContent = H
})
}
var G = document.getElementById(B);
if (D == "null") {
var E = document.getElementById("dynamicNum")
} else {
var E = document.getElementById("dynamicNum" + D)
}
var F = C.value;
E.innerText = F.length
},
setStarValue: function(A) {
document.getElementById("star").value = A.innerHTML
},
checkVerifyCodeInput: function(A, B) {
if (A == "") {
FrontMessages_customizeEmit01.hideInfo(B + "_pastverifyCode");
FrontMessages_customizeEmit01.displayInfo(B + "_noverifyCode");
FrontMessages_customizeEmit01.hideInfo(B + "_errverifyCode");
return
}
var C = false;
$.ajax({
type: "post",
dataType: "json",
async: false,
url: "/FrontMessages.do?method=checkVerifyCode",
data: {
verifyCodeInput: A
},
success: function(D) {
$.each(D, function(E, F) {
if (F == "wrong") {
FrontMessages_customizeEmit01.hideInfo(B + "_pastverifyCode");
FrontMessages_customizeEmit01.hideInfo(B + "_noverifyCode");
FrontMessages_customizeEmit01.displayInfo(B + "_errverifyCode")
} else {
FrontMessages_customizeEmit01.hideInfo(B + "_errverifyCode");
FrontMessages_customizeEmit01.hideInfo(B + "_noverifyCode");
FrontMessages_customizeEmit01.hideInfo(B + "_pastverifyCode");
C = true
}
})
}
});
return C
},
showHand: function(A) {
A.style.cursor = "pointer"
},
chkverifyCode: function(A, B) {
if (A == "0") {
FrontMessages_customizeEmit01.hideInfo(B + "_errverifyCode");
FrontMessages_customizeEmit01.hideInfo(B + "_noverifyCode");
FrontMessages_customizeEmit01.displayInfo(B + "_pastverifyCode")
} else {
if (A == "1") {
FrontMessages_customizeEmit01.hideInfo(B + "_pastverifyCode");
FrontMessages_customizeEmit01.hideInfo(B + "_noverifyCode");
FrontMessages_customizeEmit01.displayInfo(B + "_errverifyCode")
}
}
},
displayDiv: function(E, A, C, B) {
var D = document.getElementById(E);
if (null != D) {
if (A == 1) {
D.style.display = ""
} else {
D.style.display = "none"
}
}
var D = document.getElementById(C);
if (null != D) {
if (A == 1) {
D.style.display = ""
} else {
D.style.display = "none"
}
}
var D = document.getElementById(B);
if (null != D) {
if (A == 1) {
D.style.display = ""
} else {
D.style.display = "none"
}
}
},
checkBirthDay: function(B, A, C) {
attributeDate = document.getElementById("extendAtrribute" + C);
isDisplayAttribute = document.getElementById("isDisplayAttribute" + C).value;
if (!isDate(trim(attributeDate.value), true)) {
attributeDate.value = ""
}
if (isDisplayAttribute == "1") {
if (isNull(attributeDate.value) || trim(attributeDate.value) == "yyyy-mm-dd" || trim(attributeDate.value) == "YYYY-MM-DD") {
FrontMessages_customizeEmit01.hideInfo(B + "_info" + C);
FrontMessages_customizeEmit01.hideInfo(B + "_info" + C + "_black");
FrontMessages_customizeEmit01.hideInfo(B + "_err" + C);
FrontMessages_customizeEmit01.displayInfo(B + "_no" + C);
return false
}
if (!isDate(trim(attributeDate.value), true)) {
FrontMessages_customizeEmit01.hideInfo(B + "_info" + C);
FrontMessages_customizeEmit01.hideInfo(B + "_info" + C + "_black");
FrontMessages_customizeEmit01.hideInfo(B + "_no" + C);
FrontMessages_customizeEmit01.displayInfo(B + "_err" + C);
return false
}
FrontMessages_customizeEmit01.hideInfo(B + "_err" + C);
FrontMessages_customizeEmit01.hideInfo(B + "_no" + C);
FrontMessages_customizeEmit01.hideInfo(B + "_info" + C + "_black");
FrontMessages_customizeEmit01.displayInfo(B + "_info" + C)
}
return true
}
};