/*-------------------------*/
// htc FrameWork 3.0 - 2006
//created by: Paulo Henrique
/*-------------------------*/
/*base*/
var isIE = (navigator.appName.indexOf('Explorer') != -1)?true:false;
if(window.ActiveXObject && !window.XMLHttpRequest){window.XMLHttpRequest = function(){var msxmls = new Array('Msxml2.XMLHTTP.5.0','Msxml2.XMLHTTP.4.0','Msxml2.XMLHTTP.3.0','Msxml2.XMLHTTP','Microsoft.XMLHTTP');for(var i = 0; i < msxmls.length; i++){try{return new ActiveXObject(msxmls[i]);}catch(e){}}return null;};}
if(window.opera && !window.XMLHttpRequest){window.XMLHttpRequest = function(){this.readyState = 0;this.status = 0;this.statusText = '';this._headers = [];this._aborted = false;this._async = true;this._defaultCharset = 'ISO-8859-1';this._getCharset = function(){var charset = _defaultCharset;var contentType = this.getResponseHeader('Content-type').toUpperCase();val = contentType.indexOf('CHARSET=');if(val != -1){charset = contentType.substring(val);}val = charset.indexOf(';');if(val != -1){charset = charset.substring(0, val);}val = charset.indexOf(',');if(val != -1){charset = charset.substring(0, val);}return charset;};this.abort = function(){this._aborted = true;};this.getAllResponseHeaders = function(){return this.getAllResponseHeader('*');};this.getAllResponseHeader = function(header){var ret = '';for (var i = 0; i < this._headers.length; i++){if(header == '*' || this._headers[i].h == header){ret += this._headers[i].h + ': ' + this._headers[i].v + '\n';}}return ret;};this.getResponseHeader = function(header){var ret = getAllResponseHeader(header);var i = ret.indexOf('\n');if (i != -1) {ret = ret.substring(0, i);}return ret;};this.setRequestHeader = function(header, value){this._headers[this._headers.length] = {h:header, v:value};};this.open = function(method, url, async, user, password){this.method = method;this.url = url;this._async = true;this._aborted = false;this._headers = [];if (arguments.length >= 3){this._async = async;}if(arguments.length > 3){opera.postError('XMLHttpRequest.open() - user/password not supported');}this.readyState = 1;if(this.onreadystatechange){this.onreadystatechange();}};this.send = function(data){if(!navigator.javaEnabled()){alert("XMLHttpRequest.send() - Java must be installed and enabled.");return;}if(this._async){setTimeout(this._sendasync, 0, this, data);}else{this._sendsync(data);}};this._sendasync = function(req, data){if(!req._aborted){req._sendsync(data);};};this._sendsync = function(data){this.readyState = 2;if (this.onreadystatechange){this.onreadystatechange();}var url = new java.net.URL(new java.net.URL(window.location.href), this.url);var conn = url.openConnection();for(var i = 0; i < this._headers.length; i++){conn.setRequestProperty(this._headers[i].h, this._headers[i].v);}this._headers = [];if(this.method == 'POST'){conn.setDoOutput(true);var wr = new java.io.OutputStreamWriter(conn.getOutputStream(), this._getCharset());wr.write(data);wr.flush();wr.close();}
var gotContentEncoding = false;var gotContentLength = false;var gotContentType = false;var gotDate = false;var gotExpiration = false;var gotLastModified = false;for (var i = 0; ; i++){var hdrName = conn.getHeaderFieldKey(i);var hdrValue = conn.getHeaderField(i);if(hdrName == null && hdrValue == null){break;}if(hdrName != null){this._headers[this._headers.length] = {h:hdrName, v:hdrValue};switch (hdrName.toLowerCase()){case 'content-encoding':gotContentEncoding=true; break;case 'content-length':gotContentLength=true; break;case 'content-type':gotContentType=true; break;case 'date':gotDate=true; break;case 'expires':gotExpiration=true; break;case 'last-modified':gotLastModified=true; break;}}}var val;val = conn.getContentEncoding();if(val != null && !gotContentEncoding) this._headers[this._headers.length] = {h:'Content-encoding', v:val};val = conn.getContentLength();if(val != -1 && !gotContentLength) this._headers[this._headers.length] = {h:'Content-length', v:val};val = conn.getContentType();if(val != null && !gotContentType) this._headers[this._headers.length] = {h:'Content-type', v:val};val = conn.getDate();if(val != 0 && !gotDate) this._headers[this._headers.length] = {h:'Date', v:(new Date(val)).toUTCString()};val = conn.getExpiration();if(val != 0 && !gotExpiration) this._headers[this._headers.length] = {h:'Expires', v:(new Date(val)).toUTCString()};val = conn.getLastModified();if(val != 0 && !gotLastModified) this._headers[this._headers.length] = {h:'Last-modified', v:(new Date(val)).toUTCString()};var reqdata = '';var stream = conn.getInputStream();if(stream){var reader = new java.io.BufferedReader(new java.io.InputStreamReader(stream, this._getCharset()));var line;while((line = reader.readLine()) != null){if(this.readyState == 2){this.readyState = 3;if(this.onreadystatechange){this.onreadystatechange();}}reqdata += line + '\n';}reader.close();this.status = 200;this.statusText = 'OK';this.responseText = reqdata;this.readyState = 4;if(this.onreadystatechange){this.onreadystatechange();}if(this.onload){this.onload();}}else{this.status = 404;this.statusText = 'Not Found';this.responseText = '';this.readyState = 4;if(this.onreadystatechange){this.onreadystatechange();}if(this.onerror){this.onerror();}}};};}
if(!window.ActiveXObject && window.XMLHttpRequest){window.ActiveXObject = function(type){switch (type.toLowerCase()){case 'microsoft.xmlhttp':case 'msxml2.xmlhttp':case 'msxml2.xmlhttp.3.0':case 'msxml2.xmlhttp.4.0':case 'msxml2.xmlhttp.5.0':return new XMLHttpRequest();}return null;};}
/*getElementById*/
function _gel(a){return document.getElementById?document.getElementById(a):null;}
/*getElementsByName*/
function _geln(a){return document.getElementsByName?document.getElementsByName(a):null;}
/*getElementByTagName*/
function _geltn(a){if(a == "*" && document.all){return document.all;}return document.getElementsByTagName?document.getElementsByTagName(a):[];}
/*_gmv(a):getMovieFlash;a:flashInstanceName*/
function _gmv(a) {return (isIE)?window[a]:document[a];}
/*_ce(a):createElement;a:elementName*/
function _ce(a){return document.createElement(a);}
/*_geo():getStyleObject;c:htcCSSObject*/
function _gso(c,p){var o = null;if(isIE){o = document.createStyleSheet();if(c){try{if(typeof(c) == 'object'){for(style in c){o.addRule( ((p)?p+style:style), c[style]);}}else{for(var i=0;i<c.length;i++){o.addRule(c[i].name, c[i].style);}}}catch(e){alert('GSO:erro de estrutura do array');}}}else{o = document.createElement('style');o.type='text/css';	o.innerHTML = '';try{if(typeof(c) == 'object'){for(style in c){o.innerHTML += ((p)?p+style:style) +'{'+ c[style] +'}';}}else{for(var i=0;i<c.length;i++){o.innerHTML += c[i].name +'{'+ c[i].style +'}';}}}catch(e){alert('GSO:erro de estrutura do array - '+ e);}_geltn('body')[0].appendChild(o);}return o;}//get Style object
/*_ass(n,s,[o]):add Style Sheet;n:className,s:classDefinition,[o]:Object*/
function _ass(n,s,o){if(!o){alert('NO');o = _geltn('STYLE');if(o.length == 0){if(isIE){o = document.createStyleSheet();}else{o = document.createElement('style');o.type='text/css';	o.innerHTML = '';_geltn('body')[0].appendChild(o);}}else{o = o[0];}}try{if(isIE){o.addRule('.Teste', 'width:200px;');}else{o.innerHTML += n +'{'+ s +'}';}}catch(e){alert('ASS error:'+ e.message +'\nname:'+ n);}}
/*innerHTML*/
function _inHTML(a,b,c){if(typeof a == 'string'){if(_gel(a) != null){if(c){_gel(a).innerHTML += b;}else{_gel(a).innerHTML = b;}}}else{if(a == null){alert(b);}if(c){a.innerHTML += b;}else{a.innerHTML = b;}}}
/*p(x,y):ponto*/
function _p(x,y) { this.x = x; this.y = y;}$cmop = new _p(0,0);
/*move layer to mouse position*/
function _mlmp(o,oh,ov){var ob = ((typeof(o) == 'string')?_gel(o):o);if(o != null){ob.style.left = $cmop.x + oh;ob.style.top  = $cmop.y + ov;}}
/*move to object position*/
function _mtop(o,d,x,y){var p = new _p(0,0);if(!document.layers){var onWindows = navigator.platform ? navigator.platform == "Win32" : false;var macIE45 = document.all && !onWindows && getExplorerVersion() == 4.5;var par = d;var lastOffset = 0;while(par){if( par.leftMargin && ! onWindows ) x += parseInt(par.leftMargin);if( (par.offsetLeft != lastOffset) && par.offsetLeft ) x += parseInt(par.offsetLeft);if( par.offsetLeft != 0 ) lastOffset = par.offsetLeft;par = macIE45 ? par.parentElement : par.offsetParent;}par = d;while(par){if( par.topMargin && !onWindows ) y += parseInt(par.topMargin);if( (par.offsetTop != lastOffset) && par.offsetTop ) y += parseInt(par.offsetTop);if( par.offsetTop != 0 ) lastOffset = par.offsetTop;par = macIE45 ? par.parentElement : par.offsetParent;}p.y = y;p.x = x;}if(o){o.style.left = p.x +'px';o.style.top  = p.y +'px';}return p;}
/*get mouse position*/
function _gml(e){if(_geltn('body').length > 0){if(!isIE){$cmop.x = e.pageX;$cmop.y = e.pageY;}else{$cmop.x = event.x + _geltn('body')[0].scrollLeft;$cmop.y = event.y + _geltn('body')[0].scrollTop;}return true;}else{return false;}}
/*AJAX;{url:string,config:{ctrl:['object'],type:['xml','json','*default'],postContent:['*default','xml'],method:['*post','get'],params:['object','string'],args:'any',onStateChange:'function'}};{req:['object','xml','string'],obj:'object',args:'any',err:{code:'number',men:'string'}*/
function _get(url, config){if(!config){config={desc:null}}var result = null, error={code:0,men:''}, xmlcontent = ((config.obj)?config.obj:new XMLHttpRequest());if(!config.type){config.type='default'} if(typeof config.ctrl != 'object'){config.ctrl = null}	if(!config.postContent){config.postContent='default'} if(!config.method){config.method='post'} if(!config.params){config.params=''}	if(typeof config.params == 'object'){config.params=hf.json.url(config.params)} if(xmlcontent){xmlcontent.onreadystatechange = ((typeof config.onStateChange == 'function')?config.onStateChange({req:result,ctrl:config.ctrl,obj:xmlcontent,args:((config.args)?config.args:null),err:error}):function(){if(xmlcontent.readyState == 3){if(typeof config.onLoading == 'function'){config.onLoading({req:xmlcontent.responseText,ctrl:config.ctrl,obj:xmlcontent,args:((config.args)?config.args:null),err:error});}}else if(xmlcontent.readyState == 4){if(xmlcontent.status == 200 || xmlcontent.status == 304){switch(config.type){case 'xml':try{result = xmlcontent.responseXML;}catch(e){error.code=1;error.men=e;}break;case 'json':try{result = eval(unescape(xmlcontent.responseText));}catch(e){error.code=2;error.men=e;}break;default:result = unescape(xmlcontent.responseText);break;}if(typeof config.onLoad == 'function'){config.onLoad({req:result,ctrl:config.ctrl,obj:xmlcontent,args:((config.args)?config.args:null),err:error});}}}else if(xmlcontent.readyState == 4 && (xmlcontent.status == 500 || xmlcontent.status == 404)){if(config.onError){config.onError({req:result,ctrl:config.ctrl,obj:xmlcontent,args:((config.args)?config.args:null),err:error})}}});if(config.method == 'get'){xmlcontent.open('GET', url+((config.params!='')?'?'+config.params:''), true);xmlcontent.setRequestHeader('Content-Type','application/x-www-form-urlencoded; charset=UTF-8; ajaxGetRequest;');xmlcontent.send(null);}else{xmlcontent.open('POST', url, true);xmlcontent.setRequestHeader('Content-Type',((config.postContent == 'xml')?'text/xml':'application/x-www-form-urlencoded; charset=UTF-8; ajaxPostRequest;'));xmlcontent.send(config.params);}}else{if(config.onError){config.onError({req:result,ctrl:config.ctrl,obj:xmlcontent,args:((config.args)?config.args:null),err:error})}} return {req:result,ctrl:config.ctrl,obj:xmlcontent,args:((config.args)?config.args:null)};}
/*panel(a,b,c,d,e,f,g,h,i,j,k,l):cria um panel flutuante;a:Tipo[frame,conteudo],b:titulo,c:opções[close,size,opction],d:conteudo ou url,e:largura,f:altura,g:verb[{url:'',click:'',title:'',label:''}],h:position[center,top,default],i:top margin,j:left margin,k:dragable,l:name*/
function _panel(a,b,c,d,e,f,g,h,i,j,k,l){return win_control.initWin(a,b,c,d,e,f,g,h,i,j,k,l);}
/*coockies*/
function _rCK(name){var cookieValue='', search=name+"=";if(document.cookie.length > 0){offset = document.cookie.indexOf(search);if(offset!=-1){offset+=search.length;end=document.cookie.indexOf(";", offset);if (end == -1){end = document.cookie.length;}cookieValue = unescape(document.cookie.substring(offset, end))}}return cookieValue;}
function _wCK(name, value, hours){var expire='';if(hours!=null){expire = new Date((new Date()).getTime() + hours * 3600000);expire = "; expires=" + expire.toGMTString();}document.cookie = name + "=" + escape(value) + expire;}
/*auto skip*/
function _autoSkip(from,to,size){return _addEvent(from,'onkeyup',"(this.value.length >= "+ size +")?_gel('"+ to +"').focus():true;");}
/*add event*/
function _addEvent(o,e,s){
	if(typeof o == 'string'){o = _gel(o)}
	var x = (o[e]) ? o[e].toString() : "";
	x = x.substring(x.indexOf("{")+1, x.lastIndexOf("}"));
	x = (x + s) + "\n";
	return o[e] = (!!window.Event) ? new Function(e, x) : new Function(x);	
}
/*get page properties*/
function _gpp(){var xScroll, yScroll;if(window.innerHeight && window.scrollMaxY){xScroll = window.innerWidth + window.scrollMaxX;yScroll = window.innerHeight + window.scrollMaxY;}else if(_geltn('body')[0].scrollHeight > _geltn('body')[0].offsetHeight){xScroll = _geltn('body')[0].scrollWidth;yScroll = _geltn('body')[0].scrollHeight;}else{xScroll = _geltn('body')[0].offsetWidth;yScroll = _geltn('body')[0].offsetHeight;}var windowWidth, windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth = document.documentElement.clientWidth; }else{windowWidth = self.innerWidth;}windowHeight = self.innerHeight;}else if(document.documentElement && document.documentElement.clientHeight){windowWidth = document.documentElement.clientWidth;windowHeight = document.documentElement.clientHeight;}else if(document.body){windowWidth = _geltn('body')[0].clientWidth;windowHeight = _geltn('body')[0].clientHeight;}if(yScroll < windowHeight){pageHeight = windowHeight;}else{pageHeight = yScroll;}if(xScroll < windowWidth){pageWidth = xScroll;}else{pageWidth = windowWidth;}return [pageWidth,pageHeight];}


/*htc Format*/
var hf = {
	numeric:{
		check:function(a,c){
			if(isNaN(a)){return a}
			if(typeof(c) != 'object'){return a}
			if(c.decimalPlaces){a = parseFloat(a).toFixed(c.decimalPlaces)}
			if(c.useThousandSeparator){
				var n=-1, t='', ti=parseInt(a).toString();
				var d='.', s = ((c.thousandSeparator)?c.thousandSeparator:',');
				for(var i=ti.length;i>=0;i--){
					t = (((n%3) == 0 && n>0)?s:'') + t;
					t = ti.substring(i,i+1) + t;
					n++;
				}
				if(c.decimalSeparator){
					a = a.replace('.',c.decimalSeparator);
					d = c.decimalSeparator;
				}
				a = ((a.indexOf(d)==-1)?t:t+a.substring(a.indexOf(d),a.length));
			}
			if(c.decimalSeparator && !c.useThousandSeparator){a = a.replace('.',c.decimalSeparator)}
			if(c.currencyChar){a = c.currencyChar +''+ a}
			if(c.charAfter){a += ''+ c.charAfter}
			if(c.charBefore){a = c.charBefore +''+ a}
			
			return a;
		},
		checkAndReplace:function(a,b){
			var parts = a.split(','), flag = true, num = '';
			for(var i=0;i<parts.length;i++){
				flag = (isNaN(parts[i]))?false:(flag)?true:false;
			}
			if(!flag){return (b == undefined)?false:b}
			return (parts.length <= 2)?(a.length > 0)?a:b:(parts.length > 2)?(b == undefined)?false:b:parseFloat(parts[0]+'.'+parts[1]);
		}
	},
	text:function(a,c,i,f,rui,ruf){
		if(!i){i='['}
		if(!f){f=']'}
		if(!rui){rui='#'}
		if(!ruf){ruf='#'}

		var rem = a, campo = '';
		while((rem.indexOf(i) != -1) && (rem.indexOf(f) != -1)){
			campo = rem.substring(rem.indexOf(i)+1,rem.indexOf(f))
			if(c[campo] != undefined){
				rem = rem.replace(i+ campo +f,c[campo]);
			}else{
				rem = rem.replace(i+ campo +f,rui+campo+ruf);
			}
		}
		return rem;
	},
	date:function(a,c){ //
		return a;
	},
	string:{
		size:function(a,t,c,before){
			while(a.length < t){
				if(before){
					a += ''+ c;
				}else{
					a = c +''+ a;
				}
			}
			return a;
		},
		trim:function(s){
			var ts = '', p = false, u = 0, c = '';
			for (i = 0; i < s.length; i++){
				c = s.charAt(i);
				if(c == ' '){
					if(p){ts = ts + c}
				}else{
					ts = ts + c;u = i;p = true;
				}
			}	
			if(c == ' '){
				ts = ts.substring(0,(u-1));
			}
			return ts;
		},
		onlyNumbers:function(str){
			var txt = '';
			for(var i = 0;i < str.length;i++){
				var c = str.charAt(i);
				if( (c >= '0') && (c <= '9') ){
					txt = txt + '' + c;
				}
			}
			return txt;
		}		
	},
	json:{
		url:function(a){
			var ret = '', comma = '';
			if(typeof a == 'object'){
				for(b in a){
					ret += comma + b +'='+ escape(a[b]);
					comma = '&';
				}
			}
			return ret;
		},
		string:function(a,c){
			var ret = '', comma = '';
			if(typeof a == 'object'){
				for(b in a){
					ret += comma + ((c != undefined)?c:'') + b + ((typeof a[b] == 'object')?'={\n\t'+hf.json.string(a[b],((c != undefined)?c:'')+'\t')+ ((c != undefined)?c:'')+'\n}':'='+a[b]);
					comma = '\n';
				}
			}
			return ret;
		},
		toString:function(a){
			var ret = '{', comma = '', c, scomma = '';
			if(typeof a == 'object'){
				for(b in a){
					if(typeof a[b] == 'object'){
						if(a[b].length != undefined){
							ret += comma + b +':[';
								c = a[b];
								scomma = '';
								for(var i=0;i<c.length;i++){
									ret += scomma + hf.json.toString(c[i]);
									scomma = ',';
								}
							ret += ']';
						}else{
							ret += comma + b +':'+ hf.json.toString(a[b]);
						}
					}else if(typeof a[b] == 'function'){
						var f = a[b].toString();
						while(f.indexOf('\r\n') >= 0){
							f = f.replace('\r\n','');
						}
						while(f.indexOf('\n') >= 0){
							f = f.replace('\n','');
						}
						while(f.indexOf('\t') >= 0){
							f = f.replace('\t','');
						}
						ret += comma + b +':'+ f;
					}else{
						if(isNaN(a[b])){
							ret += comma + b +':\''+ escape(a[b].toString()) +'\'';
						}else{
							ret += comma + b +':'+ escape(a[b].toString()) +'';
						}
					}
					comma = ',';
				}
			}
			return ret + '}';
		}
	}
}
//validador
//==============================================================================================================
var $vc = {
	vtype:{none:0,email:1,notnull:2,numeric:3,decimal:4,date:5,hora:6,range:7,cpf:8,cnpj:9,datefract:11,creditcard:12},
	ftype:{unknow:0,input:1,combo:2,combomulti:3,textarea:4,radio:5,checkbox:6,file:7,button:8},
	form:[],
	create:function(config){
		var fv = config;
		fv.ix = this.form.length;
		fv.itens = [];
		fv.autoType = true;
		fv.men = '';
		fv.params = '';
		fv.add = this._add;
		fv.valid = this._valid;
		fv.checkMe = this._check;
		fv.search = this._find;
		fv.getParams = this._getForm;
		fv.hl = this._highlightLabel;
		fv.hf = this._highlightField;
		fv.css = {
			field:{
				normal:'form-field',
				error:'form-field-error'
			},
			label:{
				normal:'form-label',
				error:'form-label-error'
			},
			hint:'form-hint'
		};
		fv.labelHighlight = (config.labelHighlight != undefined) ? config.labelHighlight : false;
		fv.fieldHighlight = (config.fieldHighlight != undefined) ? config.fieldHighlight : false;
		fv.setAttrOnError = (config.setAttrOnError != undefined) ? config.setAttrOnError : false;
		fv.comboNullValue = 0;
		
		fv.hint = _ce('DIV');
		fv.hint.className = config.hintClass;
		fv.hint.id = 'fvHint'+this.form.length;
		_geltn('BODY')[0].appendChild(fv.hint);
		
		this.form.push(fv);
		return fv;
	},
	_add:function(c){
		if(c.type >= 0 && c.type <= 10){
			if(typeof c.field == 'string'){c.field = _geln(c.field)[0]}
			switch(c.field.tagName.toLowerCase()){
				case 'input':
					switch(c.field.type.toLowerCase()){
						case 'text':
						case 'password':
						case 'file':
						case 'hidden':
							c.ftype = $vc.ftype.input;
							break;
						case 'radio':
							c.ftype = $vc.ftype.radio;
							if(this.autoType){
								c.type  = $vc.vtype.notnull;
							}
							break;
						case 'checkbox':
							c.ftype = $vc.ftype.checkbox;
							if(this.autoType){
								c.type = $vc.vtype.range;
							}
							break;
						case 'button':
						case 'submit':
						case 'reset':
						case 'image':
							c.ftype = $vc.ftype.button;
							break;
						default:
							c.ftype = $vc.ftype.unknow;
							break;
					}
					break;
				case 'textarea':
					c.ftype = $vc.ftype.textarea;
					break;
				case 'select':
					if(c.field.multiple){
						c.ftype = $vc.ftype.combomulti;
						if(this.autoType){
							c.type  = $vc.vtype.range;
						}
					}else{
						c.ftype = $vc.ftype.combo;
						if(this.autoType){
							c.type  = $vc.vtype.notnull;
						}
					}
					break;
				default:
					c.ftype = $vc.ftype.unknow;
					break;
			}
			
			if(c.ftype != $vc.ftype.unknow){
				c.ctrl = this;
				if(c.hint != undefined){
					c.field.title = c.hint;
					_addEvent(c.field,'onfocus',"$vc.ctrlHint(this,"+ this.ix +",'block');");
					_addEvent(c.field,'onblur',"$vc.ctrlHint(this,"+ this.ix +",'none');");
				}
				if(c.checkOnBlur){
					_addEvent(c.field,'onblur',"$vc.checkThis("+ this.ix +","+ this.itens.length +");");
				}
			}
			if(!this.search(c.field,true)){
				this.itens.push(c);
			}
		}else{
			this.itens.push(c);
		}
	},
	_find:function(f,a){
		for(var i=0;i<this.itens.length;i++){
			if(this.itens[i].type >= 0 && this.itens[i].type <= 10){
				if(this.itens[i].field.name == f.name && f.name.length > 0){
					return (a) ? this.itens[i] : true ;
				}
			}
		}
		return (a) ? null : false ;
	},
	_valid:function(){
		var ok = true;
		this.men = '';
		this.params = 'postID='+ escape(this.id);
		
		for(var i=0;i<this.itens.length;i++){
			ok = this.checkMe(i,ok);
		}
		return ok;
	},
	_check:function(ix,ok){
		
		var f = this.itens[ix], conc = '&';
		ignore = false;
		if(typeof f.onValidating == 'function'){
			ignore = !f.onValidating(f);
		}
		if(!ignore){
			switch(f.type){
				case $vc.vtype.email:
					if(fvc.isEMail(f.field.value) || (f.onlyIsNotNull && hf.string.trim(f.field.value).length == 0)){
						if(this.labelHighlight){((f.label)?this.hl(f.label,true,true):this.hl(f.field,true,false))}
						if(this.fieldHighlight){this.hf(f.field,true)}
						ok = ((ok)?true:false);
					}else{
						if(this.labelHighlight){((f.label)?this.hl(f.label,false,true):this.hl(f.field,false,false))}
						if(this.fieldHighlight){this.hf(f.field,false)}
						ok = false;
					}
					this.params += conc + ((f.pname)?f.pname:f.field.id) +'='+ escape(f.field.value);
					break;
				case $vc.vtype.notnull:
					var flag = false;
					switch(f.ftype){
						case $vc.ftype.radio:
						case $vc.ftype.checkbox:
							var fld = _geln(f.field.name);
							for(var j=0;j<fld.length;j++){
								if(fld[j].checked){
									flag=true;
									this.params += conc + ((f.pname)?f.pname:f.field.name) +'='+ escape(fld[j].value);
								}
							}
							break;
						case $vc.ftype.combo:
							valor = ((isNaN(f.field.value))?f.field.value:parseInt(f.field.value));
							flag = ((valor != this.comboNullValue)?true:false);
							this.params += conc + ((f.pname)?f.pname:f.field.id) +'='+ escape(f.field.value);
							break;
						default:
							flag = ((hf.string.trim(f.field.value).length > 0)?true:false);
							flag = ((f.maxSize)?(hf.string.trim(f.field.value).length <= f.maxSize):flag);
							flag = ((f.minSize)?(hf.string.trim(f.field.value).length >= f.minSize):flag);
							this.params += conc + ((f.pname)?f.pname:f.field.id) +'='+ escape(f.field.value);								
							break;
					}

					if(this.labelHighlight){((f.label)?this.hl(f.label,flag,true):this.hl(f.field,flag,false))}
					if(this.fieldHighlight && f.ftype != $vc.ftype.radio){this.hf(f.field,flag)}
					if(this.fieldHighlight && f.ftype == $vc.ftype.radio && f.highlightWhenIsRadio){this.hf(f.field,flag)}
					ok = ((ok && flag)?true:false);
					break;
				case $vc.vtype.numeric:
				case $vc.vtype.decimal:
					if( ( !isNaN(hf.string.trim(f.field.value)) && hf.string.trim(f.field.value).length > 0 ) || (f.onlyIsNotNull && hf.string.trim(f.field.value).length == 0) ){
						if(this.labelHighlight){((f.label)?this.hl(f.label,true,true):this.hl(f.field,true,false))}
						if(this.fieldHighlight){this.hf(f.field,true)}
						ok = ((ok)?true:false);
					}else{
						if(this.labelHighlight){((f.label)?this.hl(f.label,false,true):this.hl(f.field,false,false))}
						if(this.fieldHighlight){this.hf(f.field,false)}
						ok = false;
					}
					this.params += conc + ((f.pname)?f.pname:f.field.id) +'='+ escape(f.field.value);
					break;
				case $vc.vtype.date:
					if(fvc.isDate(f.field.value) || (f.onlyIsNotNull && hf.string.trim(f.field.value).length == 0)){
						if(this.labelHighlight){((f.label)?this.hl(f.label,true,true):this.hl(f.field,true,false))}
						if(this.fieldHighlight){this.hf(f.field,true)}
						ok = ((ok)?true:false);
					}else{
						if(this.labelHighlight){((f.label)?this.hl(f.label,false,true):this.hl(f.field,false,false))}
						if(this.fieldHighlight){this.hf(f.field,false)}
						ok = false;
					}
					this.params += conc + ((f.pname)?f.pname:f.field.id) +'='+ escape(f.field.value);
					break;
				case $vc.vtype.range:
					//TODO
					break;
				case $vc.vtype.cpf:
					if(fvc.isCPF(f.field.value) || (f.onlyIsNotNull && hf.string.trim(f.field.value).length == 0)){
						if(this.labelHighlight){((f.label)?this.hl(f.label,true,true):this.hl(f.field,true,false))}
						if(this.fieldHighlight){this.hf(f.field,true)}
						ok = ((ok)?true:false);
					}else{
						if(this.labelHighlight){((f.label)?this.hl(f.label,false,true):this.hl(f.field,false,false))}
						if(this.fieldHighlight){this.hf(f.field,false)}
						ok = false;
					}
					this.params += conc + ((f.pname)?f.pname:f.field.id) +'='+ escape(f.field.value);
					break;
				case $vc.vtype.cnpj:
					if(fvc.isCNPJ(f.field.value) || (f.onlyIsNotNull && hf.string.trim(f.field.value).length == 0)){
						if(this.labelHighlight){((f.label)?this.hl(f.label,true,true):this.hl(f.field,true,false))}
						if(this.fieldHighlight){this.hf(f.field,true)}						
						ok = ((ok)?true:false);
					}else{
						if(this.labelHighlight){((f.label)?this.hl(f.label,false,true):this.hl(f.field,false,false))}
						if(this.fieldHighlight){this.hf(f.field,false)}
						ok = false;
					}
					this.params += conc + ((f.pname)?f.pname:f.field.id) +'='+ escape(f.field.value);
					break;
				case $vc.vtype.datefract:
					var data = '', datac = '';
					if(f.day != undefined && f.month != undefined && f.year != undefined && f.hour != undefined && f.minute != undefined){
						datac = hf.string.trim(f.day.value) +''+ hf.string.trim(f.month.value) +''+ hf.string.trim(f.year.value) +''+ hf.string.trim(f.hour.value) +''+ hf.string.trim(f.minute.value);
						data = hf.string.size(f.day.value,2,'0',true) +'/'+ hf.string.size(f.month.value,2,'0',true) +'/'+ hf.string.size(f.year.value,4,'0',true)+' '+((f.hour.value.length==0 || isNaN(f.hour.value))?'24':hf.string.size(f.hour.value,2,'0',true)) +':'+ ((f.minute.value.length==0 || isNaN(f.minute.value))?'60':hf.string.size(f.minute.value,2,'0',true));
					}else if(f.day != undefined && f.month != undefined && f.year != undefined){
						datac = hf.string.trim(f.day.value) +''+ hf.string.trim(f.month.value) +''+ hf.string.trim(f.year.value);
						data = hf.string.size(f.day.value,2,'0',true) +'/'+ hf.string.size(f.month.value,2,'0',true) +'/'+ hf.string.size(f.year.value,4,'0',true)+' 00:00';
					}else if(f.hour != undefined && f.minute != undefined){
						datac = hf.string.trim(f.hour.value) +''+ hf.string.trim(f.minute.value);
						data = '01/01/2009 '+((f.hour.value.length==0 || isNaN(f.hour.value))?'24':hf.string.size(f.hour.value,2,'0',true)) +':'+ ((f.minute.value.length==0 || isNaN(f.minute.value))?'60':hf.string.size(f.minute.value,2,'0',true));
					}
					if(fvc.isDate(data) || (f.onlyIsNotNull && datac.length == 0)){
						if(this.labelHighlight){this.hl(f.label,true,true)}
						ok = ((ok)?true:false);
					}else{
						if(this.labelHighlight){this.hl(f.label,false,true)}
						ok = false;
					}
					this.params += conc + ((f.pname)?f.pname:'data') +'='+ escape(data);
					break;
				case $vc.vtype.creditcard:
					this.params += '&cc_tipo='+f.tipo;
					this.params += '&cc_nome='+escape(f.nome);
					this.params += '&cc_numero='+f.numero;
					if(f.cod_ilegivel){
						this.params += '&cc_codigo=ILEGIVEL';
						f.cod = null;
					}else{
						this.params += '&cc_codigo='+f.cod;
					}
					this.params += '&cc_val_mes='+f.mes;
					this.params += '&cc_val_ano='+f.ano;
					this.ccMen = fvc.isCC(f.tipo,f.nome,f.numero,f.cod,f.ano,f.mes);
					ok = ((this.ccMen == 'ok')?true:false);
					break;
				case $vc.vtype.none:
					switch(f.ftype){
						case $vc.ftype.radio:
						case $vc.ftype.checkbox:
							var fld = _geln(f.field.name);
							for(var j=0;j<fld.length;j++){
								if(fld[j].checked){
									this.params += conc + ((f.pname)?f.pname:f.field.name) +'='+ escape(fld[j].value);
								}
							}
							break;
						case $vc.ftype.combomulti:
							for(var j=0;j<f.field.options.length;j++){
								if(f.field.options[j].selected){
									this.params += conc + ((f.pname)?f.pname:f.field.id) +'='+ escape(f.field.options[j].value);
								}
							}
							break;
						default:
							this.params += conc + ((f.pname)?f.pname:f.field.id) +'='+ escape(f.field.value);
					}
					break;
			}
		}else{
			if(this.labelHighlight){((f.label)?this.hl(f.label,true,true):this.hl(f.field,true,false))}
			if(this.fieldHighlight){this.hf(f.field,true)}						
			ok = ((ok)?true:false);
			if(f.ftype == $vc.ftype.input || f.ftype == $vc.ftype.combo || f.ftype == $vc.ftype.textarea || f.ftype == $vc.ftype.file || f.ftype == $vc.ftype.button){
				this.params += conc + ((f.pname)?f.pname:f.field.id) +'='+ escape(f.field.value);
			}else if(f.ftype == $vc.ftype.radio || f.ftype == $vc.ftype.checkbox){
				var fld = _geln(f.field.id);
				for(var j=0;j<fld.length;j++){
					if(fld[j].checked){
						flag=true;
						this.params += conc + ((f.pname)?f.pname:f.field.id) +'='+ escape(fld[j].value);
					}
				}
			}
		}
		return ok;
	},
	_highlightField:function(o,b){
		if(o != undefined){
			if(this.setAttrOnError){
				//check AF for Radio and Checkbox
				if(o.type == 'radio' || o.type == 'checkbox'){
					o = o.parentNode.parentNode.parentNode;
				}
				$(o).attr('error',(b)?'false':'true');
			}else{
				o.className = ((b)?this.css.field.normal:this.css.field.error);
			}
		}
	},
	_highlightLabel:function(o,b,l){
		if(l){
			if(this.setAttrOnError){
				$(o).attr('error',(b)?'false':'true');
			}else{
				o.className = (b)?this.css.label.normal:this.css.label.error;
			}
		}else{
			var id, node = o.parentNode;
			for(var c=0;c<3;c++){
				if(node.tagName == 'TD'){
					node = node.parentNode.childNodes[((isIE)?0:1)];
					c = 3;
				}else{
					node = node.parentNode;
				}
			}
			if(node.tagName == 'TD'){
				if(this.setAttrOnError){
					$(node).attr('error',(b)?'false':'true');
				}else{
					node.className = (b)?this.css.label.normal:this.css.labe.error;
				}
			}
		}
	},
	isDate:function(s){
		s = hf.string.trim(s);
		var re = /(((^([0][1-9]|[12][0-9])(\/|-)02(\/|-)([1-3][0-9])([13579][26]|[02468][048]))|(^([0][1-9]|[12][0-8])(\/|-)02(\/|-)([1-3][0-9])([02468][12356]|[13579][13579]))|((^([012][0-9]|30)(\/|-)(0[469]|11))|(^([0][1-9]|[12][0-9]|3[01])(\/|-)(0[13578]|1[02]))(\/|-)([1-3][0-9][0-9][0-9])))((\b)(([0-1][0-9])|(2[0-3])):[0-5]([0-9])$))|((^([0][1-9]|[12][0-9])(\/|-)02(\/|-)([1-3][0-9])([13579][26]|[02468][048]))|(^([0][1-9]|[12][0-8])(\/|-)02(\/|-)([1-3][0-9])([02468][12356]|[13579][13579]))|((^([012][0-9]|30)(\/|-)(0[469]|11))|(^([0][1-9]|[12][0-9]|3[01])(\/|-)(0[13578]|1[02]))(\/|-)([1-3][0-9][0-9][0-9])))|((([0-1][0-9])|(2[0-3])):[0-5]([0-9])$)/;
		return re.test(s);
	},
	isEMail:function(s){
		s = hf.string.trim(s);
		if(s.length > 0){
			var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
			return filter.test(s);
		}else{
			return false;
		}
	},
	isCPF:function(s){
		var i, txt = hf.string.onlyNumbers(s);
		var c = txt.substr(0,9), dv = txt.substr(9,2);
		var d1 = 0;
		for (i = 0; i < 9; i++){
			d1 += c.charAt(i)*(10-i);
		}
		if (d1 == 0) return false;
		d1 = 11 - (d1 % 11);
		if (d1 > 9) d1 = 0;
		if (dv.charAt(0) != d1){
			return false;
		}
		d1 *= 2;
		for (i = 0; i < 9; i++){
			d1 += c.charAt(i)*(11-i);
		}
		d1 = 11 - (d1 % 11);
		if (d1 > 9) d1 = 0;
		if (dv.charAt(1) != d1){
			return false;
		}
		return true;
	},
	isCNPJ:function(s){
		var i, txt = hf.string.onlyNumbers(s);
		if (txt.length > 14) {
			if (txt.substr(0,1) == 0){
				var c = txt.substr(1,12);
				var dv = txt.substr(13,2);
			}
			else{
				var c = txt.substr(0,12);
				var dv = txt.substr(12,2);
			}
		}
		else{
			var c = txt.substr(0,12);
			var dv = txt.substr(12,2);
		}
		var d1 = 0;
		if (txt.length < 14) {
			return false;
		}
		for (i = 0; i < 12; i++){
			d1 += c.charAt(11-i)*(2+(i % 8));
		}
		if (d1 == 0) return false;
		d1 = 11 - (d1 % 11);
		if (d1 > 9) d1 = 0;
		if (dv.charAt(0) != d1){
			return false;
		}
		d1 *= 2;
		for (i = 0; i < 12; i++){
			d1 += c.charAt(11-i)*(2+((i+1) % 8));
		}
		d1 = 11 - (d1 % 11);
		if (d1 > 9) d1 = 0;
		if (dv.charAt(1) != d1){
			return false;
		}
		return true;
	},
	isCC:function(tipo,nome,numero,cod,ano,mes){
		var allnumber = '',card1,card2,card3,card4,hoje = new Date(),anofull = 0;
		card1 = numero.substring(0,4);
		card2 = numero.substring(4,8);
		card3 = numero.substring(8,12);
		card4 = numero.substring(12,numero.length);			
		allnumber = card1 + '' +  card2 + '' +  card3 + '' +  card4;
		if(ano.substring(0,1) == '0'){ano = ano.substring(1,2)}
		if(mes.substring(0,1) == '0'){mes = mes.substring(1,2)}
		anofull = 2000 + parseInt(ano);
		if(hf.string.trim(nome).length == 0){return 'nome não preenchido';}
		if(isNaN(numero) || numero.length == 0){return 'numero não preenchido';}
		if(isNaN(hf.string.trim(ano)) || isNaN(hf.string.trim(mes)) || hf.string.trim(ano) == 0 || hf.string.trim(mes) == 0 ){return 'validade não preenchida';}
		if(cod != null){ if( !( (hf.string.trim(cod).length == 3 && tipo == 1|2|4) || (hf.string.trim(cod).length == 4 && tipo == 3) ) ){return 'código de segurança (inválido)';} }
		if(anofull < hoje.getFullYear()){
			return 'cartão expirado';
		}else if(parseInt(mes) < (hoje.getMonth()+1) && anofull <= hoje.getFullYear()){
			return 'cartão expirado';
		}
		

		if(tipo >= 1 && tipo <= 4){

			if(!fvc.isMod10(allnumber)){return 'numero inválido'};
			
			switch(tipo){
				case 1:/*Visa*/if(allnumber.length >= 13 && allnumber.length <= 16){ini = parseInt(card1)/1000;if( !(parseInt(ini) == 4) ){return 'numero inválido'};}else{return 'numero inválido';}break;
				case 2:/*Master*/if(allnumber.length == 16){ini = parseInt(card1)/100;if( !(parseInt(ini) >= 51 && parseInt(ini) <= 55) ){return 'numero inválido'};}else{return 'numero inválido';}break;
				case 3:/*Amex*/if(allnumber.length == 15){ini = parseInt(card1)/100;if( !(parseInt(ini) == 34 || parseInt(ini) == 37) ){return 'numero inválido'};}else{return 'numero inválido';}break;
				case 4:/*Diners*/if(allnumber.length == 14){ini = parseInt(card1)/10;ini2 = parseInt(card1)/100;	if( !( (parseInt(ini) >= 300 && parseInt(ini) <= 308) || parseInt(ini2) == 38 || parseInt(ini2) == 36 ) ){return 'numero inválido'};}else{return 'numero inválido';}break;
			}
		}
		return 'ok';
	},
	isMod10:function(valor){
		var ar = new Array( valor.length );
		var i = 0,sum = 0;
		
		for(i=0;i<valor.length;++i){
			ar[i] = parseInt(valor.charAt(i));
		}
		for(i=ar.length-2;i>=0;i-=2){
			ar[i] *= 2;
			if(ar[i] > 9) ar[i]-=9;
		}
		for(i=0;i<ar.length;++i){
			sum += ar[i];
		}
		return (((sum%10)==0)?true:false);
	},
	_getForm:function(a){
		if(a){
			this.valid();
		}
		return this.params;
	},
	ctrlHint:function(o,i,a){
		_inHTML(fvc.form[i].hint,((a=='none')?'&nbsp;':o.title));
		_mtop(fvc.form[i].hint,o,0,o.offsetHeight);
		$vc.form[i].hint.style.display = a;
	},
	checkThis:function(ixo,ix){
		return $vc.form[ixo].checkMe(ix,true);
	}
};
/*---- LEGADO ---*/
var fvct = $vc.vtype;
var fvcft = $vc.ftype;
var fvc = $vc;

/*===========================================*/
document.onmousemove = _gml;

/* 	SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
* 	SWFObject is (c) 2006 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.push(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")+"\"";_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")+"\">";_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{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(_27){this.major=_27[0]!=null?parseInt(_27[0]):0;this.minor=_27[1]!=null?parseInt(_27[1]):0;this.rev=_27[2]!=null?parseInt(_27[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(_29){var q=document.location.search||document.location.hash;if(q){var _2b=q.substring(1).split("&");for(var i=0;i<_2b.length;i++){if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){return _2b[i].substring((_2b[i].indexOf("=")+1));}}}return "";}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var _2d=document.getElementsByTagName("OBJECT");for(var i=_2d.length;i>0;i--){_2d[i].style.display="none";for(var x in _2d[i]){if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};if(deconcept.SWFObject.doPrepUnload){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload);}if(Array.prototype.push==null){Array.prototype.push=function(_30){this[this.length]=_30;return this.length;};}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;

function noCacheIE(url){
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	if(!isIE)return(url);
	var newUrl = '?';
	if(url.indexOf('?') != -1)newUrl = '&';
	var now = new Date();
	var rand = Math.random().toString().substring(2,4);
	newUrl = url+newUrl+"?r="+ rand +'-'+ now.getTime().toString();
	return(newUrl);
}
