function over(img_1,img_2) {
	document.getElementById(img_1).style.backgroundColor='#343434';
	document.getElementById(img_1).style.borderBottom='1px solid #262626';
	document.getElementById(img_1).style.borderTop='1px solid #515151';
	
	document.getElementById(img_2).style.backgroundColor='#006DFF';
	document.getElementById(img_2).style.borderBottom='1px solid #0361DD';
	document.getElementById(img_2).style.borderTop='1px solid #4894FB';
}
function out(img_1,img_2) {
	document.getElementById(img_1).style.backgroundColor='#464646';
	document.getElementById(img_1).style.borderBottom='1px solid #343434';
	document.getElementById(img_1).style.borderTop='1px solid #616161';
	
	document.getElementById(img_2).style.backgroundColor='#6E6E6E';
	document.getElementById(img_2).style.borderBottom='1px solid #5B5B5B';
	document.getElementById(img_2).style.borderTop='1px solid #858585';
}
function OpenFile(files)
{	window.location.href='/out.php?files='+files;
}
function send(form,item)
{ form.method="post";
  form.target="_self";
  form.action="/polozky_pridat.php?action=add&id="+item;
  form.submit();
}
function send1(form)
{ form.method="post";
  form.target="_self";
  form.action="/polozky_pridat.php?action=recount&what=recount";
  form.submit();
}
function send2(form,item)
{ form.method="post";
  form.target="_self";
  form.action="/polozky_pridat.php?action=del&id="+item;
  form.submit();
}
function send3(form)
{ form.method="post";
  form.target="_self";
  form.action="/polozky_pridat.php?action=recount&what=objednat";
  form.submit();
}
function send5(form)
{ form.method="post";
  form.target="_self";
  form.action="/polozky_pridat.php?action=empty_basket";
  form.submit();
}
function pic_big(pics_id,w,h)
{	window.open('/obrazok.php?id='+pics_id,'','scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0,height='+h+',Width='+w); 
}
function CheckCustomer(form)
{ var chyba=0;
   if (form.name.value=="")
     { chyba=1;
       form.name.style.background="FF8080";
     } else form.name.style.background="url('../img/input_bg.gif')";
	 	    form.name.style.backgroundRepeat="repeat-x";

	if (form.surname.value=="")
     { chyba=1
       form.surname.style.background="FF8080";
     } else form.surname.style.background="url('../img/input_bg.gif')";
	 	    form.surname.style.backgroundRepeat="repeat-x";

    if (form.email.value=="")
     { chyba=1
       form.email.style.background="FF8080";
     } else form.email.style.background="url('../img/input_bg.gif')";
	 	    form.email.style.backgroundRepeat="repeat-x";
	 
	if (form.login.value=="")
     { chyba=1
       form.login.style.background="FF8080";
     } else form.login.style.background="url('../img/input_bg.gif')";
	 	    form.login.style.backgroundRepeat="repeat-x";
	 
	if (form.pass.value=="")
     { chyba=1
       form.pass.style.background="FF8080";
     } else form.pass.style.background="url('../img/input_bg.gif')";
	 	    form.pass.style.backgroundRepeat="repeat-x";

	if (form.pass_reply.value=="")
     { chyba=1
       form.pass_reply.style.background="FF8080";
     } else form.pass_reply.style.background="url('../img/input_bg.gif')";
	 	    form.pass_reply.style.backgroundRepeat="repeat-x";
	 
	if (form.postreet.value=="")
     { chyba=1
       form.postreet.style.background="FF8080";
     } else form.postreet.style.background="url('../img/input_bg.gif')";
	 	    form.postreet.style.backgroundRepeat="repeat-x";
	 
	if (form.fastreet.value=="")
     { chyba=1
       form.fastreet.style.background="FF8080";
     } else form.fastreet.style.background="url('../img/input_bg.gif')";
	 	    form.fastreet.style.backgroundRepeat="repeat-x";
	 
	if (form.pocity.value=="")
     { chyba=1
       form.pocity.style.background="FF8080";
     } else form.pocity.style.background="url('../img/input_bg.gif')";
	 	    form.pocity.style.backgroundRepeat="repeat-x";
	 
	if (form.facity.value=="")
     { chyba=1
       form.facity.style.background="FF8080";
     } else form.facity.style.background="url('../img/input_bg.gif')";
	 	    form.facity.style.backgroundRepeat="repeat-x";
	 
	if (form.popsc.value=="")
     { chyba=1
       form.popsc.style.background="FF8080";
     } else form.popsc.style.background="url('../img/input_bg.gif')";
	 	    form.popsc.style.backgroundRepeat="repeat-x";
	 
	if (form.fapsc.value=="")
     { chyba=1
       form.fapsc.style.background="FF8080";
     } else form.fapsc.style.background="url('../img/input_bg.gif')"; 
	 	    form.fapsc.style.backgroundRepeat="repeat-x";
	 
	if (form.pocountry.value=="")
     { chyba=1
       form.pocountry.style.background="FF8080";
     } else form.pocountry.style.background="url('../img/input_bg.gif')";
	        form.pocountry.style.backgroundRepeat="repeat-x";
	 
	if (form.facountry.value=="")
     { chyba=1
       form.facountry.style.background="FF8080";
     } else form.facountry.style.background="url('../img/input_bg.gif')";
	 		form.facountry.style.backgroundRepeat="repeat-x";

   if (chyba) return false;
    else return true;
}
function podmenu1()
{ 
  document.write("test")
}
