var pressed_key;
var layer=false;
function openWin(src, win_w, win_h){
var w=screen.availWidth;
var h=screen.availHeight;
/*alert (win_w+' '+win_h);
return false;*/
windowNote = window.open('','Note','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width='+win_w+',height='+win_h+',left=250,top=100');
text = '
Фото';
text+=src;
text += '';
windowNote.document.write(text);
windowNote.focus();
windowNote.document.close();
//return false;
}
function keyUp(key,show_layer){
/* alert(layer);
if (document.URL.indexOf('article')!='-1'){
alert('yes');
}else{
alert('no');
} */
if (key==17){
pressed_key=key.toString();
//alert(pressed_key+' press');
}
if(key==90){
pressed_key=pressed_key+key.toString();
}
if(pressed_key=='1790'){
if (layer==false){
layer=true;
document.getElementById(show_layer).style.display='block';
pressed_key=false;
}else{
layer=false;
document.getElementById(show_layer).style.display='none';
pressed_key=false;
}
}
}
function calendar_month(year,curr_monthes,start,num,s_year){
//alert(num+" "+year);
var curr_year=2010;
var curr_month=9;
var us_monthes='';
if (num==''||s_year==''){
us_monthes=us_monthes.replace('onchange="document.load_pic.number.value=this.value;document.getElementById(\'number\').innerHTML=this.value;"','');
}
us_monthes=us_monthes.replace('','');
var curr_monthes='';//Тут проблема
curr_monthes=curr_monthes.replace('','');
var single='';
if (num==''){
curr_monthes=curr_monthes.replace('onchange="document.getElementById(\'number\').innerHTML=this.value;"','');
}
// alert (curr_monthes);
if (start=='ok'){
//alert(us_monthes);
if(s_year==curr_year){
document.getElementById('monthes').innerHTML=curr_monthes;
}else{
document.getElementById('monthes').innerHTML=us_monthes;
}
return false;
}
//s_year=2007;
//alert (curr_month+' curr '+s_year+' syear '+curr_year+' curryear');
if(curr_month==12&&year>curr_year){
return single;
}else
if (year0&&mark==true){
alert ('Короткое слово для поиска!');
//document.SearchForm.FindWhat.select();
return false;
}
if (document.SearchForm.FindWhat.value==def&&mark==true){
alert ('Искать что?');
//document.SearchForm.FindWhat.select();
return false;
}
if (document.SearchForm.FindWhat.value==''){
document.SearchForm.FindWhat.value=def;
}
}
function checkMail(){
for (i=0;i