// function onclickbtn(p_this){
	// document.product_info.submit();
// }

function submitover(p_this,p_lng,p_root){
	p_this.style.backgroundImage="url("+p_root+"_application/images/buy_"+p_lng+"_over.jpg)";
}

function submitout(p_this,p_lng,p_root){
	p_this.style.backgroundImage="url("+p_root+"_application/images/buy_"+p_lng+".jpg)";
}

function overbtn(p_this, p_root, p_type){
	p_this.childNodes[0].style.backgroundImage="url("+p_root+"_application/images/btn/vasarol_l_sel"+p_type+".jpg)";
	p_this.childNodes[0].style.backgroundRepeat="no-repeat";
	if(p_type=='_1'){
		p_this.childNodes[0].style.width = 6+'px';
	}
	else{
		p_this.childNodes[0].style.width = 31+'px';
	}
	p_this.childNodes[0].style.height = 19+'px';
	
	p_this.childNodes[1].style.backgroundImage="url("+p_root+"_application/images/btn/vasarol_m_sel.jpg)";
	p_this.childNodes[1].style.backgroundRepeat="repeat-x";
	p_this.childNodes[1].style.height = 19+'px';
	
	p_this.childNodes[2].style.backgroundImage="url("+p_root+"_application/images/btn/vasarol_r_sel.jpg)";
	p_this.childNodes[2].style.backgroundRepeat="no-repeat";
	p_this.childNodes[2].style.width = 6+'px';
	p_this.childNodes[2].style.height = 19+'px';
}

function outbtn(p_this,p_root, p_type){
	p_this.childNodes[0].style.backgroundImage="url("+p_root+"_application/images/btn/vasarol_l"+p_type+".jpg)";
	p_this.childNodes[0].style.backgroundRepeat="no-repeat";
	if(p_type=='_1'){
		p_this.childNodes[0].style.width = 6+'px';
	}
	else{
		p_this.childNodes[0].style.width = 31+'px';
	}
	p_this.childNodes[0].style.height = 19+'px';
	
	p_this.childNodes[1].style.backgroundImage="url("+p_root+"_application/images/btn/vasarol_m.jpg)";
	p_this.childNodes[1].style.backgroundRepeat="repeat-x";
	p_this.childNodes[1].style.height = 19+'px';
	
	p_this.childNodes[2].style.backgroundImage="url("+p_root+"_application/images/btn/vasarol_r.jpg)";
	p_this.childNodes[2].style.backgroundRepeat="no-repeat";
	p_this.childNodes[2].style.width = 6+'px';
	p_this.childNodes[2].style.height = 19+'px';
}

//----------------------bank----------------------
function changepopup(p_this,p_lang){
	var popup = document.getElementById('bank_info_popup');
	var info_text = document.getElementById('atutalas_info_text');
	if(p_this.value=='otp'){
		popup.style.display = 'table';
		info_text.style.display = 'none';
		popup.onclick = function () {showPopup('otp',p_lang);}
	}
	else if(p_this.value=='paypal'){
		popup.style.display = 'table';
		info_text.style.display = 'none';
		popup.onclick = function () {showPopup('paypal',p_lang);}
	}
	else if(p_this.value=='atutalas'){
		popup.style.display = 'none';
		info_text.style.display = 'table';
	}
	else{
		popup.style.display = 'none';
		info_text.style.display = 'none';
	}
}

function showPopup(p_param,p_lang){
	var popup = window.open('../'+p_param+'_bankinfo_'+p_lang+'.html', 'mywindow', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=700,height=500, left=200,top=200');
	popup.focus();
  return false;
}
