function Open_img(name,size1,size2,title){
view = window.open(name,"name","height="+size2+" , width="+size1+"","menubar=no,toolbar=no,status=no,scrollbars=no");
view.document.writeln('<html><head><title>'+title+'</title></head>');
view.document.writeln('<body style="margin:0px;"><a href=javascript:window.close();> <img src='+name+' border="0" alt="закрыть окно"></a></body></html>');
}
<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Извините, вы не можете скопировать эту информацию.");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
//  End -->

function wo(isrc,ititle)
{
mwin=window.open('','','width=500,height=375,scrolling=no,resizable=yes');
mwin.document.open();
mwin.document.write("<html><body style='margin:0px;padding:0px;'>");
mwin.document.write("<a href='#' onclick='window.close(); return false' title='Кликните, чтобы закрыть окно'><img src="+isrc+" border=0 onload='window.resizeTo(this.width+8,this.height+30)'></a></body></html>");
}
 function trr_GoVisa() {
        var cmb = document.all["trr_visa_list"];
        window.location = "country_visa.php?country="+cmb.options[cmb.selectedIndex].value;
    }
dom = (document.getElementById)? true : false;
ie4 = (document.all)? true : false;

if(!dom && !ie4) document.write("<b>Ваш браузер не поддерживает используемые технологии!</b>");

function sent_form(vfile) {
	if (dom || ie4) {
		sentframe.document.forms.formsent.file.value = vfile
		sentframe.document.forms.formsent.submit();
		return false;
	} else {
		return false;
	}
}

function upd_message(id_elem, content1) {
	if (ie4) document.all[id_elem].innerHTML=content1;
	else if (dom) document.getElementById(id_elem).innerHTML=content1;
}

function showImage(name) {
	var address=name;
	show=window.open(address, Math.round(Math.random()*10000), "copyhistory=no,width=500,height=500,directories=0,menubar=0,resizable=0,status=0,tollbar=0,scrollbars=0");
}

function xpshow() {
	document.all.place.style.display = 'none';
	document.all.place2.style.display = '';
}

function xpshow2() {
	document.all.place.style.display = '';
	document.all.place2.style.display = 'none';
}
	function show(file, width, height)
	{
			file=file + ".php";
			//window.open(file, "_blank", "width="+width+",height="+height+",titlebar=no,toolbar=yes,location=no,status=no,menubar=yes,scrollbars=no,resizable=no");
			window.open(file, "_blank", "width="+width+",height="+height+",titlebar=no,toolbar=yes,location=no,status=no,menubar=yes,scrollbars=no,resizable=no");
	}

