﻿
<!--

function checkFields_bazar() {
missinginfo = "";
if (document.formpost.jmeno.value == "") {
missinginfo += "\n     -  Jméno";
}
if(!zkontroluj_email(document.formpost.email.value)) {
missinginfo += "\n     -  e-mail";
}

if(document.formpost.tel.value == "") {
missinginfo += "\n     -  Telefon";
}

if(document.formpost.hry.value == "") {
missinginfo += "\n     -  Názvy her";
}

if (missinginfo != "") {
missinginfo = "Pro oslání  musíte vyplnit následující  položky:\n" +
missinginfo 
alert(missinginfo);
return false;
}
else
{

return true;
}

 
}

function Zalozka(CatIDStr,Item) 
{

   document.getElementById("list1").style.display = 'none';
  document.getElementById("list2").style.display = 'none';
  document.getElementById("list3").style.display = 'none';
    document.getElementById("list4").style.display = 'none';
  
   document.getElementById(CatIDStr).style.display = "";
   setCookie(Item,CatIDStr,300);

}

function getCookie(c_name)
{
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0;i<ARRcookies.length;i++)
  {
  x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
  y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
  x=x.replace(/^\s+|\s+$/g,"");
  if (x==c_name)
    {
    return unescape(y);
    }
  }
}

function setCookie(c_name,value,exdays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate() + exdays);
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());
document.cookie=c_name + "=" + c_value;
}

function checkCookie(Item)
{
var LastBookmark=getCookie(Item);
if (LastBookmark!=null && LastBookmark!="")
  {
  alert("Welcome again " + LastBookmark);
  }
else 
  {
  LastBookmark=prompt("Please enter your name:","");
  if (LastBookmark!=null && LastBookmark!="")
    {
    setCookie(Item,LastBookmark,365);
    }
  }
}

function checkCookie2(Item)
{ 
var LastBookmark=getCookie(Item);
if (LastBookmark!=null && LastBookmark!="")
  {
  Zalozka(LastBookmark);
  }
else 
  {
  if (LastBookmark!=null && LastBookmark!="")
    {
   Zalozka('list1');
    }
  }
}



function checkFields_feedback() {
missinginfo = "";
if(!zkontroluj_email(document.formpost.email.value)) {
missinginfo += "\n     -  e-mail";
}

if(document.formpost.hry.value == "") {
missinginfo += "\n     -  Text zprávy";
}

if (missinginfo != "") {
missinginfo = "Pro oslání musíte vyplnit následující položky:\n" +
missinginfo 
alert(missinginfo);
return false;
}
else return true;
}

function zkontroluj_email(adresa)
{
  re = /^[^.]+(\.[^.]+)*@([^.]+[.])+[a-z]{2,3}$/;
  return adresa.search(re) == 0;
}

function zkontroluj_formular()
{
  if (!zkontroluj_email(self.document.forms.f.email.value))
  {
    alert("Email Není správně vyplněn!");
    return false;
  }
   return true;  
}

function Form_Validator_Platba(theForm)
{
  if (document.getElementById("platba").checked == true)
  {
    alert("Vyberte druh dopravy.");
    return (false);
  }
  
  }  

function clickCategory(CatIDStr) 
{

var frm_element = document.getElementById('t_' + CatIDStr);

var vis = frm_element.style;

if (vis.display=='' || vis.display=='none') {
vis.display = '';
//  document.getElementById('a_' + CatIDStr).setAttribute("class", "active");
 document.getElementById('i_' + CatIDStr).setAttribute("class", "active");
} else {
vis.display = 'none';
// document.getElementById('a_' + CatIDStr).setAttribute("class", "x");
} 

}
function BigImg(ARI)
{
	var URL;
	URL="BigImg.asp?ARI="+ARI+"&title=MORTAL+KOMBAT+PS3"
	 window.open(URL,'','status=1,scrollbars=1,width=200,height=200,resizable=1')
	// window.open(URL,'')	
	
}

function BigImg2(ARI,pid)
{
	var URL;
	URL="galery2.asp?ARI="+ARI+"&pid="+pid+"&title=MORTAL+KOMBAT+PS3&kod=783501"
	 window.open(URL,'','status=1,scrollbars=1,width=200,height=200,resizable=1')
	// window.open(URL,'')	
	
}

// -->





