<!--
	function show () {
		var dv = document.getElementById('dv_log');
		dv.className = "show";
	}

	function other_img (img,nme)
		{
			ih = document.getElementById("dv_img");
 			ih.innerHTML = '<img src="images/products/' + img + '" alt="' + nme + '">';
 			document.or_form.oth_img.value = img;
		}

	function chose_statut (on, off)
		{
			var op = document.getElementById(on);
			var cl = document.getElementById(off);
			if (op.className == "submenu") {
				op.className = "submenu_on";
				cl.className = "submenu";
				if (on == 'nc_p') {
					document.nc_form.nc_statut.value = 'pers';
				}
				else {
					document.nc_form.nc_statut.value = 'firma';
				}
			}
		}

	function ShowMenu2 (parent, id)
		{
			var pr  = document.getElementById(parent);
			var mn  = document.getElementById(id);
			if (pr.className == "menu2") {
				pr.className = "menu2_on";
				mn.className = "submenu2_on";
			}
			else {
				pr.className = "menu2";
				mn.className = "submenu2";
			}
		}	
		
	function ShowMenu (id)
		{
			var mn = document.getElementById(id);
			if (mn.className == "submenu") {
				mn.className = "submenu_on";
			}
			else {
				mn.className = "submenu";
			}
		}


	function calcul_ttotal ()
		{
			var sum  = 0;
			no_forms = document.f_editcos.elements.length-3;
			for (i = 1 ; i < no_forms ; i+=2) {
				sum += parseFloat(document.f_editcos[i].value);
			}
			if (sum) {
				return sum.toFixed(2);
			}
			else {
				return 0;
			}
		}	
		
	function open_image (pr_img,pr_name,pr_who)
		{
			window.open ("image.php?img="+pr_img+"&name="+pr_name+"&who="+pr_who,"Sex Shop Best Erotic","height=445,width=500,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no");
		}
		
	function open_email (email)
		{
			window.open ("email.php?item="+email,"Sex Shop Best Erotic","height=300,width=400,status=yes,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no");
		}
		
	function chg_img(img_name,img_src) {
		document[img_name].src=img_src;
	}
		
	function no3_ch (vch)
		{
			if (vch == true) {
				var no_forms
				var i = 0
				var no_all = 0;
				no_forms = document.pr3_form.elements.length-1
				for (i = no_forms; i >= 0 ; i--) {
				 	if (document.pr3_form[i].checked == true) {
					 	no_all ++
				 	}
				 	if (no_all > 3) {
						return true
				 	}
		 		}
		 	}
		 	return false;
		}
	
	function open_page (get)
		{
			window.open("email_page.php?adr="+get,"Sex Shop Best Erotic","height=200,width=400,status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=no");
		}	
		
	/*verificare input*/	
	 function getKeyCode(e)
		{
			if (window.event)
		  	return window.event.keyCode;
		 	else if (e)
		  	return e.which;
		 	else
		  	return null;
		}	
		
	function keyRestrict(val, e, validchars)
		{
			var key='', keychar='';
			key = getKeyCode(e);
			if (key == null) {
				return true;
			}
			keychar = String.fromCharCode(key);
		 	keychar = keychar.toLowerCase();
		 	validchars = validchars.toLowerCase();
		 	if (validchars.indexOf(keychar) != -1) {
			 	if (val.charAt(0) == 0 && key == 48) {
 					return false;
 				}
		  	return true;
	  	}
		 	if ( key==null || key==0 || key==8 || key==9 || key==13 || key==27 ) {
		  	return true;
	  	}
		 	return false;
		}
		
	function keyRestrict0(val, e, validchars)
		{
			var key='', keychar='';
			key = getKeyCode(e);
			if (key == null) {
				return true;
			}
			keychar = String.fromCharCode(key);
		 	keychar = keychar.toLowerCase();
		 	validchars = validchars.toLowerCase();
		 	if (key == 46) {
			 	return true;
		 	}
		 	if (validchars.indexOf(keychar) != -1) {
		  	return true;
	  	}
		 	if ( key==null || key==0 || key==8 || key==9 || key==13 || key==27 ) {
		  	return true;
	  	}
		 	return false;
		}
		
	function keyRestrictCurs(val, e, validchars)
		{
			var key='', keychar='';
			key = getKeyCode(e);
			if (key == null) {
				return true;
			}
			keychar = String.fromCharCode(key);
		 	keychar = keychar.toLowerCase();
		 	validchars = validchars.toLowerCase();
		 	if (key == 46) {
			 	var lng = val.length;
			 	for (var i = 0 ; i <= lng ; i++) {
				 	if (val.charAt(i) == '.') {
					 	return false;
				 	}
			 	}
			 	return true;
		 	}
		 	if (validchars.indexOf(keychar) != -1) {
		  	return true;
	  	}
		 	if ( key==null || key==0 || key==8 || key==9 || key==13 || key==27 ) {
		  	return true;
	  	}
		 	return false;
		}
		
//-->