
function rollover(a_){
	if(document.all){eval(a_).src="../_img/"+a_+"_.gif";}
	else{
	document.getElementById(a_).src="../_img"+a_+"_.gif";}
	}
function rollout(a_){
	if(document.all){eval(a_).src="../_img/"+a_+".gif";}
	else{
	document.getElementById(a_).src="../_img/"+a_+".gif";}
	}
	var t="";
	

function win(a_)
{
	if(t){if(!t.closed) t.close();}

	src="_img/"+ a_ +"_.jpg";
	t=window.open("","t","width=600,height=405, scrollbars=NO, resizable=YES");
	t.document.write("<body leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0'><img align='center' src='" + src + "' onClick='self.close()'></body>");
	t.focus();
}

function win_h(a_)
{
	if(t){if(!t.closed) t.close();}

	src="_img/"+ a_ +"_.jpg";
	t=window.open("","t","width=304,height=405, scrollbars=NO, resizable=YES");
	t.document.write("<body leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0'><img align='center' src='" + src + "' onClick='self.close()'></body>");
	t.focus();

}

	
function win_(a_){
	if(t){if(!t.closed) t.close();}
	t=window.open("","t","width=400,height=533, scrollbars=NO, resizable=YES");
	//
	t.document.write("<body leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0'><img src='_img/"+a_+"_.jpg' alt='Закрыть' onClick='self.close()'></body>");
	t.focus();
	}


function win_1(a_){
	if(t){if(!t.closed) t.close();}
	t=window.open("","t","width=495,height=700, scrollbars=NO, resizable=YES");
	//
	t.document.write("<body leftmargin='0' rightmargin='0' topmargin='0' bottommargin='0'><img src='_img/"+a_+"_.jpg' alt='Закрыть' onClick='self.close()'></body>");
	t.focus();

	}

function sub(){
var net=document.forms[0];
	if(document.all){
		if(!frm.mail.value||frm.mail.value==""||frm.mail.value.indexOf('@')==-1||frm.mail.value.indexOf('.')==-1||!frm.name.value||frm.name.value==""||!frm.txt.value||frm.txt.value==""){
			alert('Необходимо заполнить все поля!');
		}else{
			frm.submit();	
		};
	}else{
		if(!net.mail.value||net.mail.value==""||net.mail.value.indexOf('@')==-1||net.mail.value.indexOf('.')==-1||!net.name.value||net.name.value==""||!net.txt.value||net.txt.value==""){
			alert('Необходимо заполнить все поля!');			
		}else{
			document.forms[0].submit();
		};
	}
}
