function openWin(url,winname,w,h,scroller,other) {
		centerX = (screen.availWidth-w)/2;
		centerY = (screen.availHeight-h)/2;
		more = 	'Width='+w+',Height='+h;
		more += ',left='+centerX+',top='+centerY;
		more += ',screenX='+centerX+',screenY='+centerY;
		more += ',menubar=no, toolbar=no, status=yes, resizeable=no, scrollbars=yes';
		if (other)    more += ',' + other;
		win = window.open(url,winname,more);
		win.focus()
}

function setPayment(type) {


	wirecard_ccardBox		= document.getElementById('wirecard_ccardBox');
	wire_card_c3Box			= document.getElementById('wire_card_c3Box');
	eustandardtransferBox	= document.getElementById('eustandardtransferBox');
	paypalBox				= document.getElementById('paypalBox');
	codBox					= document.getElementById('codBox');
	wire_card_gpBox			= document.getElementById('wire_card_gpBox');
	
	
	
	
	if (wire_card_gpBox)		wire_card_gpBox.className = 'payment-default';	
	if (wirecard_ccardBox)		wirecard_ccardBox.className = 'payment-default';	
	if (wire_card_c3Box)		wire_card_c3Box.className = 'payment-default';
	if (eustandardtransferBox)	eustandardtransferBox.className = 'payment-default';
	if (paypalBox)				paypalBox.className = 'payment-default';
	if (codBox)					codBox.className = 'payment-default';
	if (type)					{
								document.getElementById(type + 'Box').className	= 'payment-selected';
								document.getElementById(type).checked = 'checked';
								}
	//wire_card_c3Box
}


function changeCurrency() {
							var currencySelect = document.getElementById('currencySelector');
							for (i = 0; i < currencySelect.length; ++i) {
								if (currencySelect.options[i].selected == true)
								var selected_currency = currencySelect.options[i].value;
								new_path = window.location.pathname + 'currency/'+ selected_currency + '/';
								
							}
							
							if (selected_currency)	window.location.href = new_path;

}

var num;
function setImage(num) {
	var imageSelect = document.getElementsByName('imgselect' + num);
	var selImage = document.getElementById('i'+num)
	if (imageSelect[0].value == 0) {
		imageSelect[0].value=1
		selImage.style.borderColor='red';
	} else {
		imageSelect[0].value=0
		selImage.style.borderColor='';
	}
}
