 function PoliczRateLukas(koszyk) {
		var iWidth = 900;
		var iHeight = 700;
		var iX = ( screen.availWidth - iWidth ) / 2;
		var iY = ( screen.availHeight - iHeight ) / 2;
		window.open('http://mulan.pl/lukas.php?PARAM_TARGET=simulator&PARAM_CREDIT_AMOUNT='+koszyk, 'Policz_rate_LUKAS', "height="+iHeight+",width="+iWidth+",top="+iY+",left="+iX+",resizable=yes,scrollbars=yes,status=0;" );
	}

function WyswietlLukas(){
		var iWidth = 900;
		var iHeight = 700;
		var iX = ( screen.availWidth - iWidth ) / 2;
		var iY = ( screen.availHeight - iHeight ) / 2;
		window.open('http://mulan.pl/lukas.php?PARAM_TARGET=procedure', 'Procedura_LUKAS', "height="+iHeight+",width="+iWidth+",top="+iY+",left="+iX+",resizable=yes,scrollbars=yes,status=0;" );
    }



var myPopupWindow = '';  
 function openPopupWindow(url, name, width, height)  
 {  
   

     if (!myPopupWindow.closed && myPopupWindow.location)  
     {  
         myPopupWindow.location.href = encodeUrl(url);  
     }  
     else  
     {  
         myPopupWindow= window.open(url, name, "location=no, scrollbars=yes, resizable=yes, toolbar=no, menubar=no, width=" + width + ", height=" + height );  
         if (!myPopupWindow.opener) myPopupWindow.opener = self;  
     }  
   
     if (window.focus) {myPopupWindow.focus()}  
 }


 
 
function KalkulatorRatLukas(kwota)	{
	LeftPosition = (screen.width) ? (screen.width-820)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-540)/2 : 0;

	window.open('symulator.php?PARAM_TARGET=simulator-redirect&PARAM_CREDIT_AMOUNT='+kwota, 'Policz_rate', 'width=820,height=540,left='+LeftPosition+',top='+TopPosition+',directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');
}

function PoliczRate(koszyk) { 
window.open('https://ewniosek.lukasbank.pl/eWniosek/simulator.jsp?PARAM_TYPE=RAT&PARAM_PROFILE=PSP0112830&PARAM_CREDIT_AMOUNT='+koszyk, 'Policz_rate_LUKAS', 'width=820,height=680,directories=no,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no');
}


function Lukas() { 
window.open('https://ewniosek.lukasbank.pl/eWniosek/procedure.jsp?PARAM_TYPE=RAT&PARAM_PROFILE=PSP0112830', 'Procedura_LUKAS', 'toolbar=no,menubar=no,scrollbars=yes,directories=no,status=no,resizable=yes,width=820,height=680,top=0,left=50');

}


function nwin(site, w, h){
okno=window.open("http://www.mulan.pl/popups/"+site+"", "", "toolbar=no,menubar=no,scrollbars=yes,directories=no,status=no,resizable=yes,width="+w+",height="+h+",top=0,left=50");
okno.focus();
}


function downloadfile(url,fileid){
okno=window.open("http://www.mulan.pl/popups/Download.php?r="+url+"&f="+fileid+" ", "", "toolbar=no,menubar=no,scrollbars=yes,directories=no,status=no,resizable=yes,width=780,height=550,top=0,left=50");
okno.focus();
}



function redirect_producer(url,id){
okno=window.open("http://www.mulan.pl/popups/Producer.php?r="+url+"&f="+id+" ", "", "");
okno.focus();
}


function redirect(urlid){
okno=window.open("http://www.mulan.pl/popups/Redirect.php?id="+urlid+" ", "", "");
okno.focus();
}


function redirect_baner(urlid){
okno=window.open("http://www.mulan.pl/popups/RedirectBaner.php?id="+urlid+" ", "", "");
okno.focus();
}

function showlink(Ops){

	if(document.getElementById(Ops).style.display=='none'){
	
	document.getElementById(Ops).style.display="";
	
	}
	else{
	document.getElementById(Ops).style.display='none';
	}


}



function ShowFirm(){

	if(document.getElementById('RegisterForm').firm.options[document.getElementById('RegisterForm').firm.options.selectedIndex].value=='yes'){
	document.getElementById('Company').style.display="";
	}
	else{
	document.getElementById('Company').style.display='none';
	}

}




function ShowWhere(){

	if(document.getElementById('RegisterForm').where_from.options[document.getElementById('RegisterForm').where_from.options.selectedIndex].value=='Inne'){
	document.getElementById('InneD').style.display="";
	}
	else{
	document.getElementById('InneD').style.display='none';
	}

}




function ShowDeliv2(){

	if(document.getElementById('RegisterForm').deliv.options[document.getElementById('RegisterForm').deliv.options.selectedIndex].value=='yes'){
	document.getElementById('Delivery').style.display='none';
	}
	else{
	document.getElementById('Delivery').style.display="";
	}

}


function ShowDeliv(){


  
	if(document.getElementById('RegisterForm').deliv.checked==true){
	document.getElementById('Delivery').style.display='none';
	}
	else{
	document.getElementById('Delivery').style.display="";
	}



}

function ShowRegister(){


  
	if(document.getElementById('RegisterForm').register.checked==true){
	document.getElementById('Register').style.display="";
	}
	else{
	document.getElementById('Register').style.display='none';
	}



}




function ShowDAddress(){

	if(document.getElementById('OrderForm').delivUs.options[document.getElementById('OrderForm').delivUs.options.selectedIndex].value=='yes'){
	document.getElementById('Deliv_In').style.display="";
	}
	else{
	document.getElementById('Deliv_In').style.display='none';
	}

}


function ShowDost(){

	if(document.getElementById('SForm').Rozmiar.options[document.getElementById('SForm').Rozmiar.options.selectedIndex].value!=='0'){
	document.getElementById('Dost').style.display="";
	}
	else{
	document.getElementById('Dost').style.display='none';
	}
	
	
	if(document.getElementById('SForm2').Rozmiar.options[document.getElementById('SForm2').Rozmiar.options.selectedIndex].value!=='0'){
	document.getElementById('Dost2').style.display="";
	}
	else{
	document.getElementById('Dost2').style.display='none';
	}

}



function ShowPrezent(){

  	if(document.getElementById('RegisterForm').prezent.checked==true){
	document.getElementById('PreznetInfo').style.display="";
	}
	else{
	document.getElementById('PreznetInfo').style.display='none';
	}

}



function ShowComments(){
  
	document.getElementById('Comments').style.display="";
	

}

function ShowRecommend(){
  
	document.getElementById('Recommend').style.display="";
	

}

function ShowAsk(){
  
	document.getElementById('Ask').style.display="";
	

}


function showwynik(){

	if(document.getElementById('Wynik').style.display=='none'){
	
	document.getElementById('Wynik').style.display="";
	document.getElementById('Sonda').style.display='none';
	
	}
	else{
	document.getElementById('Wynik').style.display='none';
	document.getElementById('Sonda').style.display="";
	}


}


function zmianaSelect(indx, wartosc, produkt){

	document.getElementById('dc_'+produkt).dd_1.options[indx].selected=true;
	
		/*
		
			var imgarrc=document.getElementsByClassName('ccp');
			for (i=0;i<imgarrc.length;i++){
			
			  	imgarrc[i].className='bckc';
				
				
			}
		
		*/
		
	
		/*
	var elementy = document.getElementsByClassName('ccp');
		for (i = 0; i < elementy.length; i++){
		
			if(i == indx){
			
		  	elementy[i].style.border = '1px solid #8c8c8c';
			
			}
			else{
			
		  	elementy[i].style.border = '1px solid #fff';
			
			}
		
		    
		}
		
		
		*/
	  	
		
		
			funkcja = eval('price_'+produkt);
  			funkcja(wartosc);
		
	
  //	funkcja = eval('options_'+produkt);
  //	funkcja(2,wartosc);
	
	
	
  
}

