function longMonthArray() {
	this[0] = "января";	this[1] = "февраля";	this[2] = "марта";
	this[3] = "апреля";	this[4] = "мая";	this[5] = "июня";
	this[6] = "июля";	this[7] = "августа";	this[8] = "сентября";
	this[9] = "октября";	this[10] = "ноября";	this[11] = "декабря";
        return (this);
}

function getLongYear(year)
{
  if (year > 1900) return year
  return year+1900;
}

function writeDateLong(format)
{
         longMonths = new longMonthArray();
   d = new Date();
   day = d.getDate();
   month = d.getMonth();
	year = d.getYear();
  if (format == 3)
     str ="<font face=\"Arial\" size=\"2\" color=#FDAD14>" +day + " " +longMonths[month] + " " +getLongYear(year)+ "</b></font>";
     document.writeln(str);
}

var ctimer;

function init(){
if (document.all){
settimes();
}
}

function settimes(){
var time= new Date();
hours= time.getHours();
mins= time.getMinutes();
secs= time.getSeconds();
if (hours<10)
hours="0"+hours;
if(mins<10)
mins="0"+mins;
if (secs<10)
secs="0"+secs;
tim1.innerHTML="<font face=\"Arial\" size=\"2\" color=#FDAD14>"+hours+":"+mins+":"+secs+"</b></font>"
ctimer=setTimeout('settimes()',960);
}


function show(where){ 
stored=where; 
storedLocation=document.images[where].src; 
document.images[where].src="http://127.0.0.1/images/k3.gif"; 
 

} 

function show1(where){ 
stored=where; 
storedLocation=document.images[where].src; 
document.images[where].src="http://127.0.0.1/images/k2.gif"; 
 

} 

function hide(){ 
document.images[stored].src=storedLocation; 
} 


function chk(){
   if ((self.document.zakaz.fam.value=='')||(self.document.zakaz.im.value=='')
   ||(self.document.zakaz.tel.value=='')||(self.document.zakaz.gorod.value=='')
   ||(self.document.zakaz.ul.value=='')||(self.document.zakaz.dom.value=='')
   ||(self.document.zakaz.kv.value=='')) {
      alert('Пожалуйста, заполните все обязательные поля')}
   else{ zakaz.submit() }
   }
