ACC SHELL

Path : /srv/www/vhosts/eqnxde/js/
File Upload :
Current File : /srv/www/vhosts/eqnxde/js/js.js

version = navigator.appVersion.toLowerCase();
agent = navigator.userAgent.toLowerCase();
ie = (version.indexOf('msie')>-1);
ie55 = (version.indexOf('msie 5.5')>-1);
win = (version.indexOf('windows')>-1);
opera = (agent.indexOf('opera')>-1);

function display (elementID)
{
	var id;

	if ((ie55) &! (opera)) {
		id = elementID;
		if (document.all.item(id))
			document.all.item(id).style.display = "block";
	} else {
		id = elementID;
		if (document.getElementById(id))
		document.getElementById(id).style.display = "block";
	}
}

function undisplay (elementID)
{
	var id;

	if ((ie55) &! (opera)) {
		id = elementID;
		if (document.all.item(id))
			document.all.item(id).style.display = "none";
	} else {
		id = elementID;
		if (document.getElementById(id))
			document.getElementById(id).style.display = "none";
	}
}


function setthis(id) {
	document.getElementById('s'+id).checked = true;
	testRadio(id);
}
function setdoprava(id) {
	document.getElementById('s'+id).checked = true;
	document.getElementById('doprava').submit();
}

function BigPhoto(url,w,h){
	windowRef = window.open(url,'photo','toolbar=0,menubar=0,scrollbars=0,width=' + w + ',height=' + h);
	wasOpen = false;
	if (typeof(windowRef) == 'object'){
		wasOpen = true;
	}
	return wasOpen;
}

function kontrola(form){ 
//	if(form.zbozi[0].checked==false){
//		alert(form.zbozi.[]);
//		alert("Vyberte zboží, které si přejete objednat!");
//		
//		/* Aktivování prvku, který není vyplněn */
//		return false;
//		/* Vrátíme hodnotu FALSE - pro neodeslani formuláře */
//	} else 	
		return true;
}

function pocet_znaku (limit) {
	delka=document.getElementById("fpopis").value.length;
	obsah=document.getElementById("fpopis").value;
	maxhod = limit - 1;
	if (delka<maxhod) {
		document.form.zbyva.value=limit-(delka+1);
		document.form.napsano.value=delka+ 1; if (delka==maxhod);
	}
	if (delka==maxhod) { alert ("Maximální počet znaků je "+ limit); }
	if (delka>maxhod) { document.getElementById("fpopis").value=obsah.substring(0,limit); }
}


function kontrolaformulare(vstup)
{
	zadanaHodnota = vstup.ppp_mail.value; // načtena hodnota (value) z políčka s name=email
	if(zadanaHodnota.indexOf("@") == -1) // zavináč se nevyskytuje
        { alert("Nezadali jste kontaktní email"); return false; }
	
	zadanaHodnota = vstup.ppp_firma.value; // načtena hodnota (value) z políčka s name=email
	if(zadanaHodnota == "") // zavináč se nevyskytuje
        { alert("Nezadali jste fakturační kontakt (název)"); return false; }

	zadanaHodnota = vstup.ppp_adresa.value; // načtena hodnota (value) z políčka s name=email
	if(zadanaHodnota == "") // zavináč se nevyskytuje
        { alert("Nezadali jste fakturační kontakt (adresa)"); return false; }
	
	zadanaHodnota = vstup.ppp_mesto.value; // načtena hodnota (value) z políčka s name=email
	if(zadanaHodnota == "") // zavináč se nevyskytuje
        { alert("Nezadali jste fakturační kontakt (město)"); return false; }

	zadanaHodnota = vstup.ppp_psc.value; // načtena hodnota (value) z políčka s name=email
	if(zadanaHodnota == "") // zavináč se nevyskytuje
        { alert("Nezadali jste fakturační kontakt (psč)"); return false; }

	return true;
}

function odeslat(vstup)
{
	return document.getElementById(vstup).submit();
}


function showOrHideBlok(Eid) {
	var id = Eid;
	var blok = document.getElementById(id);
	if (blok.style.display == "none") {
		blok.style.display = "block";
	} else {
		blok.style.display = "none";
	}
}

function gokraj(s)
{
	var t=s.options[s.selectedIndex].value;
	if (t!="") window.location.href="?kraj="+t;
}
function gokat(s)
{
	var t=s.options[s.selectedIndex].value;
	if (t!="") window.location.href="?typ="+t;
}
function setpage(s)
{
	var t=s.options[s.selectedIndex].value;
	if (t!="") window.location.href="?nastranku="+t;
}





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_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_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_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];}
}


function ConversionCount()
{
_uacct = 'UA-1058339-3';
urchinTracker("/videoserial/goal");
return true;
}

ACC SHELL 2018