function send3(){

	check=true;
	if (document.forms.navigatorz.qtype.value != '9'){	
		if (document.forms.navigatorz.Price.value == ''){
			alert('Заполните, пожалуйста, поле «Стоимость объекта покупки»')		
		} else {
			document.navigatorz.submit();		
		}
	} else {	
		document.navigatorz.submit();			
	}
	
}

function rebuild3(gofor) {


	if (gofor == '9') {
    
		document.getElementById('hide1z').style.display = 'none';
		document.getElementById('hide2z').style.display = 'none';
		document.getElementById('show1z').style.display = 'block';	

	} else {

		document.getElementById('hide1z').style.display = 'block';			
		document.getElementById('hide2z').style.display = 'block';			
		document.getElementById('show1z').style.display = 'none';			
	
	}

	
}

function hsr1(ida){

	if(document.getElementById(ida).style.display == 'block'){
		document.getElementById(ida).style.display = 'none';
	} else {
		document.getElementById(ida).style.display = 'block';
	}
	
}

function send2(){

	check=true;
	if (document.forms.navigatorz.qtype.value != '9'){	
		if (document.forms.navigatorz.Price.value == ''){
			alert('Заполните, пожалуйста, поле «Стоимость объекта покупки»')		
		} else {
			document.navigatorz.submit();		
		}
	} else {	
		document.navigatorz.submit();			
	}
	
}

function rebuild2(gofor) {


	if (gofor == '9') {
    
		document.getElementById('hide1z').style.display = 'none';
		document.getElementById('hide2z').style.display = 'none';
		document.getElementById('show1z').style.display = 'block';	

	} else {

		document.getElementById('hide1z').style.display = 'block';			
		document.getElementById('hide2z').style.display = 'block';			
		document.getElementById('show1z').style.display = 'none';			
	
	}

	
}



function send(){

	check=true;
	if (document.forms.navigatorx.credittype.value != 'cards'){	
		if (document.forms.navigatorx.frame.value == ''){alert('Заполните, пожалуйста, поле «Срок»');check=false;}
		if (document.forms.navigatorx.ammount.value == ''){alert('Заполните, пожалуйста, поле «Сумма»');check=false;}					
	}
	
	if(check){
		document.getElementById('pleasewait').style.display = 'block';
		document.forms.navigatorx.submit();
	}
	
}

function rebuild(gofor) {


	if (gofor == 'cards') {
    
		document.getElementById('hide1').style.display = 'none';
		document.getElementById('hide2').style.display = 'none';
		document.getElementById('hide3').style.display = 'none';
		document.getElementById('hide4').style.display = 'none';
		document.getElementById('hide5').style.display = 'none';
		document.getElementById('show1').style.display = 'block';
	

	} else {

		document.getElementById('hide1').style.display = 'block';			
		document.getElementById('hide2').style.display = 'block';			
		document.getElementById('hide3').style.display = 'block';			
		document.getElementById('hide4').style.display = 'block';			
		document.getElementById('hide5').style.display = 'block';			
		document.getElementById('show1').style.display = 'none';			
	
	}

	
}

	function popup(fileUrl, winW, winH, winN, scrollbars) {
	var scrollbars = scrollbars? scrollbars : 'no';
	var winWidth = (winW)? winW : 540;
	var winHeight = (winH)? winH : 750;
	var winName = (winN)? winN : 'popupWin';
	if (nn4 || ie4 || dom) {
		if (screen.width < winWidth + 50) { winWidth = screen.width - 50; scrollbars = 'yes' }
		if (screen.height < winHeight + 100) { winHeight = screen.height - 100; scrollbars = 'yes' }
		posX = Math.round((screen.width - winWidth) / 2);
		posY = Math.round((screen.height - winHeight) / 2);
		posCode = (nn4 || dom)? "screenX="+posX+",screenY="+posY : "left="+posX+",top="+posY;
	} else {
		posCode = "";
	}
	var popupWin = window.open(fileUrl, winName,"menubar=no,toolbar=no,resizable=yes,scrollbars=" + scrollbars + ",status=yes,width=" + winWidth + ",height=" + winHeight + "," + posCode);
	if (popupWin) popupWin.focus();
	}





