d=document;

function nuls(num){
num+='';
if(num.length < 2)num='0'+num;
return num;
}

function clock_form()
         {
	 day=new Date()
	 clock_f=nuls(day.getHours())+":"+nuls(day.getMinutes())+":"+nuls(day.getSeconds())
     clock.innerHTML=clock_f
     id=setTimeout("clock_form()",100)
	 }

function zakupki(pid){
location.href='http://zakupki.gov.ru/Tender/ViewPurchase.aspx?PurchaseId='+pid;
return false;
}

function calendar(table, get, day){
location.href='/'+table+'/'+get+'/'+day+'/';
return false;
}

function month(nextYear, nextMonth, page, day, get, table){
location.href='?currYear='+nextYear+'&currMonth='+nextMonth+'&page='+page+'&day='+day+'&get='+get+'&table'+table;
return false;
}

function page(url)
{
location.href=url;
return false;
}

String.prototype.printAddr =
function (_hamper,_prefix,_postfix,_face)
{
  _hamper=
  _prefix+
  "@"+
  this+
  (_postfix || '')
  document.write((_face||_hamper).link("mailto:"+_hamper));
}