function rg(care){
	if(care == "male"){
		document.getElementById("male").style.background="url(images/fieldset/sadd_a_01.png)";
		document.getElementById("female").style.background="url(images/fieldset/sadd_i_01.png)";
		document.getElementById("sexf").value="male";
		}
	if(care == "female"){
		document.getElementById("male").style.background="url(images/fieldset/sadd_i_01.png)";
		document.getElementById("female").style.background="url(images/fieldset/sadd_a_01.png)";
		document.getElementById("sexf").value="female";
		}
	if(care == "segpay"){
		document.getElementById("segpay").style.background="url(images/fieldset/sadd_a_01.png)";
		document.getElementById("smspay").style.background="url(images/fieldset/sadd_i_01.png)";
		document.getElementById("zombaio").style.background="url(images/fieldset/sadd_i_01.png)";
		document.getElementById("pplan").value="segpay";
		}
	if(care == "smspay"){
		segpay = document.getElementById("segpay");
		if(segpay != null) {
			document.getElementById("segpay").style.background="url(images/fieldset/sadd_i_01.png)";
		}
		document.getElementById("smspay").style.background="url(images/fieldset/sadd_a_01.png)";
		document.getElementById("zombaio").style.background="url(images/fieldset/sadd_i_01.png)";
		document.getElementById("pplan").value="sms";
		}
	if(care == "zombaio"){
		segpay = document.getElementById("segpay");
		if(segpay != null) {
			document.getElementById("segpay").style.background="url(images/fieldset/sadd_i_01.png)";
		}
		document.getElementById("smspay").style.background="url(images/fieldset/sadd_i_01.png)";
		document.getElementById("zombaio").style.background="url(images/fieldset/sadd_a_01.png)";
		document.getElementById("pplan").value="zombaio";
		}
	if(care == "freeuser"){
		document.getElementById("pplan").value="freeuser";
		}
	}
	
function dropme(value){
	if(value == "1"){
		document.getElementById("pack_cont").innerHTML="";
		document.getElementById("pack_cont").style.height="1px";
		document.getElementById("c_2_content").style.height="370px"
		document.getElementById("mcevery").style.height="350px";
		}
	if(value == "2"){
		document.getElementById("c_2_content").style.height="400px"
		document.getElementById("mcevery").style.height="380px";
		document.getElementById("pack_cont").style.height="auto";
		document.getElementById("pack_cont").innerHTML='<div id="pack_field" style="width:271px;height:21px; position:relative; left:5px;"><div style="width:85px;height:21px; float:left;"><font style="color:#FFFFFF;font-size:11px;font-family:Verdana;font-weight:bolder;">PERIOD:</font></div><div style="width:166px;height:21px; float:left; position:relative; bottom:2px; #bottom:0px; #top:1px;"><div style="background:url(images/fieldset/fieldset_01.png);width:11px;height:21px; float:left;"></div><div style="background:url(images/fieldset/fieldset_02.png);width:144px;height:21px; float:left;"><select name="period" style="width:144px; height:21px; color:#FFFFFF; font-family:Verdana; background:transparent; #background:#171717; border:none;"><option value="24.99">1 Month / $34.99</option><option value="59.99">6 Months / $59.99</option><option value="79.99">12 Months / $99.99</option></select></div><div style="background:url(images/fieldset/fieldset_03.png);width:11px;height:21px; float:left;"></div></div></div><div style="width:271px; height:10px;"></div>';
		}
	}
	
function agreeme(what){
if(what == "tos"){
	if(document.getElementById("tos").style.background.match("fieldset/sadd_a_02.png")){ document.getElementById("tos").style.background="url(images/fieldset/sadd_i_02.png)"; document.getElementById("agreetos").value="1"; }
	else{ document.getElementById("tos").style.background="url(images/fieldset/sadd_a_02.png)"; document.getElementById("agreetos").value="1"; }
	}
if(what == "age"){
	if(document.getElementById("age").style.background.match("fieldset/sadd_a_02.png")){ document.getElementById("age").style.background="url(images/fieldset/sadd_i_02.png)"; document.getElementById("agever").value="0"}
	else{ document.getElementById("age").style.background="url(images/fieldset/sadd_a_02.png)"; document.getElementById("agever").value="1"}
	}
}

function swap(ce){
	if(ce == "over"){document.getElementById("sign_but").style.background="url(images/fieldset/sb_a_01.png)";}
	if(ce == "out"){document.getElementById("sign_but").style.background="url(images/fieldset/sb_i_01.png)";}
	if(ce == "sub"){document.getElementById("sgnfrm").submit();}
	}
	
function deleteField(ce){
	trasor=document.getElementById("smspayment");
	divid=document.getElementById("payment_field");
	user=document.getElementById("freeuser");
	current_pay = document.getElementById("currency");
	if(ce != "1" && ce !="5"){
		divid.style.display="inline-block";
		divid.style.visibility="visible";
		user.style.display="none";
		trasor.style.display="none";
		current_pay.style.display="inline-block";
		current_pay.style.visibility="visible";
		rg("zombaio");
		}
   else{
	   if(ce == "5") {
	   	divid.style.display="none";
		divid.style.visibility="visible";
		user.style.display="inline-block";
		user.style.visibility="visible";
		current_pay.style.display="none";
		current_pay.style.visibility="hidden";
		rg("freeuser");
	   } else {
		user.style.display="none";
		divid.style.display="inline-block";
		divid.style.visibility="visible";
	    trasor.style.display="inline-block";
        trasor.style.visibility="visible";
		current_pay.style.display="inline-block";
		current_pay.style.visibility="visible";
	   }
   }
}

function redirect(ce) {
	switch(ce){
		case '1':
			window.location = "/signup/payment.php";
		break;
		case '2':
			window.location = "/signup/payment_eur.php";
		break;
	}
}