function ChangeActionLogin(value){
	if(value=="U"){
		$('#form_login').attr('action',"?cmd=LogIN");
	}
	if(value=="P"){
		$('#form_login').attr('action',"?cmd=LogInPartner");
	}
}

/*function GoRegister(lingua){
	if($('#type_login1').attr('checked')==true){
		if(lingua=="Italiano"){
			location.replace('?page=109');
		}
		if(lingua=="Inglese"){
			location.replace('?page=93');
		}
		return;
	}
	
	if($('#type_login2').attr('checked')==true){
		if(lingua=="Italiano"){
			location.replace('?page=122&sub=123');
		}
		if(lingua=="Inglese"){
			location.replace('?page=117&sub=118');
		}
		return;
	}	
}*/

function GoRegister(lingua){

		if(lingua=="Italiano"){
			location.replace('?page=109');
		}
		if(lingua=="Inglese"){
			location.replace('?page=93');
		}
		return;
}

function GoForgot(lingua){

		if(lingua=="Italiano"){
			location.replace('?page=109&sub=120&did=forgot_data');
		}
		if(lingua=="Inglese"){
			location.replace('?page=93&sub=113&did=forgot_data');
		}
		return;
}

function FormSubmit(){
	document.getElementById('prodotto_submit').submit();
}

function GoPay(id_prod,lang){
	if(id_prod==""){
			if(lang=="Italiano"){
			    alert('Selezionare un pacchetto crediti');
			   return;
			}else{
				alert('Please select credit packet');
				return;
			}
			return;
	}
	
	if(document.getElementById('metodopag1').checked==false && document.getElementById('metodopag2').checked==false){
		if(lang=="Italiano"){
		    alert('Selezionare il metodo di pagamento');
		   return;
		}else{
			alert('Please select payment method');
			return;
		}
		return;
	}
	if(document.getElementById('metodopag1').checked){
		document.getElementById('FORMPAYPAL').submit();
	}else{
		document.getElementById('FORMBANKPASS').submit();
	}
}