function wop(url,wnd_name,width,height){
	w=window.open(url,wnd_name,'width='+width+',height='+height+',status=no,menubar=no,resizable=yes,scrollbars=yes,left='+String((screen.width-width)/2)+',top='+String((screen.height-height)/2));
}
function wop2(url,wnd_name, width, height) {
	window.open(''+url+'', '', 'width=' + width +', height=' + height+', status=no,menubar=no,resizable=yes,scrollbars=yes,location=no');
}

function viewpic(url,wnd_name,width,height){
	w=window.open(url,wnd_name,'width='+width+',height='+height+',status=no,menubar=no,resizable=yes,scrollbars=no,left='+String((screen.width-width)/2)+',top='+String((screen.height-height)/2));
	w.focus();
	return w;
}

function viewpic1(url,wnd_name,width,height){
	w=window.open('',wnd_name,'width='+width+',height='+height+',status=no,menubar=no,resizable=yes,scrollbars=no,left='+String((screen.width-width)/2)+',top='+String((screen.height-height)/2));
 text = "<html><head><TITLE>Кликните на картинку для закрытия окна</TITLE></head><BODY style=\"margin:0px 0px 0px 0px\"><a href='#' title='Кликните на картинку для закрытия окна' onclick='self.close();'><img border='0' src=\"" + url + "\"></a></body></html>";
  w.document.write(text);
//  w.focus();
  return w;
}

function wop3(url, width, height) {
    var parentwin = external.menuArguments;
        parentwin.focus();
        parentwin.document.focus();
    L = parentwin.open(''+url+'', '', 'width=' + width +', height=' + height+', status=no,menubar=no,resizable=yes,scrollbars=yes');
    L.focus();
    L.document.focus();
}
