function checkform ( form )
{

	var cantitate_form=form.cantitate.value;
	for (i=0; i<cantitate_form.length;i++){

		var c=cantitate_form.charAt(i);
		if( (c > "0") && (c <= "9")){

			is_num="nu"
			return true;

		}
		else{

			alert("Trebuie sa introduceti cifre mai mari ca 0 la cantitate!");
			return false;
			break;
		}


	}

}

function over_this(id){

	document.getElementById(id).innerHTML="<img src=\"pictures/icon_raquo_prod.jpg\" />";

}

function out_this(id){

	document.getElementById(id).innerHTML="&nbsp;";

}

function swap_login(radioObj){
	var radioObjValue = "true";
	if(!radioObj)
		return radioObjValue = "true";;

	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			radioObjValue =  radioObj.value;
		else
			radioObjValue =  "false";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			radioObjValue =  radioObj[i].value;
		}
	}
	if (radioObjValue == "true")
	{
		document.getElementById("is_user_true_content").style.display="block";
	}else
		document.getElementById("is_user_true_content").style.display="none";

}

