var pressed_key; var layer=false; var fMail=/(\w+)@([\w\._]+)\.[a-z]/; function popUpPic(URLStr,width,height,left,top) { if(popUpWin) { if(!popUpWin.closed) popUpWin.close(); } popUpWin = open(URLStr, 'Note', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width='+width+', height='+height+',left='+left+',top='+top+''); } 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 checkFormat(field,varname){ var mark; var str= varname+'.exec(\''+field+'\')==null'; //alert (str); if (eval(str)){ mark=false; } else{ mark=true; } return mark; } function checkUserSending() { var els=document.frm.elements; for (i=0;i'; 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