function bigimage(s,ww,hh)
{
w=window.open(null,null,"top=50,left=50,height="+(hh+30)+",width="+(ww+50)+",status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes");
w.document.open();
w.document.write("
Большая иллюстрация ");
w.document.close();
}
function ShowMore(name1,name2) {
document.getElementById(name1).style.display = 'none';
document.getElementById(name2).style.display = 'block';
return(false);
}
function open_picture(url,w,h, t) {
max_width = 800;
max_height = 600;
var t=t||'Большая картинка';
if (window.screen) {
max_width = window.screen.width - 20;
max_height = window.screen.height - 53;
}
win_w = w + 16;
win_h = h + 4;
if (win_w > max_width)
win_w = max_width;
if (win_h > max_height)
win_h = max_height;
win = window.open("", "", "status=1, resizable=1, toolbar=1, scrollbars=1, width="+win_w+", height="+win_h);
win.document.open();
win.document.write(''+t+'
');
win.document.close();
win.focus();
}
function open_send(id) {
window.open("/callback?id=" + id , "email", "width=400,height=420,top=200,left=200,Resizable=0,status");
}
/**********************************************************/
function AttachEvent(obj,evt,fnc,useCapture){
if (!useCapture) useCapture=false;
if (obj.addEventListener){
obj.addEventListener(evt,fnc,useCapture);
return true;
} else if (obj.attachEvent) return obj.attachEvent("on"+evt,fnc);
else{
MyAttachEvent(obj,evt,fnc);
obj['on'+evt]=function(){ MyFireEvent(obj,evt) };
}
}
//The following are for browsers like NS4 or IE5Mac which don't support either
//attachEvent or addEventListener
function MyAttachEvent(obj,evt,fnc){
if (!obj.myEvents) obj.myEvents={};
if (!obj.myEvents[evt]) obj.myEvents[evt]=[];
var evts = obj.myEvents[evt];
evts[evts.length]=fnc;
}
function MyFireEvent(obj,evt){
if (!obj || !obj.myEvents || !obj.myEvents[evt]) return;
var evts = obj.myEvents[evt];
for (var i=0,len=evts.length;i-1) {
if (form_obj.elements[i].checked) {
form_obj.elements[i].checked=false;
}
}
}
}
return(true);
}
function decheckother(obj) {
var target = obj.srcElement ? obj.srcElement : obj.target;
var prefix_ar=target.name.split('_');
var prefix=prefix_ar.slice(0,prefix_ar.length).join('_');
var form_obj=target.form;
if (form_obj.checked==false) return(true);
for (var i=0; i