<!--
var mailq;
var maile;
var mailw;
var key;
function imgg(imgg){
mailq=window.open(imgg, "_blank", "location = no, status = no, resizable = yes, width = 400; height = 600")
}

function stat(){key=1;statsss();cook_tr();}

function statsss(){
defaultStatus="Заказать часы можно по телефону (095) 730-89-51 или по e-mail: zakaz@fiveoclock.ru";setTimeout("statsss()",200);
}











function dost(){
mailw=window.open("http://www.fiveoclock.ru/dost.htm", "_blank", "location = no, status = no, resizable = yes, scrollbars = yes")
}


function yslv(){
maile=window.open("http://www.fiveoclock.ru/yslv.htm", "_blank", "location = no, status = no, resizable = yes, scrollbars = yes")
}

var model;
var article;
function mail(mode, articl){

mailz=window.open("http://www.fiveoclock.ru/form.htm", "mail", "width=640, height=300, scrollbars = yes")
model=mode
article=articl
setTimeout('ban()', 5000)

}

function ban(){
mailz.document.all.mark.value=model
mailz.document.all.model.value=article
}
  



function openem(a, b)
{
if(b == "begu"){
document.all[b].style.visibility = 'visible'
document.all[b].style.zIndex = 5
document.all.begun.src=a
}
else{
document.all[b].style.visibility = 'visible'
document.all[b].style.zIndex = 5
}
}



function closeem(a, b)
{
if(b == "begu"){
document.all[b].style.visibility = 'hidden'
document.all[b].style.zIndex = '-1'
document.all.begun.src="http://www.fiveoclock.ru/zagruzka.gif"
}
else{
document.all[b].style.visibility = 'hidden'
document.all[b].style.zIndex = '-1'
}
}



function doit()
{
var per1, per2, per3, per4, per5;
per1=document.all.sex.value;
per2=document.all.price.value;
per3=document.all.korp.value;
per4=document.all.marka.value;
per5=document.all.article.value;
document.all.ssilka.href='http://www.fiveoclock.ru/cgi-bin/findfive.cgi?page=1&sex='+per1+'&price='+per2+'&korp='+per3+'&marka='+per4;
document.all.ssilka2.href='http://www.fiveoclock.ru/cgi-bin/findfive.cgi?page=1&article='+per5;
}
function show_me(markus){
if(key==1){
document.all[markus].style.visibility = 'visible'
document.all[markus].style.zIndex = 5
}
else{}
}
function ne_show_me(markus){
if(key==1){
document.all[markus].style.visibility = 'hidden'
document.all[markus].style.zIndex = 4
}
else{}
}


function cook_td(){setTimeout("cook_tr()",5000);}
function cook_tr(){
var counted=0;
bz_what=getCookie();
if(bz_what==null){}
else{
woo =  bz_what.length;

xez=0;
while(xez<woo)
{
yez = xez+1;
lchar =  bz_what.substring(xez,yez);
xez++;
if(lchar=="-"){counted++;}
}
counted=counted/2;
counted++;
}
dothemonkey(counted);
}


function dothemonkey(yap){
if(yap==0){document.all.peace.innerText = "пусто.";}
else{
zap = yap + " ед. часов.";

document.all.peace.innerText = zap;
}
}

function getCookie() {
name = "yCookers";
        var prefix = name + "="
        var cookieStartIndex = document.cookie.indexOf(prefix)
        if (cookieStartIndex == -1)
                return null
        var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length)
        if (cookieEndIndex == -1)
                cookieEndIndex = document.cookie.length
        return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex))
}
//-->
