function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// XMLResponse

// Extensions to the built-in objects of Mozilla/Firefox

var isIE = (window.navigator.userAgent.indexOf("MSIE") > 0);

// ----- make FF more IE compatible -----
var isOpera = false;
if(window.opera) {isOpera = true;}

if( ! isIE && !isOpera ) {
// ----- HTML objects -----
/*HTMLElement.prototype.__defineGetter__("innerText", function () {
return(this.textContent);
});
HTMLElement.prototype.__defineSetter__("innerText", function ( txt ) {
this.textContent = txt;
});

// Hint: This is no perfect optimization. "obj.children" in IE contains no text nodes.
HTMLElement.prototype.__defineGetter__("children", function () {
return(this.childNodes);
});*/

HTMLElement.prototype.__defineGetter__("XMLDocument", function () {
return ((new DOMParser()).parseFromString(this.innerHTML, "text/xml"));
});


// ----- Event objects -----
// We need a wrapper method, because we need to store the actual event object on every call
// to window.event.

/*HTMLElement.prototype.attachEvent = function ( eventName, fHandler ) {
fHandler._wrapHandler = function ( e ) {
window.event = e;
fHandler();
return (e.returnValue);
};
this.addEventListener(eventName.substr(2), fHandler._wrapHandler, false);
};


HTMLElement.prototype.detachEvent = function ( eventName, fHandler ) {
if( fHandler._wrapHandler != null )
this.removeEventListener(eventName.substr(2), fHandler._wrapHandler, false);
};


// enable using evt.srcElement in Mozilla/Firefox
Event.prototype.__defineGetter__("srcElement", function () {
var node = this.target;
while( node.nodeType != 1 ) node = node.parentNode;
// test this:
if( node != this.target ) alert("Unexpected event.target!") // it still happens sometime, why ?
return node;
});

// enable using event.cancelBubble=true in Mozilla/Firefox
Event.prototype.__defineSetter__("cancelBubble", function ( b ) {
if( b ) this.stopPropagation();
});


// enable using event.returnValue=false in Mozilla/Firefox
// Hint: event.returnValue=true doesn't work !
Event.prototype.__defineSetter__("returnValue", function ( b ) {
if( !b ) this.preventDefault();
this._returnValue = b;
return(b);
});

// enable querying event.returnValue in Mozilla/Firefox
Event.prototype.__defineGetter__("returnValue", function () {
return (this._returnValue);
});*/


// ----- XML objects -----

// select the first node that matches the XPath expression
// xPath: the XPath expression to use
/*
if( document.implementation.hasFeature("XPath", "3.0") ) {
}
*/
XMLDocument.prototype.selectNodes = function( cXPathString, xNode ) {
if( !xNode ) {
xNode = this;
}
var oNSResolver = this.createNSResolver(this.documentElement)
var aItems = this.evaluate(cXPathString, xNode, oNSResolver, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null)
var aResult = [];
for( var i = 0; i < aItems.snapshotLength; i++ ) {
aResult[i] = aItems.snapshotItem(i);
}
return aResult;
}

XMLDocument.prototype.selectSingleNode = function( cXPathString, xNode ) {
if( !xNode ) {
xNode = this;
}
var xItems = this.selectNodes(cXPathString, xNode);
if( xItems.length > 0 ) {
return xItems[0];
}
else {
return null;
}
}

Element.prototype.selectNodes = function( cXPathString ) {
if( this.ownerDocument.selectNodes ) {
return this.ownerDocument.selectNodes(cXPathString, this);
}
else {
throw "For XML Elements Only";
}
}
Element.prototype.selectSingleNode = function( cXPathString ) {
if( this.ownerDocument.selectSingleNode ) {
return this.ownerDocument.selectSingleNode(cXPathString, this);
}
else {
throw "For XML Elements Only";
}
}

// Node.text
Node.prototype.__defineGetter__("text", function () {
return(this.textContent);
});
Node.prototype.__defineSetter__("text", function ( txt ) {
this.textContent = txt;
});
}

//HTTPRequest

//////////////////////////////////////////////////////////////////////////
// This module implements functionality of HTTP request component
//
// HTTPRequest allows you to send HTTP requests from your HTML pages.
// The component is compatibe with  IE5 and higher
//
// Copyright (C) EStyle Software House
// Created by Alexey Prokhorov
//
////////////////////////////////////////////////////////////////

/**
 * Constructs instance of HTTPRequest
 */

function IEError(num, descr)
{
	this.number = num;
	this.description = descr;
	this.message = descr;
};

function HTTPRequest()
{
    this.httpReq = null;
    this.requestDoc = null;
    this.xeRequest = null;

	if(window.XMLHttpRequest && window.XMLHttpRequest.prototype && !window.XDomainRequest)
	{
		this.httpReq = new XMLHttpRequest();
		this.requestDoc = document.implementation.createDocument("", "", null);
	}
	else
	{
	    try {
			this.httpReq = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (e) {
			this.httpReq = new ActiveXObject ("Msxml.XMLHTTP");
		};

		this.requestDoc = new ActiveXObject ("Msxml.DOMDocument");
	}

	this.xeRequest = this.requestDoc.createElement ("request");

    this.add = HTTPRequest_add;                         // Adds new request parameter
    this.send = HTTPRequest_send;                       // Sends a request
    this.getResponse = HTTPRequest_getResponse;               // Sends a request
    this.getResponseXml = HTTPRequest_getResponseXml;               // Sends a request
};


/**
 * Adds new HTTP request parameter
 */
function HTTPRequest_add (prmKey, prmValue, prmParentNode)
{
    if(prmParentNode == null)
    {
        prmParentNode = this.xeRequest;
    }
    var xeParam = this.requestDoc.createElement(new String(prmKey));
    xeParam.appendChild(this.requestDoc.createTextNode(
        new String(prmValue)));
    prmParentNode.appendChild(xeParam);

    return xeParam;
};

/**
 * Sends HTTP request data to the server
 * @param url defines target URL to send request
 */
function HTTPRequest_send (url)
{
    this.requestDoc.appendChild (this.xeRequest);

    // Open HTTP request attributes
	if(window.XMLHttpRequest && window.XMLHttpRequest.prototype && !window.XDomainRequest)
	{
		this.httpReq.open ("POST", url, false);
		this.httpReq.setRequestHeader ("Content-Type", "application/estyle-xml-request");

		var s = new XMLSerializer();
		var xml = s.serializeToString(this.requestDoc)

		this.httpReq.send (xml);
	}
	else
	{
		this.httpReq.Open ("POST", url, false);
		this.httpReq.setRequestHeader ("Content-Type", "application/estyle-xml-request");
		this.httpReq.Send (this.requestDoc.xml);
	}
    var errStartTag = "<ERROR-581759FF-54FD-4FA0-9576-D2BECCE9082F-ERROR>";
    // Check response status
    if (this.httpReq.status!=200 || this.httpReq.responseText.indexOf(errStartTag)!= -1) {

        var errEndTag = "</ERROR-581759FF-54FD-4FA0-9576-D2BECCE9082F-ERROR>";
        var rspContent = this.httpReq.responseText ;
        var errorMsg = rspContent.substring (rspContent.indexOf(errStartTag)+errStartTag.length, rspContent.indexOf(errEndTag));

        if (errorMsg==null || errorMsg.length==0)
        {
			errorMsg = (this.httpReq.statusText==null || this.httpReq.statusText=="") ? "Web Server error: "+this.httpReq.status : this.httpReq.statusText;
        }

		if(window.XMLHttpRequest && window.XMLHttpRequest.prototype && !window.XDomainRequest)
		{
			throw new IEError (this.httpReq.status, errorMsg);
		}
		else
		{
			throw new Error (this.httpReq.status, errorMsg);
		}
    }

    return this.httpReq.responseText;
};

function HTTPRequest_getResponse(prmPath)
{
  var xmlNode = this.httpReq.responseXML.selectSingleNode(prmPath);
  if(xmlNode == null)
  {
    return "";
  }
  return xmlNode.text;
}

function HTTPRequest_getResponseXml()
{
	return this.httpReq.responseXML;
}

/**
 * Displays error dialog 
 * @param url defines URL to display error dialog. if null, the method will try to popup "error/errordlg.html"
 * @param mainMsgHTML defines text to display main message
 * @param detailedMsgHTML defines text to display error details
 */
function showErrorDialog (url, mainMsg, detailedMsg) 
{
    if (url==null)
        url = "../common/errordlg.aspx";    
    var errorParameters = new Array();
    errorParameters[0] = mainMsg;
    errorParameters[1] = detailedMsg;
    try {        
        var msg = mainMsg;        
        if ( mainMsg != detailedMsg )
            msg += "\n\n" + detailedMsg;         
        alert( msg );         
    } catch (e) {
        var msg = mainMsg;
        if ( mainMsg != detailedMsg )
            msg += "\n\n" + detailedMsg;
        alert( msg );
    };
};

//////////////////////////////////////////////////////////////////////////////////
// Input value validators

/**
 * Check the field is empty (null or does not contain any value)
 */
function isEmptyField (value) {
    value = trim(value);
    value = removeTabs(value);
    return value==null || value=="";
}
/*
* Check the number of characters in field
*/
function CheckLength(value, length)
{	
	value = trim(value);
    return value.length == length;
}

/**
 * Check the field is empty (null or does not contain any value)
 */
function isEmptyTextAreaField (value) {
    return value==null || value=="" || isBlankTab(value);
}

function isBlankTab(str){
	for(var i=0; i<str.length; i++)
	{
		var caractere = str.charAt(i) ;
		// check for space, tab and enter 
		if((caractere!=" ")&& (caractere.charCodeAt(0)!=9)&& (caractere.charCodeAt(0)!=13)&& (caractere.charCodeAt(0)!=10))
		{ 
			return false ;
		} ;
	}; 
	return true ;
} 

/**
 * Returns maximum money value
 */
function getMaxMoney() {
    return "9999999999.99"   
}


/**
 * Check text area length
 */
function isValidTextArea (obj) {
    return obj.value.length<=1500;
}

/** 
 * Checks the specified value contains digits only
 * @param value defines string witch represents money
 * @param required if true the value cannot be empty or null
 * @return true if value actually represnts money
 */
function isDigitOnly (value, required) 
{
    if ((value==null || value=="") && required==false)
        return true;
    
    var re=/^[0-9]+$/;
    return re.test (value);
};

function isRegOnly (value) 
{    
    var re=/^[a-z A-Z à-ÿ-_\d À-ß ¸ ¨]+$/;
    return re.test (value);
};


/** 
 * Checks the specified value contains digits only. Spaces before and after value are allowed
 * @param value defines string witch represents money
 * @param required if true the value cannot be empty or null
 * @return true if value actually represnts money
 */
function isPaddedDigitOnly (value, required) 
{
    if ((value==null || value=="") && required==false)
        return true;
    
    var re=/^(\s)*[0-9]+(\s)*$/;
    return re.test (value);
};


function isDecimal (value, required)
{
    if ((value==null || value=="") && required==false)
        return true;
    
    var re=/^[0-9]{1,10}(\.[0-9][0-9]?)?$/;
    return re.test (value);
};

function isDecimalEx (value, required)
{
    if ((value==null || value=="") && required==false)
        return true;
    
    var re=/^(\-?)[0-9]{1,10}(\.[0-9][0-9]?)?$/;
    return re.test (value);
};


/**
 * Check the specified value is date in Russian format (DD/MM/YY or DD/MM/YYYY)
 * @param value defines string witch represents date
 * @param required if true the value cannot be empty or null
 * @return true if value actually represnts money
 */
function isDate (value, required)
{
    if ((value==null || value=="") && required==false)
        return true;
    
    //var re=/^[0-9]{1,2}(\/|-|\.)[0-9]{1,2}(\/|-|\.)([0-9]{1,2}|[0-9]{4})$/;
    //var re=/^[0-9]{1,2}(\.)[0-9]{1,2}(\.)([0-9]{1,2}|[0-9]{4})$/;
    var re=/^[0-9]{1,2}(\.)[0-9]{1,2}(\.)([0-9]{4})$/;
    if (!re.test(value))
        return false;

    var dateItems = value.split (/(\/|-|\.)/);
    //var dateItems = value.split (.)/);
    var day = parseInt (dateItems[0],10);
    var month = parseInt(dateItems[1],10)-1;
    var year = dateItems[2].length<4 ? (parseInt(dateItems[2],10)<70 ? parseInt(dateItems[2],10)+2000 : parseInt(dateItems[2],10)+1900) : parseInt(dateItems[2],10);
    if (year<1800 || year>3000)
        return false;
    var dtTest = new Date (year, month, day);
    return (dtTest.getDate()==day && dtTest.getMonth()==month && dtTest.getFullYear()==year);
}

function CompareWithNow(value)
{
	var Nowdt = new Date();
	var Nowd =  new Date(Nowdt.getYear(), Nowdt.getMonth(), Nowdt.getDate(), 0, 0, 0, 0)
	if (isDate(value, true))
	{
		var dateItems = value.split (/(\/|-|\.)/);
		var day = parseInt (dateItems[0],10);
		var month = parseInt(dateItems[1],10)-1;
		var year = dateItems[2].length<4 ? (parseInt(dateItems[2],10)<70 ? parseInt(dateItems[2],10)+2000 : parseInt(dateItems[2],10)+1900) : parseInt(dateItems[2],10);
		var dtTest = new Date (year, month, day,0,0,0,0);
		if (Nowd > dtTest)
		{
			return true;
		}
		else
		{
			return false ;
		}
		
	}
	else
	{
		return false ;
	} 
	         
}

/**
 * Check the specified value is date in Russian format (DD/MM/YY or DD/MM/YYYY)
 * If it is date it is splitted by dots and returned as "dd.mm.yyyy"
 * @param value defines string witch represents date
 * @return value with dots if value actually represnts money
 */
function DataWithDot(value)
{
	if (isDate(value, true))
	{
		var dateItems = value.split (/(\/|-|\.)/);
		var day = parseInt (dateItems[0],10);
		var month = parseInt(dateItems[1],10);
		var year = dateItems[2].length<4 ? (parseInt(dateItems[2],10)<70 ? parseInt(dateItems[2],10)+2000 : parseInt(dateItems[2],10)+1900) : parseInt(dateItems[2],10);
		var dtTest = day + "." + month + "." + year ;
		return dtTest ;
	}
	else
	{
		return value;
	}
}

/**
 * Check the specified value is time in Russian format (HH24:MI)
 * @param value defines string witch represents date
 * @param required if true the value cannot be empty or null
 * @return true if value actually represnts money
 */
function isTime (value, required)
{
    if ((value==null || value=="") && required==false)
        return true;
    
    var re=/^[0-9]{1,2}(:)[0-9]{1,2}$/;
    if (!re.test(value))
        return false;

    var dateItems = value.split (/(:|-)/);
    var hours = parseInt (dateItems[0],10);
    var minutes = parseInt(dateItems[1],10);
    
    return (hours>=0 && hours<=23 && minutes>=0 && minutes<=59);
};

/**
 * Reference: Sandeep V. Tamhankar (stamhankar@hotmail.com),
 * http://javascript.internet.com
 */
function validateEmail(value) {
    if (value.length == 0) {
        return true;
    }
    var emailPat=/^(.+)@(.+)$/;
    var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]";
    var validChars="\[^\\s" + specialChars + "\]";
    var quotedUser="(\"[^\"]*\")";
    var ipDomainPat=/^(\d{1,3})[.](\d{1,3})[.](\d{1,3})[.](\d{1,3})$/;
    var atom=validChars + '+';
    var word="(" + atom + "|" + quotedUser + ")";
    var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
    var domainPat=new RegExp("^" + atom + "(\\." + atom + ")*$");
    var matchArray=value.match(emailPat);
    if (matchArray == null) {
        return false;
    }
    var user=matchArray[1];
    var domain=matchArray[2];
    if (user.match(userPat) == null) {
        return false;
    }
    var IPArray = domain.match(ipDomainPat);
    if (IPArray != null) {
        for (var i = 1; i <= 4; i++) {
           if (IPArray[i] > 255) {
              return false;
           }
        }
        return true;
    }
    var domainArray=domain.match(domainPat);
    if (domainArray == null) {
        return false;
    }
    var atomPat=new RegExp(atom,"g");
    var domArr=domain.match(atomPat);
    var len=domArr.length;
    if ((domArr[domArr.length-1].length < 2) ||
        (domArr[domArr.length-1].length > 3)) {
        return false;
    }
    if (len < 2) {
        return false;
    }
    return true;
};

///////////////////////////////////////////////////////////////


/**
 * Converts string representation of date to date object. The date must be in DD.MM.YYYY format
 */
function strToDate(strDate)
{
	var dateItems = strDate.split (/(-|\/|\.)/);
	var year = parseInt(dateItems[2], 10);
	return new Date ((year<100 ? (year<70 ? year+2000 : year+1900) : year), parseInt (dateItems[1], 10)-1, parseInt (dateItems[0], 10));
}

/**
 * Converts string representation of date/time to date object. The date must be in DD.MM.YYYY format and time must be in HH:MI format.
 * @param strDate defines string representation of date
 * @param strTime defines string representation of time (optional)
 */
function strToDateTime(strDate, strTime)
{
	var dateItems = strDate.split (/(-|\/|\.)/);
	var year = parseInt(dateItems[2], 10);

    if (strTime!=null && strTime!="") {
        var timeItems = strTime.split (/(:)/);
        return new Date ((year<100 ? (year<70 ? year+2000 : year+1900) : year), parseInt (dateItems[1], 10)-1, parseInt (dateItems[0], 10), parseInt (timeItems[0], 10), parseInt (timeItems[1], 10));
    } else {
	    return new Date ((year<100 ? (year<70 ? year+2000 : year+1900) : year), parseInt (dateItems[1], 10)-1, parseInt (dateItems[0], 10));
    };
}

///////////////////////////////////////////////////////////////

/**
 * Returns date in Russian format DD.MM.YYYY
 */
function formatDate (varDate) 
{
    var dt = new Date (varDate);
    return dt.getDate()+"."+(dt.getMonth()+1)+"."+dt.getFullYear();
}

///////////////////////////////////////////////////////////////

/**
 * Returns date in format YYYYMMDD
 */
function formatDateForSQL (strDate) 
{
    var dateItems = strDate.split (/(\/|-|\.)/);
	var day = dateItems[0].length<2 ? '0' + dateItems[0] : dateItems[0];
	var month = dateItems[1].length<2 ? '0' + dateItems[1] : dateItems[1];
	var year = dateItems[2].length<4 ? (parseInt(dateItems[2],10)<70 ? parseInt(dateItems[2],10)+2000 : parseInt(dateItems[2],10)+1900) : parseInt(dateItems[2],10);
    return year + month + day;
}

function CompareDates(date1, date2)
{
	if (isDate(date1, true) && isDate(date2, true))
	{
		var dateItems = date1.split (/(\/|-|\.)/);
		var day = parseInt (dateItems[0],10);
		var month = parseInt(dateItems[1],10)-1;
		var year = dateItems[2].length<4 ? (parseInt(dateItems[2],10)<70 ? parseInt(dateItems[2],10)+2000 : parseInt(dateItems[2],10)+1900) : parseInt(dateItems[2],10);
		var dtTest1 = new Date (year, month, day,0,0,0,0);
		dateItems = date2.split (/(\/|-|\.)/);
		day = parseInt (dateItems[0],10);
		month = parseInt(dateItems[1],10)-1;
		year = dateItems[2].length<4 ? (parseInt(dateItems[2],10)<70 ? parseInt(dateItems[2],10)+2000 : parseInt(dateItems[2],10)+1900) : parseInt(dateItems[2],10);
		var dtTest2 = new Date (year, month, day,0,0,0,0);
		if (dtTest2 >= dtTest1)
		{
			return true;
		}
		else
		{
			return false ;
		}
		
	}
	else
	{
		return false ;
	} 
	         
}

function trim(str) 
{
    while (str.indexOf(" ") == 0) 
    {
        str = str.substring(1, str.length);
    }
    while (str.lastIndexOf(" ") == str.length-1 && str != '') 
    {
        str = str.substring(0, str.length-1);
    }
    return str;
}

function removeTabs(str)
{
	while (str.indexOf("	") == 0) 
	{
        str = str.substring(1, str.length);
    }
    while (str.lastIndexOf("	") == str.length-1 && str != '') 
    {
        str = str.substring(0, str.length-1);
    }
    return str;
} 

/**
 * 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){_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="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\"";_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1a=this.getParams();for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}var _1c=this.getVariablePairs().join("&");if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath);}_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\" style=\""+this.getAttribute("style")+"\">";_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _1d=this.getParams();for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}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.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};deconcept.util={getRequestParameter:function(_2b){var q=document.location.search||document.location.hash;if(_2b==null){return q;}if(q){var _2d=q.substring(1).split("&");for(var i=0;i<_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;

function LogOut()
{
	try
   {
    var httpReq=new HTTPRequest();                  
    httpReq.send( "AccountAct.LogOut.do" );                  
    window.open( "Default.aspx", '_self');              
   }
   catch(e)
   {                  
     showErrorDialog ( "common/errordlg.aspx" , e.description, e.description);
   }
} 


