" if="" (showweeknumber="=1)" {="" shtml="" +="" +="" weekstring="" +="">0)> |  | "
}
for (i=0; i<7; i++)="" {="" shtml="" +="" +="">7;>"
}
sHTML +=""
if (showWeekNumber==1)
{
sHTML += "" + WeekNbr(startDate) + " | "
}
for ( var i=1; i<=daypointer;i++ )="" {="" shtml="" +=" | " }="" for="" (="" datepointer="1;">=daypointer;i++><=numdaysinmonth; datepointer++="" )="" {="" daypointer++;="" shtml="" +="" sstyle="styleAnchor" if="" ((datepointer="=odateSelected)" &&="" (monthselected="=omonthSelected)" &&="" (yearselected="=oyearSelected))" {="" sstyle+="styleLightBorder" }="" shint="" for="" (k="">=numdaysinmonth;> " + datePointer + " "}
else if (dayPointer % 7 == (startAt * -1)+1)
{ sHTML += " " + datePointer + " " }
else
{ sHTML += " " + datePointer + " " }
sHTML += ""
if ((dayPointer+startAt) % 7 == startAt) {
sHTML += " | "
if ((showWeekNumber==1)&&(datePointer" +="" (weeknbr(new="" date(yearselected,monthselected,datepointer+1)))="" +="">"
}
}
}
window.document.getElementById("content").innerHTML = sHTML
window.document.getElementById("spanMonth").innerHTML = " " + monthName[monthSelected] + " "
window.document.getElementById("spanYear").innerHTML = " " + yearSelected + " "
}
var flag='';
function popUpCalendar(ctl, ctl2, format, p) {
var leftpos=0
var toppos=0
flag=p;
if (bPageLoaded)
{
if ( crossobj.visibility == "hidden" ) {
ctlToPlaceValue = ctl2
dateFormat=format;
formatChar = " "
aFormat = dateFormat.split(formatChar)
if (aFormat.length<3) {="" formatchar="/" aformat="dateFormat.split(formatChar)" if="">3)><3) {="" formatchar="." aformat="dateFormat.split(formatChar)" if="">3)><3) {="" formatchar="-" aformat="dateFormat.split(formatChar)" if="">3)><3) {="" invalid="" date="" format="" formatchar="" }="" }="" }="" }="" tokenschanged="0" if="" (="" formatchar="" !="" )="" {="" use="" user's="" date="" adata="ctl2.value.split(formatChar)" for="" (i="">3)><3;i++) {="" if="" ((aformat[i]="=" d")"="" ||="" (aformat[i]="=" dd"))"="" {="" dateselected="parseInt(aData[i]," 10)="" tokenschanged="" ++="" }="" else="" if="" ((aformat[i]="=" m")"="" ||="" (aformat[i]="=" mm"))"="" {="" monthselected="parseInt(aData[i]," 10)="" -="" 1="" tokenschanged="" ++="" }="" else="" if="" (aformat[i]="=" yyyy")"="" {="" yearselected="parseInt(aData[i]," 10)="" tokenschanged="" ++="" }="" else="" if="" (aformat[i]="=" mmm")"="" {="" for="" (j="0;">3;i++)><12; j++)="" {="" if="" (adata[i]="=monthName[j])" {="" monthselected="j" tokenschanged="" ++="" }="" }="" }="" }="" }="" if="" ((tokenschanged!="3)||isNaN(dateSelected)||isNaN(monthSelected)||isNaN(yearSelected))" {="" dateselected="dateNow" monthselected="monthNow" yearselected="yearNow" }="" odateselected="dateSelected" omonthselected="monthSelected" oyearselected="yearSelected" atag="ctl" do="" {="" atag="aTag.offsetParent;" leftpos="" +="aTag.offsetLeft;" toppos="" +="aTag.offsetTop;" }="" while(atag.tagname!="BODY" );="" crossobj.left="fixedX==-1" ctl.offsetleft="" +="" leftpos="" :="" fixedx="" crossobj.top="fixedY==-1" ctl.offsettop="" +="" toppos="" +="" ctl.offsetheight="" +="" 2="" :="" fixedy="" constructcalendar="" (1,="" monthselected,="" yearselected);="" crossobj.visibility="(dom||ie)?" "visible"="" :="" "show"="" hideelement(="" 'select',="" window.document.getelementbyid("calendar")="" );="" hideelement(="" 'applet',="" window.document.getelementbyid("calendar")="" );="" hideelement(="" 'embed',="" window.document.getelementbyid("calendar")="" );="" hideelement(="" 'object',="" window.document.getelementbyid("calendar")="" );="" bshow="true;" }="" else="" {="" hidecalendar()="" if="" (ctlnow!="ctl)" {popupcalendar(ctl,="" ctl2,="" format)}="" }="" ctlnow="ctl" }="" }="" addonloadfunc(popcalinit);="" $id:="" validator_proto.js,v="" 1.9="" 2008/08/19="" 11:39:05="" andy="" exp="" $="" ctrl_by_id="{};" ctrl_by_name="{};" validators="{};" translates="{};" validator_proto="{" errorbgcolor:"#ffbbbb",="" requirebgcolor:"yellow",="" clearerror:function()="" {="" var="" o="window.document.getElementById(" this.pid+"_error_place");="" if="" (="" o="" !="null" )="" o.innerhtml="" ;="" o="window.document.getElementById(" this.pid);="" var="" o_="o;" if="" (="" o_="" !="null" )="" {="" o_.style.backgroundcolor="o_.defaultBgColor;" }="" else="" {="" var="" id="ctrl_by_id[this.pid].id;" if="" (="" typeof(="" id)="=" "string"="" )="" {="" var="" o_="window.document.getElementById(" id);="" o_!="null" &&="" (o_.style.backgroundcolor="o_.defaultBgColor" ||="" "");="" }="" else="" if="" (="" typeof(="" id)="=" "object"="" )="" {="" for(="" var="" i="0;">12;> 1 ) {
return 0;
}
this["if"]["value"] = value;
if ( this["if"].m() ) {
var er = 0;
this["eval"]["value"] = value;
this["eval"]["message"] = new String( this.message);
er_st = this["eval"].m();
if ( er_st != "empty" ) {
if ( er_st ) er = 1;
} else {
if ( this["type"] == "email" ) {
var em = value;
if ( em!="" && !( em.indexOf("@")>0 && em.indexOf(".")>0 && em.indexOf(".")+1 "].join( "");
} else {
o2.innerHTML = [translates["Enter Valid Value"], " "].join( "");
}
if ( o_ != null ) {
o_.defaultBgColor = o_.my_bg_color || o_.style.backgroundColor;
o_.style.backgroundColor = this.errorBgColor;
} else {
var id = ctrl_by_id[this.pid].id;
if ( typeof( id) == "string" ) {
var o_ = window.document.getElementById( id);
o_ != null && ( o_.style.backgroundColor = this.errorBgColor);
} else if ( typeof( id) == "object" ) {
for( var i=0; i< min_y="" )="" {="" top_="min_y;" ddenabled="false;" }="" cur_o.style.left="left_;" cur_o.style.top="top_;" }="" else="" if="" (="" operation_type="=" 2="" )="" {="" var="" cur_o="__popLayers__[__popLayers__name];" now_offsety="isIE" event.clienty="" :="" e.clienty;="" now_offsetx="isIE" event.clientx="" :="" e.clientx;="" cur_o.setheight(="" parseint(="" cur_o.getheight())-(offsety-now_offsety));="" cur_o.setwidth(="" parseint(="" cur_o.getwidth())-(offsetx-now_offsetx));="" offsety="now_offsety;" offsetx="now_offsetx;" }="" else="" {="" ddenabled="false;" }="" }="" try{="" document.onmousedown="ddInit;" document.onmouseup="Function(" ddenabled="false");"" document.onmousemove="dd;" }="" catch(="" e){}="" function="" poplayer(="" name,="" title,="" url,="" header)="" {="" -------------------------------------="" local="" variables="" -------------------------------------="" this.whichdog="false;" this.url="url;" this.name="name;" this.title="title;" this.min_y="min_y;" this.m_pos_y="0;" this.m_pos_x="0;" this.offsetx="0;" this.offsety="0;" this.initwidth="1;" this.initheight="1;" this.width="800;" this.height="700;" this.forcesize="0;" this.open="false;" this.iframe="null;" this.iframe_width="100%" ;="" this.scrolling="auto" ;="" this.bgcolor="#FFFFFF" ;="" if="" (="" this.url.indexof(="" "?")="" /> -1 ) {
this.url.concat( "&WINDOW_BODY_ONLOAD="+myEscape( "top."+this.name+"_.iframeOnload( window);"));
} else {
this.url.concat( "?WINDOW_BODY_ONLOAD="+myEscape( "top."+this.name+"_.iframeOnload( window);"));
}
this.scrollPosition=document.body.scrollTop;
if ( !header ) {
this.header = '\
\
\
\
\
\
$$title$$ | \
 | \
\
\
\
\
| \
\
\
| \
\
\
 | \
\
';
} else {
this.header = header;
}
this.Layer = document.getElementById( this.name);
this.Layer.style.zIndex=10000;
__popLayers__[this.name] = this;
//-------------------------------------
// Methods
//-------------------------------------
this.hideMe = function() {
try {
this.iframe.contentWindow.document.body.innerHTML = "!!!";
} catch (e) {}
this.Layer.innerHTML = "";
if (isIE||isNN) this.Layer.style.visibility="hidden";
ddEnabled = false;
this.open = false;
};
this.showMe = function() {
if (isIE||isNN){
c = this.header.replace( /\$\$url\$\$/g, this.url);
c = c.replace( /\$\$title\$\$/g, this.title);
c = c.replace( /\$\$name\$\$/g, this.name);
c = c.replace( /\$\$initWidth\$\$/g, this.initWidth);
c = c.replace( /\$\$initHeight\$\$/g, this.initHeight);
c = c.replace( /\$\$iframe_name\$\$/g, this.iframe_name);
c = c.replace( /\$\$iframe_width\$\$/g, this.iframe_width);
c = c.replace( /\$\$bgcolor\$\$/g, this.bgcolor);
c = c.replace( /\$\$scrolling\$\$/g, this.scrolling);
this.Layer.innerHTML = c;
this.Layer.style.visibility="visible";
}
this.iframe = document.getElementById(this.iframe_name)
};
this.centerWindow = function() {
o = document.body;
this.m_pos_y = isIE ? (o.scrollTop+o.clientHeight/2)-(this.Layer.clientHeight/2): (o.scrollTop+o.clientHeight/2)-(this.Layer.scrollHeight/2);
this.m_pos_x = isIE ? (o.scrollLeft+o.clientWidth/2)-(this.Layer.clientWidth/2): (o.scrollLeft+o.clientWidth/2)-(this.Layer.scrollWidth/2);
if ( this.m_pos_y < this.min_y="" )="" this.m_pos_y="this.min_y;" this.layer.style.left="this.m_pos_x;" this.layer.style.top="this.m_pos_y;" this.open="true;" }="" this.setheight="function(h)" {="" this.iframe.style.height="h;" };="" this.setwidth="function(w){" this.iframe.style.width="w;" };="" this.getheight="function()" {="" return="" this.iframe.style.height;="" };="" this.getwidth="function(){" return="" this.iframe.style.width;="" };="" this.onscroll="function()" {="" offset_y="document.body.scrollTop" -="" this.scrollposition;="" this.scrollposition="document.body.scrollTop;" var="" this_layer="document.getElementById(" this.name);="" y="parseInt(" this_layer.style.top);="" this_layer.style.top="" />< 260="" 260="" :="" b.offsetwidth+20;="" this.setwidth(="" (="" w="" />< this.width="" )?w:this.width);="" var="" h="b.offsetHeight+10;" this.setheight(="" (h="" />< this.height)?h:this.height);="" if="" (="" h="" />< this.height="" &&="" body.scrollheight="" /> body.offsetHeight ) {
this.setHeight( ((h < this.height)?h:this.height)="" -="" (body.offsetheight="" -="" body.scrollheight));="" }="" }="" this.centerwindow();="" }="" }="" $id:="" pop_layer2.js,v="" 1.7="" 2006/10/04="" 12:33:32="" andy="" exp="" $="" isie="document.all;" isnn="!document.all&&document.getElementById;" ddenabled="false;" min_y="0;" function="" poplayer2(="" name,="" title,="" content,="" header)="" {="" -------------------------------------="" local="" variables="" -------------------------------------="" this.whichdog="false;" this.content="content;" this.name="name;" this.title="title;" this.min_y="0;" this.m_pos_y="0;" this.m_pos_x="0;" this.offsetx="0;" this.offsety="0;" this.width="1;" this.open="false;" this.align="center" ;="" this.bgcolor="#FFFFFF" ;="" this.div_style="" ;="" this.scrollposition="document.body.scrollTop;" if="" (="" !header="" )="" {="" this.header='\
\
\
\
\
\
$$title$$ | \
\
| \
\
\
\
\
$$content$$ | \
\
\
 | \
\
\
| \
\
\
\
\
';
} else {
this.header = header;
}
this.Layer = isIE ? document.all[name] : document.getElementById(name);
this.Layer.style.zIndex=10000;
__popLayers__[this.name] = this;
//-------------------------------------
// Methods
//-------------------------------------
this.hideMe = function() {
this.Layer.innerHTML = "";
if (isIE||isNN) this.Layer.style.visibility="hidden";
ddEnabled = false;
this.open = false;
};
this.centerWindow = function() {
if ( this.Layer.scrollWidth > 80 ) {
this.Layer.style.visibility="visible";
var o = document.body;
this.m_pos_y = isIE ?
(o.scrollTop+o.clientHeight/2)-(this.Layer.clientHeight/2)
: (o.scrollTop+o.clientHeight/2)-(this.Layer.scrollHeight/2);
this.m_pos_x = isIE ?
(o.scrollLeft+o.clientWidth/2)-(this.Layer.clientWidth/2)
: (o.scrollLeft+o.clientWidth/2)-(this.Layer.scrollWidth/2);
if ( this.m_pos_y < this.min_y="" )="" this.m_pos_y="this.min_y;" this.layer.style.left="this.m_pos_x;" this.layer.style.top="this.m_pos_y;" this.open="true;" }="" else="" {="" mysettimeout(="" this,="" this.centerwindow,="" 1000);="" }="" }="" this.showme="function()" {="" if="" (isie||isnn)="" {="" var="" c="this.header.replace(" "\$\$title\$\$",="" this.title);="" c="c.replace(" $\$name\$\$/g,="" this.name);="" c="c.replace(" $\$width\$\$/g,="" this.width);="" c="c.replace(" $\$align\$\$/g,="" this.align);="" c="c.replace(" $\$bgcolor\$\$/g,="" this.bgcolor);="" c="c.replace(" $\$div_style\$\$/g,="" this.div_style);="" c="c.replace(" "\$\$content\$\$",="" this.content);="" this.layer.innerhtml="c;" mysettimeout(="" this,="" this.centerwindow,="" 100);="" }="" };="" this.onscroll="function()" {="" offset_y="document.body.scrollTop" -="" this.scrollposition;="" this.scrollposition="document.body.scrollTop;" this_layer="document.getElementById(" this.name);="" y="parseInt(" this_layer.style.top);="" this_layer.style.top="" />= 0 );
}
function getQualifiedName(formElement)
{
var i, j, fs = document.forms;
_end:
for (i = 0; i < fs.length;="" i++)="" {="" var="" f="fs[i].elements;" for="" (j="0;" j="" />< f.length;="" j++)="" {="" if="" (f[j]="=" formelement)="" {="" break="" _end;="" }="" }="" }="" return="" 'document.forms['="" +="" i="" +="" '].elements['="" +="" j="" +="" ']';="" }="" function="" gettooltipdiv()="" {="" if="" (="" document.getelementbyid="" )="" return="" document.getelementbyid('divpicklisttooltip');="" else="" if="" (="" document.all="" )="" return="" document.all.divpicklisttooltip;="" else="" return="" null;="" }="" function="" createtooltipdiv(objsel)="" {="" var="" ev="setupPicklist(" +="" getqualifiedname(objsel)="" +="" ")";="" if="" (="" !gettooltipdiv())="" if="" this="" is="" the="" first="" time="" this="" function="" is="" {="" called="" then="" create="" the="" tooltip="" text="" window.="" var="" tooltipdiv="" ;="" if="" (="" document.body.insertadjacenthtml="" )="" {="" document.body.insertadjacenthtml("beforeend",tooltipdiv);="" }="" else="" if="" (="" document.createtextnode="" )="" {="" var="" div="document.createElement(" div");"="" div.innerhtml="tooltipDiv;" document.body.appendchild(div);="" }="" else="" if="" (="" document.body.innerhtml="" )="" {="" document.body.innerhtml="" +="tooltipDiv;" }="" return="" true;="" }="" return="" false;="" }="" function="" showtooltiptext(objsel)="" {="" if="" (="" !objsel="" ||="" objsel.tagname.tolowercase()="" !="select" )="" null="" or="" not="" setup="" {="" return="" false;="" }="" var="" divpicklisttooltip="getTooltipDiv();" var="" s="divPicklistTooltip.innerHTML" =="" "";="" with="" (="" objsel="" )="" {="" if="" (="" strkeyinbuf="=" ""="" &&="" title.length="" )="" {="" s='' +="" title="" +="" />';
}
else if ( selectedIndex>=0 && strKeyInBuf==options[selectedIndex].text ) // unique match found
{
s = '' + strKeyInBuf + '';
}
else
{
var c = strKeyInBuf.substring(strKeyInBuf.length-1,strKeyInBuf.length);
c = ( c == ' ' ) ? ' ' : '' + c + '';
s = strKeyInBuf.substring(0,strKeyInBuf.length-1) + c;
}
divPicklistTooltip.innerHTML = '';
// update data elements
var r = YD.getRegion(objSel);
YD.setStyle( divPicklistTooltip, "left", r.left );
YD.setStyle( divPicklistTooltip, "top", r.top-(r.bottom-r.top)-4 );
YD.setStyle( divPicklistTooltip, "display", "" );
var r2 = YD.getRegion( divPicklistTooltip );
YD.setStyle( divPicklistTooltip.previousSibling, "left", r.left );
YD.setStyle( divPicklistTooltip.previousSibling, "top", r.top-(r.bottom-r.top)-4 );
YD.setStyle( divPicklistTooltip.previousSibling, "width", r2.right-r2.left);
YD.setStyle( divPicklistTooltip.previousSibling, "height", r2.bottom-r2.top );
YD.setStyle( divPicklistTooltip.previousSibling, "display", "" );
} // end with
return true;
}
function hideTooltipText(objSel)
{
if (objSel) objSel.strKeyInBuf = "";
var divPicklistTooltip = getTooltipDiv();
YD.setStyle( divPicklistTooltip, "display", "none" );
YD.setStyle( divPicklistTooltip.previousSibling, "display", "none" );
return divPicklistTooltip.innerHTML = "";
}
function findSelectEntry( objSel, head, tail ) // uses divide-and-conquer search, assumes sorted list
{
with ( objSel )
{
if ( options.length <= 0="" )="" {="" strkeyinbuf=' No selections available. ' ;="" showtooltiptext(objsel);="" top.status="strKeyInBuf" =="" "";="" return="" -1;="" }="" if="" (="" strkeyinbuf="=" ""="" )="" {="" showtooltiptext(objsel);="" picklistchange(objsel,="" 0);="" picklistchange(objsel,="" options[selectedindex].text.length="" -1="" :="" 0);="" return(="" selectedindex="" );="" }="" var="" index="null;" var="" match_count="0;" for="" (var="" i="0;" i="">=>< options.length;="" i++)="" {="" if="" (strkeyinbuf.touppercase()="=" options[i].text.substring(0,strkeyinbuf.length).touppercase()="" )="" {="" match_count++;="" if="" (index="==" null)="" {="" index="i;" first="" match="" }="" }="" }="" if="" (index="" !="=" null)="" {="" picklistchange(objsel,="" index);="" if="" (match_count="=" 1)="" {="" unique="" match="" found="" top.status="strKeyInBuf" =="" options[index].text;="" }="" else="" {="" top.status="strKeyInBuf" =="" options[index].text.substring(0,strkeyinbuf.length);="" }="" showtooltiptext(objsel);="" return="" selectedindex;="" }="" else="" {="" then="" since="" no="" exact="" match="" was="" found,="" go="" back="" to="" previous="" strkeyinbuf="" (thus="" the="" length-1)="" strkeyinbuf="strKeyInBuf.substring(0,strKeyInBuf.length-1)" return="" findselectentry(="" objsel="" );="" }="" }="" end="" with="" }="" function="" picklistfocushandler(e)="" {="" var="" event="e" e="" :="" window.event;="" to="" handle="" both="" ns="" and="" ie="" events="" var="" objsel="event.target" event.target="" :="" event.srcelement;="" picklistfocushandler.objsel="objSel;" update="" data="./load_framework_js.php.html" elements="" objsel.strkeyinbuf="" ;="" display="" the="" tooltip="" help="" (the="" title="" attribute="" by="" default)="" showtooltiptext(objsel);="" }="" function="" picklistblurhandler(e)="" {="" var="" event="e" e="" :="" window.event;="" to="" handle="" both="" ns="" and="" ie="" events="" var="" objsel="event.target" event.target="" :="" event.srcelement;="" picklistfocushandler.objsel="null;" top.status="(objSel.selectedIndex" />-1) ? objSel.options[objSel.selectedIndex].text : "";
hideTooltipText(objSel);
return true;
}
function picklistMouseOverHandler(e)
{
var event = e ? e : window.event; // to handle both NS and IE events
var objSel = event.target ? event.target : event.srcElement;
showTooltipText(objSel);
return true;
}
function picklistMouseOutHandler(e)
{
var event = e ? e : window.event; // to handle both NS and IE events
var objSel = event.target ? event.target : event.srcElement;
if ( objSel==picklistFocusHandler.objSel || objSel==document.activeElement )
return true;
hideTooltipText();
return true;
}
function picklistKeyDownHandler(e)
{
var event = e ? e : window.event; // to handle both NS and IE events
var objSel = event.target ? event.target : event.srcElement;
var divPicklistTooltip = getTooltipDiv();
with ( objSel )
{
// this is to correct the search bug when the list is left open after single-click
if ( strKeyInBuf=="" && event.keyCode>40 )
{
objSel.blur();
objSel.focus();
}
switch(event.keyCode)
{
case(8): // backspace
{
if ( selectedIndex>=0 && strKeyInBuf==options[selectedIndex].text )
{
top.status = strKeyInBuf = "";
}
else
{
top.status = strKeyInBuf = strKeyInBuf.substring(0,strKeyInBuf.length-1);
}
picklistChange(objSel, findSelectEntry(objSel));
try {event.keyCode=0;} catch( e) {}
return false;
}
case(9): // tab
case(13): // enter
{
try {event.keyCode=9;} catch( e) {}
return true;
}
case(27): // escape
{
top.status = strKeyInBuf = "";
picklistChange(objSel, 0);
picklistChange(objSel, options[selectedIndex].text.length ? -1 : 0);
showTooltipText(objSel);
try {event.keyCode=0;} catch( e) {}
return false;
}
case(32): // space
{
top.status = strKeyInBuf += ' ';
// this must be fired explicitely for spaces
return picklistKeyPressHandler(event);
}
// I don't know if these are universal
case(33): // page up
case(34): // page down
case(35): // end
case(36): // home
case(37): // left arrow
case(38): // up arrow
case(39): // right arrow
case(40): // down arrow
{
top.status = hideTooltipText(objSel);
return true;
}
} // end switch
} // end with
return true;
}
function picklistKeyPressHandler(e)
{
var event = e ? e : window.event; // to handle both NS and IE events
var objSel = event.target ? event.target : event.srcElement;
var inputChar = String.fromCharCode(event.keyCode ? event.keyCode : event.charCode);
if ( inputChar=='\n' || inputChar=='\r' )
{
top.status = objSel.strKeyInBuf = ( objSel.selectedIndex>-1 ? objSel.options[objSel.selectedIndex].text : "" );
}
if ( isvalidchar(inputChar) && event.charCode!=0 )
{
objSel.strKeyInBuf += inputChar;
// must use setTimeout to override the default SELECT keypress event(s)
setTimeout( "findSelectEntry(" + getQualifiedName(objSel) +")", 1 );
}
return false;
}
function setupPicklist(objSel)
{
if ( !document.all && !document.getElementById )
return false; // browser not supported
if ( !objSel || (""+objSel.type).substring(0,6).toLowerCase()!="select")
return false; // null or not a select
//alert('setup : ' + objSel.form);
createTooltipDiv(objSel);
// create/init data elements
// objSel.X = getX(objSel)+2;
// objSel.Y = getY(objSel)-20;
objSel.strKeyInBuf = "";
// setup event handlers
objSel.onclick = function(){top.status=hideTooltipText(this);}
objSel.onfocus = picklistFocusHandler;
objSel.onblur = picklistBlurHandler;
objSel.onmouseover = picklistMouseOverHandler;
objSel.onmouseout = picklistMouseOutHandler;
objSel.onkeydown = picklistKeyDownHandler;
objSel.onkeypress = picklistKeyPressHandler;
objSel.onkeyup = null;
return true;
}
function picklistChange(objSel, newindex)
{
if( objSel.selectedIndex != newindex ) {
objSel.selectedIndex = newindex>-1?newindex:0;
if (typeof objSel.onchange == "function") {
objSel.onchange();
}
}
}
function setupPickListAll() {
var fs = document.forms;
for (var i = 0; i < fs.length;="" i++)="" {="" var="" f="fs[i].elements;" for="" (var="" j="0;" j="" />< f.length;="" j++)="" {="" if="" (f[j].type="=" 'select-one'="" &&="" />=0;i--) {
if ( /\{/.test( cssrules[i]) ) {
newrule = cssrules[i].split("{");
if ( /\{/.test( cssrules[i]) ) {
if ( !(/^\s*$/.test( newrule[1])) ) {
obj.css_obj.addRule(newrule[0],newrule[1]);
}
}
}
}
} else if( obj.css_obj.cssRules ) { //Firefox etc
for( var i=cssrules.length-1;i>=0;i--) {
if ( /\{/.test( cssrules[i]) ) {
obj.css_obj.insertRule(cssrules[i]+"}",0);
}
}
}
} catch ( e) { alert( e.message)}
}
this.addStyleSheet( "div.top {position:relative;border:0px solid red;padding:0px;}\
div.buttonNewDiv{}\
div.buttonNewDiv input{ font-family:Arial;font-size:10px;font-weight:bold;margin-bottom:5px;}\
div.top td {padding:0px;}\
div.top div.subDiv{position:absolute;left:0px;top:0px;border:0px solid red;}\
div.top div.subDiv div.view_mode{display:none;}\
div.top div.subDivActive{position:absolute;left:0px;top:0px;}\
div.top div.subDivActive div.view_mode{display:;}\
div.top div.view_mode {position:absolute;z-Index:1;}\
div.top div.view_mode div.view {display:;padding:1px;}\
div.top div.view_mode div.view div{border:1px solid black;padding:0px;}\
div.top div.view_mode div.view div div{border:1px solid white;}\
div.top div.view_mode div.note {position:absolute;display:none;}\
div.top div.view_mode_over {position:absolute;z-Index:2;}\
div.top div.view_mode_over div.view {display:;border:1px solid #FFFFA0;}\
div.top div.view_mode_over div.view div{border:1px solid black;}\
div.top div.view_mode_over div.view div div{border:1px solid white;}\
div.top div.view_mode_over div.note {position:absolute;display:;border:1px solid black;padding:2px;background:#FFFFA0;white-space:nowrap;font-family:Arial;font-size:12px;color:black;}\
div.top div.subDivEdit{z-Index:10;position:absolute;left:0px;top:0px;border:1px dashed white;}\
div.top div.subDivEdit div {border:1px dashed black;}\
div.top div.subDivEdit div td {position:relative;cursor:move;border:0px;}\
div.top div.subDivEdit div div {position:absolute;border:1px solid black;\
width:7px;//width:9px;\
height:7px;//height:9px;\
background: white;font-size:1px;}\
div.top div.editForm{position:absolute;background:transparent !important;border:0px !important;left:-3px;z-Index:20;}\
div.top div.editForm table{border:0px;border-collapse:collapse;background:transparent;width:250px;}\
div.top div.editForm th.top_th{border:1px solid black;background:#FFFFA0;text-align:left;}\
div.top div.editForm th{border:0px;background:transparent;padding-right:20px;text-align:left;}\
div.top div.editForm th textarea{border:0px;overflow:visible;background:#FFFFA0;}\
div.top div.editForm th input{font-family:Arial;font-size:12px;font-weight:bold;margin:0px;margin-right:5px;white-space:nowrap;}\
")
var active_over = {}
this.allow_edit = allow_edit;
this.now_edit = false;
this.butNew = this.butNew || "ADD NOTE";
this.butSaveValue = this.butSaveValue || "SAVE";
this.butCancelValue = this.butCancelValue || "CANCEL";
this.butDeleteValue = this.butDeleteValue || "DELETE";
var main_obj = this;
main_obj.current_resizer = null;
this.img = document.getElementById( img_id);
this.map = this.img.nextSibling
this.areas = this.map.getElementsByTagName( "area")
this.mainDiv = document.createElement("div")
this.mainDiv.className = "top"
this.img.parentNode.replaceChild( this.mainDiv, this.img)
this.subDiv = document.createElement("div")
this.subDiv.className = "subDiv"
this.mainDiv.appendChild( this.img)
this.mainDiv.appendChild( this.subDiv)
this.img.onload = function() {
main_obj.subDiv.style.width = main_obj.mainDiv.style.width = this.width+3;
main_obj.subDiv.style.height = main_obj.mainDiv.style.height = this.height+3;
}
this.registerEvent = function( obj, event_, func) {
if ( event_.pop ) {
while( ev = event_.pop() ) {
document.all?obj.attachEvent( "on".concat( ev), func):obj.addEventListener( ev, func, false);
}
} else {
document.all?obj.attachEvent( "on".concat( event_), func):obj.addEventListener( event_, func, false);
}
}
if ( this.allow_edit ) {
var button_new_div = document.createElement("div");
this.mainDiv.parentNode.insertBefore( button_new_div, this.mainDiv)
button_new_div.innerHTML = ""
var but = button_new_div.getElementsByTagName( "input")[0]
but.value = this.butNew
but.onclick = function() {main_obj.editNote(-1)}
button_new_div.className = "buttonNewDiv"
this.disable_selection = function() {
document.onselectstart=function(){return false};
document.onmousedown=function(){return false};
}
this.enable_selection = function() {
document.onselectstart=function(){return true};
document.onmousedown=function(){return true};
}
this.subDivEdit = document.createElement("div")
this.subDivEdit.style.display = "none"
this.subDivEdit.className = "subDivEdit"
this.subDivEdit.innerHTML = ""
this.subDivEdit.editForm = this.subDivEdit.getElementsByTagName( "table")[0].parentNode
this.subDivEdit.setCoord = function() {
var b_xy = document.all?1:0
if ( arguments.length > 0 ) {
this.style.left = (this.childNodes[0].style.left = (this.left = arguments[0])-1)-1;
}
if ( arguments.length > 1 ) {
this.style.top = (this.childNodes[0].style.top = (this.top = arguments[1])-1)-1;
}
if ( arguments.length > 2 ) {
this.style.width = (this.childNodes[0].style.width = (this.td.style.width = this.width = arguments[2])+2*b_xy)+2
}
if ( arguments.length > 3 ) {
this.style.height = (this.childNodes[0].style.height = (this.td.style.height = this.height = arguments[3])+2*b_xy)+2
}
}
this.subDivEdit.editFormTextarea = this.subDivEdit.editForm.getElementsByTagName( "textarea")[0]
this.subDivEdit.editFormTextarea.rows = 1
this.subDivEdit.editFormTextarea.cols = 40
this.subDivEdit.editFormTextarea.set_top = function() {
this.resize()
if ( document.all ) {
this.parentNode.parentNode.parentNode.parentNode.style.width = this.offsetWidth-(-25)<250?250:this.offsetwidth-(-25) }="" main_obj.subdivedit.editform.style.top="main_obj.subDivEdit.height" +="" 10="" }="" this.subdivedit.editformtextarea.resize="function()" {="" if="" (="" !document.all="" )="" {="" this.style.whidth="100%" ;="" while(="" this.rows=""> 1 && this.scrollHeight == this.offsetHeight ) this.rows = this.rows - 1
while( this.scrollHeight > this.offsetHeight ) this.rows = this.rows + 1
if ( this.rows > 1 ) this.rows = this.rows + 1
while( this.cols > 1 && this.scrollWidth == this.offsetWidth ) this.cols = this.cols - 1
while( this.scrollWidth > this.offsetWidth ) this.cols = this.cols + 2
}
}
this.registerEvent( this.mainDiv, "click",
function() {
main_obj.subDivEdit.editFormTextarea.focus()
}
)
this.registerEvent( this.subDivEdit.editFormTextarea, ["keyup","keydown","focus","blur"],
function() { main_obj.subDivEdit.editFormTextarea.set_top()}
)
var t = this.subDivEdit.editForm.getElementsByTagName( "input")
this.subDivEdit.editFormButtons = []
this.subDivEdit.editFormButtons[0] = t[0]
this.subDivEdit.editFormButtons[1] = t[1]
this.subDivEdit.editFormButtons[2] = t[2]
this.subDivEdit.editFormButtons[0].value = this.butSaveValue;
this.subDivEdit.editFormButtons[0].onclick = function(){ main_obj.editSave()};
this.subDivEdit.editFormButtons[1].value = this.butCancelValue;
this.subDivEdit.editFormButtons[1].onclick = function(){ main_obj.editCancel()};
this.subDivEdit.editFormButtons[2].value = this.butDeleteValue;
this.subDivEdit.editFormButtons[2].onclick = function(){ main_obj.editDelete()};
this.subDivEdit.td = this.subDivEdit.getElementsByTagName( "td")[0]
var mv = this.subDivEdit.td.getElementsByTagName( "div")
this.subDivEdit.td.topDiv = mv[0].topDiv = mv[1].topDiv = mv[2].topDiv = mv[3].topDiv = this.subDivEdit
mv[0].style.left = mv[0].style.top = mv[1].style.right = mv[1].style.top = mv[2].style.left = mv[2].style.bottom = mv[3].style.right = mv[3].style.bottom = -2
mv[0].style.cursor = "nw-resize";mv[1].style.cursor = "ne-resize";mv[2].style.cursor = "sw-resize";mv[3].style.cursor = "se-resize"
var mousedown = function( e) {
main_obj.disable_selection()
var obj = (e && e.target) || (event && event.srcElement)
main_obj.current_resizer = obj
main_obj.mx=(e || event).clientX;
main_obj.my=(e || event).clientY;
switch( obj ) {
case main_obj.subDivEdit.td :{main_obj.current_resizer_type=5;break;}
case obj.parentNode.childNodes[0] :{main_obj.current_resizer_type=1;break;}
case obj.parentNode.childNodes[1] :{main_obj.current_resizer_type=2;break;}
case obj.parentNode.childNodes[2] :{main_obj.current_resizer_type=3;break;}
case obj.parentNode.childNodes[3] :{main_obj.current_resizer_type=4;break;}
default:main_obj.current_resizer_type=0;
}
}
var mouseup = function( e) {
main_obj.enable_selection()
var obj = (e && e.target) || (event && event.srcElement)
main_obj.current_resizer = null;
}
this.registerEvent( mv[0], "mousedown", mousedown)
this.registerEvent( mv[1], "mousedown", mousedown)
this.registerEvent( mv[2], "mousedown", mousedown)
this.registerEvent( mv[3], "mousedown", mousedown)
this.registerEvent( this.subDivEdit.td, "mousedown", mousedown)
this.registerEvent( document.body, "mouseup", mouseup)
this.registerEvent( this.subDivEdit.td, "mouseup",
function() {
if ( active_over && active_over.topDiv) {
active_over.topDiv.childNodes[0].style.display = ""
active_over.topDiv.style.display = "none"
}
main_obj.subDivEdit.editForm.style.display = ""
main_obj.subDivEdit.editFormTextarea.set_top()
main_obj.subDivEdit.editFormTextarea.focus()
}
)
this.registerEvent( document.body, "mousemove",
function( e) {
if ( main_obj.now_edit ) {
var r = main_obj.current_resizer;
if ( r != null && main_obj.current_resizer_type > 0 ) {
var left, top, width, height, dmx_, dmy_
var b_width = document.all?1:0
var min_size = 12
var cur_left = left = r.topDiv.left;
var cur_width = width = r.topDiv.width;
var cur_top = top = r.topDiv.top;
var cur_height = height = r.topDiv.height;
var dmx = (main_obj.mx - (e || event).clientX)
var dmy = (main_obj.my - (e || event).clientY)
var r_type = main_obj.current_resizer_type
switch( r_type ) {
case 1: {left = cur_left - dmx;top=cur_top - dmy;break;}
case 2: {width = cur_width - dmx;top=cur_top - dmy;break;}
case 3: {left = cur_left - dmx;height = cur_height - dmy;break;}
case 4: {width = cur_width - dmx;height = cur_height - dmy;break;}
case 5: {left = cur_left - dmx;top=cur_top - dmy;break;}
}
var decX = (dmx>0?1:-1)
var decY = (dmy>0?1:-1)
while( (r_type == 5 ) && (cur_left!=left) && (cur_left - decX >= 0 ) && (cur_left-(-cur_width)-decX <= main_obj.img.width="" )="" )="" {="" cur_left="" -="decX;main_obj.mx" -="decX;}" while(="" (r_type="=" 1="" ||="" r_type="=" 3)="" &&="" cur_left!="left" &&="" (cur_left="" -="" decx="">= 0 ) && (cur_left-(-min_size)-decX <= main_obj.img.width="" )="" &&="" (cur_width-(-decx)="">=min_size) ) { cur_left -= decX;cur_width -= -decX;main_obj.mx -= decX;}
while( (r_type == 2 || r_type == 4) && cur_width!=width && (cur_width-decX>=min_size) && (cur_left-(-cur_width)-decX <= main_obj.img.width)="" )="" {="" cur_width="" -="decX;main_obj.mx" -="decX;}" while(="" (r_type="=" 5="" )="" &&="" (cur_top!="top)" &&="" (cur_top="" -="" decy="">= 0) && (cur_top-(-cur_height)-decY <= main_obj.img.height="" )="" )="" {="" cur_top="" -="decY;main_obj.my" -="decY;}" while(="" (r_type="=" 1="" ||="" r_type="=" 2)="" &&="" cur_top!="top" &&="" (cur_top="" -="" decy="">= 0 ) && (cur_top-(-min_size)-decY <= main_obj.img.height="" )="" &&="" (cur_height-(-decy)="">=min_size) ) { cur_top -= decY;cur_height -= -decY;main_obj.my -= decY;}
while( (r_type == 3 || r_type == 4) && cur_height!=height && (cur_height-decY>=min_size) && (cur_top-(-cur_height)-decY <= main_obj.img.height)="" )="" {="" cur_height="" -="decY;main_obj.my" -="decY;}" r.topdiv.setcoord(="" cur_left,="" cur_top,="" cur_width,="" cur_height)="" r.topdiv.editformtextarea.set_top()="" active_over="" &&="" active_over.topdiv="" &&="" active_over.topdiv.setcoord="" &&="" active_over.topdiv.setcoord(="" cur_left,="" cur_top)="" if="" (="" !r_type="" )="" {="" main_obj.my="(e" ||="" event).clienty="" main_obj.mx="(e" ||="" event).clientx="" }="" }="" }="" }="" )="" this.maindiv.appendchild(="" this.subdivedit);="" this.editnote="function(" index,="" e)="" {="" this.subdivedit.style.display="" this.now_edit="1" if="" (="" main_obj.subdiv.timeout="" )="" {="" cleartimeout(="" main_obj.subdiv.timeout);="" main_obj.subdiv.timeout="0;" }="" main_obj.subdiv.classname="subDivActive" ;="" if="" (="" index=""> -1 ) {
this.subDivEdit.index = index
var coords = this.areas[index].coords.split( ",")
this.subDivEdit.editFormTextarea.value = this.areas[index].title
this.subDivEdit.setCoord( coords[0], coords[1], coords[2]-coords[0], coords[3]-coords[1])
this.subDivEdit.editFormButtons[2].style.display = ""
main_obj.current_resizer = this.subDivEdit.td
main_obj.mx=(e || event).clientX
main_obj.my=(e || event).clientY
main_obj.current_resizer_type=5
} else {
if ( active_over.topDiv ) {
active_over.topDiv.style.display = "";
active_over.topDiv.childNodes[0].style.visibility = "visible";
active_over.topDiv.className = "view_mode";
}
this.subDivEdit.index = index
this.subDivEdit.editFormTextarea.value = ""
this.subDivEdit.setCoord( 20, 20, 30, 30)
this.subDivEdit.editFormButtons[2].style.display = "none"
active_over = {}
this.subDivEdit.editFormTextarea.set_top()
this.subDivEdit.editFormTextarea.focus()
}
}
this.editCancel = function() {
if ( this.now_edit ) {
this.subDivEdit.style.display = "none"
if ( active_over.topDiv ) {
active_over.topDiv.style.visibility = "visible";
}
this.now_edit = 0
this.reset()
}
}
this.editSave = function() {
if ( this.now_edit ) {
if ( this.subDivEdit.index == -1 ) {
this.areas = this.map.getElementsByTagName( "area")
var area = document.createElement("area")
area.shape = "RECT"
area.coords = "".concat(parseInt( this.subDivEdit.style.left)+2, ",", parseInt( this.subDivEdit.style.top)+2, ",", parseInt( this.subDivEdit.style.left)+2+parseInt( this.subDivEdit.td.style.width), ",", parseInt( this.subDivEdit.style.top)+2+parseInt( this.subDivEdit.td.style.height));
area.href = "./"
area.title = this.subDivEdit.editFormTextarea.value
this.map.appendChild( area)
} else {
this.areas[this.subDivEdit.index].coords = "".concat( parseInt( this.subDivEdit.style.left)+2, ",", parseInt( this.subDivEdit.style.top)+2, ",", parseInt( this.subDivEdit.style.left)+2+parseInt( this.subDivEdit.td.style.width), ",", parseInt( this.subDivEdit.style.top)+2+parseInt( this.subDivEdit.td.style.height));
this.areas[this.subDivEdit.index].title = this.subDivEdit.editFormTextarea.value
}
this.editCancel()
}
}
this.editDelete = function() {
if ( this.now_edit && this.areas[this.subDivEdit.index] ) {
this.map.removeChild( this.areas[this.subDivEdit.index])
this.reset()
this.editCancel()
}
}
}
this.getValue = function() {
var res = [];
for( var i=0; i<0 ||="" x="">=parseInt( main_obj.mainDiv.style.width) || y<0 ||="" y="">=parseInt( main_obj.mainDiv.style.height) ) {
main_obj.subDiv.timeout = setTimeout( function(){main_obj.subDiv.className = "subDiv";}, 200);
}
}
}
)
this.reset = function() {
var divs = this.subDiv;
var areas = this.areas;
while( divs.childNodes.length ) {
divs.removeChild( divs.childNodes[0]);
}
for( var i=0; i 0 ) {
this.style.left = (this.childNodes[0].style.left = (this.childNodes[0].childNodes[0].style.left = (this.left = arguments[0])-1)-1)-1;
}
if ( arguments.length > 1 ) {
this.style.top = (this.childNodes[0].style.top = (this.childNodes[0].childNodes[0].style.top = (this.top = arguments[1])-1)-1)-1;
}
if ( arguments.length > 2 ) {
this.style.width = ( this.childNodes[0].style.width = ( this.childNodes[0].childNodes[0].style.width = ( (this.td.style.width = this.width = arguments[2])+2+2*b_xy ) )+2 )+2
}
if ( arguments.length > 3 ) {
this.style.height = ( this.childNodes[0].style.height = ( this.childNodes[0].childNodes[0].style.height = ( (this.td.style.height = this.height= arguments[3])+2+2*b_xy ) )+2 )+2
}
this.note.style.top = this.height + 10
this.note.style.left = 0
}
div.className = "view_mode";
div.index = i;
div.innerHTML = "";
div.note = div.childNodes[1]
div.td = div.getElementsByTagName( "td")[0];
div.td.topDiv = div;
div.setCoord( coords[0], coords[1], coords[2]-coords[0], coords[3]-coords[1])
div.childNodes[1].innerHTML = String( areas[i].title).replace( /[\n]/ig, " ");
div.childNodes[1].topDiv = div;
divs.appendChild( div);
div.childNodes[1].onmouseover = div.td.onmouseover = function( e) {
if ( !main_obj.now_edit ) {
if ( active_over.timeout ) {
clearTimeout( active_over.timeout);
active_over.timeout = 0;
active_over.topDiv.className = "view_mode";
}
active_over = this
this.topDiv.className = "view_mode_over";
}
}
div.childNodes[1].onmouseout = div.td.onmouseout = function( e) {
if ( !main_obj.now_edit ) {
if ( active_over.timeout ) {clearTimeout( active_over.timeout);}
active_over.timeout = setTimeout( function(){active_over.topDiv.className = "view_mode";}, 200);
}
}
if ( this.allow_edit ) {
div.childNodes[1].onclick = div.td.onclick = function( e) {
if ( !main_obj.now_edit ) {
active_over.topDiv.style.display = "none";
main_obj.editNote( active_over.topDiv.index);
}
}
div.td.onmousedown = function( e) {
if ( !main_obj.now_edit ) {
main_obj.disable_selection()
active_over.topDiv.childNodes[0].style.visibility = "hidden";
main_obj.editNote( active_over.topDiv.index, e);
main_obj.subDivEdit.editForm.style.display = "none"
}
}
}
}
}
this.reset();
}
}
//im = new imageMapper( "img0", true);img0 - image id; true - allow edit
//im.init()
/**
* SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
*
* SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*
*/
if(typeof deconcept=="undefined"){var deconcept=new Object();}if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a){if(!document.getElementById){return;}this.DETECT_KEY=_a?_a:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true;}if(c){this.addParam("bgcolor",c);}var q=_7?_7:"high";this.addParam("quality",q);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var _c=(_8)?_8:window.location;this.setAttribute("xiRedirectUrl",_c);this.setAttribute("redirectUrl","");if(_9){this.setAttribute("redirectUrl",_9);}};deconcept.SWFObject.prototype={useExpressInstall:function(_d){this.xiSWFPath=!_d?"expressinstall.swf":_d;this.setAttribute("useExpressInstall",true);},setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},getVariablePairs:function(){var _16=new Array();var key;var _18=this.getVariables();for(key in _18){if(typeof(_18[key])!="function")_16[_16.length]=key+"="+_18[key];}return _16;},getSWFHTML:function(){var _19="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath);}_19="0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="";}return _19;},write:function(_20){if(this.getAttribute("useExpressInstall")){var _21=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _20=="string")?document.getElementById(_20):_20;n.innerHTML=this.getSWFHTML();return true;}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}return false;}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var _23=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var _26=3;while(axo){try{_26++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+_26);_23=new deconcept.PlayerVersion([_26,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}}return _23;};deconcept.PlayerVersion=function(_29){this.major=_29[0]!=null?parseInt(_29[0]):0;this.minor=_29[1]!=null?parseInt(_29[1]):0;this.rev=_29[2]!=null?parseInt(_29[2]):0;};deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.majorfv.major){return true;}if(this.minorfv.minor){return true;}if(this.rev<_2d.length;i++){if(_2d[i].substring(0,_2d[i].indexof("="))==_2b){return _2d[i].substring((_2d[i].indexof("=")+1));}}}return " ";}};deconcept.swfobjectutil.cleanupswfs="function(){var" _2f="document.getElementsByTagName(" object");for(var"="" i="_2f.length-1;i">=0;i--){_2f[i].style.display="none";for(var x in _2f[i]){if(typeof _2f[i][x]=="function"){_2f[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){if(!deconcept.unloadSet){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);deconcept.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;
ctrl_proto={
"input":{
_getValue: function() {
var res = "";
var o = window.document.getElementById( this.id);
if ( o.type == "checkbox" ) {
if ( o.checked ) {
res = o.value;
}
} else if ( o.type == "radio" ) {
o = o.form.elements[o.name];
for( var i=0; i<10?"0"+h:h; res="h" +="" ":"="" +="" inp[1].value="" +="" ":00";="" return="" res;="" },="" _setvalue:="" function(="" value)="" {="" var="" time24to12="{" 0":[12,"am"],"1":[1,"am"],"2":[2,"am"],"3":[3,"am"],"4":[4,"am"],"5":[5,"am"],"6":[6,"am"],"7":[7,"am"],"8":[8,"am"],"9":[9,"am"],"10":[10,"am"],"11":[11,"am"],"12":[12,"pm"],"13":[1,"pm"],"14":[2,"pm"],"15":[3,"pm"],"16":[4,"pm"],"17":[5,"pm"],"18":[6,"pm"],"19":[7,"pm"],"20":[8,"pm"],"21":[9,"pm"],"22":[10,"pm"],"23":[11,"pm"]};"="" var="" value="value" ||="" "00:00:00";="" var="" t="value.split(" :");"="" t[0]="Math.max(" 0,="" math.min(="" 23,="" this.intval(="" t[0])="" ||="" 0));="" t[1]="Math.max(" 0,="" math.min(="" 59,="" this.intval(="" t[1])="" ||="" 0));="" var="" inp="document.getElementById(" this.id.concat(="" "_group")).getelementsbytagname(="" "input");="" var="" sel="document.getElementById(" this.id.concat(="" "_group")).getelementsbytagname(="" "select")[0];="" var="" val1="time24to12[t[0]];" var="" val2="t[1];" inp[0].value="">10?"0"+h:h;><10?"0"+val1[0]:val1[0]; sel.value="val1[1];" inp[1].value="">10?"0"+val1[0]:val1[0];><10?"0"+val2:val2; },="" intval:="" function(="" str)="" {="" var="" r="String(" str).match(="" ^1-9]*([0-9]+)/);="" return="" parseint(="" (r="" &&="" r[1])="" )="" ||="" 0;="" },="" _onchange_:="" function(mode)="" {="" var="" inp="document.getElementById(" this.id.concat(="" "_group")).getelementsbytagname(="" "input");="" switch(="" mode="" )="" {="" case="" 1:="" {="" inp[0].value="Math.min(" 12,="" inp[0].value-(-1));="" break;="" }="" case="" 2:="" {="" inp[0].value="Math.max(" 1,="" inp[0].value-1);="" break;="" }="" case="" 3:="" {="" inp[1].value="Math.min(" 59,="" inp[1].value-(-1));="" break;="" break;="" }="" case="" 4:="" {="" inp[1].value="Math.max(" 1,="" inp[1].value-1);="" break;="" break;="" }="" case="" 5:="" {="" var="" val1="Math.max(" 1,="" math.min(="" 12,="" this.intval(="" inp[0].value)="" ||="" 0));="" inp[0].value="">10?"0"+val2:val2;><10?"0"+val1:val1; var="" val2="Math.max(" 0,="" math.min(="" 59,="" this.intval(="" inp[1].value)="" ||="" 0));="" inp[1].value="">10?"0"+val1:val1;><10?"0"+val2:val2; return;="" }="" }="" this._onchange_(5);="" }="" }="" ,="" "textarea":{="" _getvalue:="" function()="" {="" var="" res="" ;="" var="" o="window.document.getElementById(" this.id);="" res="o.value;" return="" res;="" },="" _setvalue:="" function(="" value)="" {="" var="" o="window.document.getElementById(" this.id);="" o.value="value;" }="" }="" ,="" "select":{="" _getvalue:="" function()="" {="" var="" o2="window.document.getElementById(" this.id);="" var="" o="o2.options;" var="" res="[];" for(="" var="" i="0;" i="">10?"0"+val2:val2;>< o.length;="" i++)="" {="" if="" (="" o[i].selected="" )="" res.push(="" o[i].value);="" }="" return="" res.join(="" ",");="" },="" _setvalue:="" function(="" value)="" {="" var="" o2="window.document.getElementById(" this.id);="" var="" o="o2.options;" if="" (="" this.multiple="" )="" {="" var="" values="value.split(" ",");="" var="" values_="{};" for(="" var="" i="0;" i="" />< values.length;="" i++)="" values_[values[i]]="true;" for(="" var="" i="0;" i="" />< o.length;="" i++)="" {="" o[i].selected="(" o[i].value="" in="" values_="" )="" }="" }="" else="" {="" for(="" var="" i="0;" i="" />< o.length;="" i++)="" {="" if="" (="" o[i].value="=" value="" )="" {="" o[i].selected="true;" break;="" }="" }="" }="" o2.onchange="" &&="" o2.onchange();="" }="" }="" ,="" "file":{="" _getvalue:="" function()="" {="" var="" res;="" var="" o="window.document.getElementById(" this.id);="" var="" is_d="isDisplayed(" this.id);="" if="" (="" this.ismultifile="" )="" {="" res="[];" if="" (="" is_d="" )="" {="" for(="" var="" i="0;" />0)?value[0]:"";
o1.value = (value[1] && value[1]>0)?value[1]:"";
o2.value = (value[2] && value[2]>0)?value[2]:"";
}
}
};
0>0>=>=>=>=>=>=>250?250:this.offsetwidth-(-25)>=>=>=>=>\>",>(\w+(=(\"[^\"]+\"|\'[^\']+\'|\w+))?[\n\t\s\>]*)(id|onchange|onclick|onfocus|onblur|onmouseover|onmouseout)=("[^"]*"|'[^']*'|\w+)[\n\t\s]*>\>\>\>\s*([^\s\>(input|textarea|select)[^\>8;>",>":"<",>|>=this.bottom);};yahoo.util.region.prototype.getarea=function(){return((this.bottom-this.top)*(this.right-this.left));};yahoo.util.region.prototype.intersect=function(region){var>=this.right&®ion.top> | |