function showPersonalInfo(){
	if(document.getElementById('vuser_changepass'))
		return document.getElementById('vuser_changepass').checked
	else
		return null
}

var formLO=null;
	
	function loginform(oresform,oresponseEl)
	{
		formLO = new Zapatec.Form({
			form: oresform,
			showErrors: 'afterField',
			showErrorsOnSubmit: true,
			submitValidFunc:formvalidfunc,
			submitErrorFunc: testErrOutput,
			asyncSubmitFunc: myOnSuccess,
			ajaxDebugElement: oresponseEl,
			ajaxDebugFunc: myDebug//,

			//busyContainer: oresponseEl
		});
		
		
	}
	
	function loginform1(oresform,oresponseEl)
	{
		
		formLO = new Zapatec.Form({
			form: oresform,
			showErrors: 'afterField',
			showErrorsOnSubmit: true,
			submitValidFunc:formvalidfunc,
			submitErrorFunc: testErrOutput,
			asyncSubmitFunc: myOnSuccess,
			ajaxDebugElement: oresponseEl,
			ajaxDebugFunc: myDebugnohis//,

			//busyContainer: oresponseEl
		});
		
		
	}
	
	function loginform2(oresform,oresponseEl,otheme)
	{
		formLO = new Zapatec.Form({
			form: oresform,
			showErrors: 'afterField',
			showErrorsOnSubmit: true,
			submitValidFunc:formvalidfunc,
			submitErrorFunc: testErrOutput,
			asyncSubmitFunc: myOnSuccess,
			ajaxDebugElement: oresponseEl,
			ajaxDebugFunc: myDebug,
			theme: otheme//,
			//busyContainer: oresponseEl
		});
		
		
	}
	
	function loginform3(oresform,oresponseEl,otheme)
	{
		formLO = new Zapatec.Form({
			form: oresform,
			showErrors: 'afterField',
			showErrorsOnSubmit: true,
			submitValidFunc:formvalidfunc,
			submitErrorFunc: testErrOutput,
			asyncSubmitFunc: myOnSuccess,
			ajaxDebugElement: oresponseEl,
			ajaxDebugFunc: myDebugnohis,
			theme: otheme//,
			//busyContainer: oresponseEl
		});
		
		
	}
	
	
	
	
	
	function loginform5(oresform,oresponseEl,otheme)
	{
		formLO = Zapatec.Form.setupAll({
			form: oresform,
			showErrors: 'afterField',
			showErrorsOnSubmit: true,
			submitValidFunc:formvalidfunc,
			submitErrorFunc: testErrOutput,
			asyncSubmitFunc: myOnSuccessFile,
			ajaxDebugElement: oresponseEl,
			ajaxDebugFunc: myDebug,
			serverCallback: "callback"//,			
			//busyContainer: oresponseEl
		});
	}
	function loginform6(oresform,oresponseEl,otheme)
	{
		
		formLO = new Zapatec.Form({
			form: oresform,
			showErrors: 'afterField',
			showErrorsOnSubmit: true,
			submitValidFunc:formvalidfunc,
			submitErrorFunc: testErrOutput,
			asyncSubmitFunc: myOnSuccessFile,
			ajaxDebugElement: oresponseEl,
			serverCallback: "callback"
		});
		
		
		
	}
	
	
	
	
	
	
	
	function LangSelect(olang){
	
		Zapatec.Utils.writeCookie('web_lang',olang);
	}
	
	
	
	function creacookie(oname,oval){		
		Zapatec.Utils.writeCookie(oname,oval);
	}
	
	function webMenuOnClick(oitem){
		//alert(oitem.id);
		var itemLink=oitem.getElementsByTagName('a');
		if(itemLink&&itemLink.item(0)&&itemLink.item(0).getAttribute('onISclick')){
				
			
			
			
			 Zapatec.Transport.setInnerHtml({
			  html: '<scr'+'ipt type="text/javascript">'+itemLink.item(0).getAttribute('onISclick')+'</'+'script>',
			  container: 'testscriptTD'
			});
			
			if(typeof(anonymous)=="function"){
				anonymous();
			
			}
		}
		if(document.getElementById(Zapatec.Utils.getCookie('web_mainpath')))
		{
			var oldoItem=document.getElementById(Zapatec.Utils.getCookie('web_mainpath'));
			Zapatec.Utils.removeClass(oldoItem,"zpMenuPath");
		
		}
	
		Zapatec.Utils.addClass(oitem,"zpMenuPath");
	
		Zapatec.Utils.writeCookie('web_mainpath',oitem.id);
		
	}
	
	var menu=[];
	function  openmymenu(othemename,omenuname,overtical)
	{		
		menu[omenuname]=null;
		if(omenuname=='MenuTriBottom')
			menu[omenuname] = new Zapatec.Menu({theme: othemename,vertical: overtical,myonClick:webMenuOnClick, source: omenuname, rememberPath: 'expand', pathCookie: 'web_mainpath', slide: true,slidetype: 'bottom',hideDelay: 2, showDelay: 5, fade: true, zIndex:999});
		else
		if(omenuname=='MenuTriTopddd')
			menu[omenuname] = new Zapatec.Menu({theme: othemename,vertical: overtical,myonClick:webMenuOnClick, source: omenuname, rememberPath: 'expand', pathCookie: 'web_mainpath', slide: true,slidetype: 'top',hideDelay: 2, showDelay: 7,  zIndex:999});
		else
			menu[omenuname] = new Zapatec.Menu({theme: othemename,vertical: overtical,myonClick:webMenuOnClick, source: omenuname, rememberPath: 'expand', pathCookie: 'web_mainpath'});
		
		
		
	}



		function bascet()
		{
			this.name = new Array();
			this.service = new Array();				
			//this.price = new Array();
			this.account = new Array();
			this.parameter = new Array();
			this.status = new Array();
			this.serCodes = new Array();
			this.count=0;
			this.totalC=0;
			//this.totalprice=0;
			
		}
		
	
		
		bascet.prototype.prolist = function () 
		{	
			var listsend='';
			lp=0;
			for(k=0;k<this.totalC;k++)
			{
				if(document.getElementById('bask5678_' + this.service[this.serCodes[k]])){
				
					listsend+='&vcode'+lp+'='+this.service[this.serCodes[k]]+'&vname'+lp+'='+this.name[this.serCodes[k]];
					lp++;
				}
				
			}
			listsend+='&vlistnum='+lp;
			return listsend;
			
		};
		
		bascet.prototype.add = function (inname,inservice,inaccount,inparameter,instatus)
		{
			if(!this.service[inservice])
				this.count = this.count+1;
			this.name[inservice] = inname;
			this.service[inservice] = inservice;	
		
			//this.price[inservice] = inprice;
			this.account[inservice] = inaccount;
			this.parameter[inservice] = inparameter;			
			this.status[inservice] = instatus;	
			
			//if(inprice>0)
				//this.totalprice=this.totalprice*1+inprice*inaccount;
			
			
			if(!document.getElementById('bask5678_' + inservice))
			{
				this.serCodes[this.totalC] = inservice;
				this.totalC++;
				var cindiv = document.getElementById('bascetDIV');
				var newdiv = document.createElement('div');
				newdiv.id = 'bask5678_' + inservice;
				newdiv.innerHTML='<img src="'+vsubpath+'/ispages/isimage/isdesign/mainicon.jpg" width="7" height="7" />&nbsp;&nbsp;'+inname;
				newdiv.className="polltext";
				cindiv.appendChild(newdiv);
			}
		};
		
		bascet.prototype.remove = function (inservice)
		{
			
			if(this.service[inservice])
				this.count = this.count-1;
			this.name[inservice] = null;
			this.service[inservice] = null;
			//this.deckription[inservice] = null;
			//this.price[inservice] = null;
			this.account[inservice] = null;
			this.parameter[inservice] = null;
			this.status[inservice] = null;	
			
			if(document.getElementById('bask5678_' + inservice))
			{
				var cindiv = document.getElementById('bascetDIV');
				var newdiv = document.getElementById('bask5678_' + inservice);
			
				cindiv.removeChild(newdiv);
			}
		};
		
		
		bascet.prototype.td_count = function ()
		{
			
				document.getElementById('basket_TD').innerHTML=this.count;
				
		};
		
		
		
		var myBascet = new bascet();
		
		function activeelement(omenuid){
				
				document.getElementById('webmain_pid').style.visibility='visible';
				document.getElementById('webmain_pid').style.display='block';
			
		}
		
		function disableelement(omenuid){
		
				document.getElementById('webmain_pid').style.visibility='hidden';
				document.getElementById('webmain_pid').style.display='none';
		}
		
		
		
		var fo5;		
function fgalleryactive(){
	document.getElementById('fullgalleryDIV').innerHTML='';
	fo5=null;
	document.getElementById('movie2').style.display='none';
	document.getElementById('movie2').style.visibility='hidden';
	
	
	document.getElementById('webmain_pid').style.display='block';
	document.getElementById('webmain_pid').style.visibility='visible';
	//document.getElementById('movie').innerHTML='';
}

function fullgallery(swfpath){
	document.getElementById('movie2').style.visibility='visible';
	document.getElementById('movie2').style.display='block';
	document.getElementById('webmain_pid').style.display='none';
	document.getElementById('webmain_pid').style.visibility='hidden';
	fo5 = new SWFObject(vsubpath+"/issys/gallerymy5.swf", "movie2", "800", "785", "8", "#000000");
	fo5.addVariable("swfpath", swfpath);
	//fo.addParam("allowScriptAccess", "always");
	fo5.addParam("scale", "noscale");
	fo5.addParam("wmode", "transparent");
	//fo5.addParam("quality", "high");
	fo5.write("fullgalleryDIV");
}
