function checkSelected(){
	var frm=document.forms["frmCard"];	
	var rdo_price=frm.price;
	var rdo_cards=frm.idCard;
	
	var i_cart=g("i_card").value;	
	var price=g("price_gift_card").value;	
	
	var i;	
	var c_card=0;
	var c_price=0;
	
	if(i_cart>1){
		for(i=0; i<i_cart; i++){
			if(rdo_cards[i].checked){
				c_card++;
				break;
			}
		}
	}else{
		if(g("idCard").checked)	
			c_card++;
	}
	
	if(price=="other|0"){
		if(g("other_price").value==""){
			alert("Please enter the Amout you wish to buy");				
		}else{ c_price++;}
	}else{
		if(price=="" || price==undefined || price=="0"){
			alert("Please, choose amount");
		}else{ c_price++;}
	}
		
	if(c_price>0 && c_card>0){
		frm.submit();
	}else{
		if(c_card==0){
			alert("Please, choose one gift card theme");
			return false;
		}
/*		if(c_price==0){
			alert("Please, choose amount");
			return false;
		}
*/	}
}


function selectedPrice(value_price){
	if(value_price=="other|0"){
		g("show_price_other").style.display="";
		g("other_price").style.background="#f5f4f0";
		g("other_price").value="";
		g("other_price").focus();
	}else{
		if(value_price!="")
			g("show_price_other").style.display="none";
		else{
			alert("Please, choose amount");
			g("show_price_other").style.display="none";
		}
	}	
}
