	function subm()
	{
		if (document.franquiciaform.fullname.value == '') { 
			document.franquiciaform.fullname.focus(); 
			var trname = "tr1";
		//	alert(trname):
			var tr = document.getElementById ? document.getElementById(trname) : document.all[trname];
		//	alert(tr):
			tr.style.display = 'block';
			return false; 
		}

		if (document.franquiciaform.mobile.value == '') { 
			document.franquiciaform.mobile.focus(); 
			var trname = "tr1";
			var tr = document.getElementById ? document.getElementById(trname) : document.all[trname];
			tr.style.display = 'block';
			return false; 
		} 
		if (document.franquiciaform.email.value == '') { 
			document.franquiciaform.email.focus(); 
			var trname = "tr1";
			var tr = document.getElementById ? document.getElementById(trname) : document.all[trname];
			tr.style.display = 'block';
			return false; 
		} 
		if (document.franquiciaform.postalcode.value == '') { 
			document.franquiciaform. postalcode.focus(); 
			var trname = "tr1";
			var tr = document.getElementById ? document.getElementById(trname) : document.all[trname];
			tr.style.display = 'block';
			return false; 
		} 
                checkStr = document.franquiciaform.postalcode.value;
                if(checkStr.length < 5)
                {
                    alert("Please enter a valid 5 digit Postal Code.");
                    document.franquiciaform.postalcode.value();
                    return (false);
                }

                isNum();
/*		if (document.franquiciaform.message.value == '') { 
			document.franquiciaform.message.focus(); 
			var trname = "tr1";
			var tr = document.getElementById ? document.getElementById(trname) : document.all[trname];
			tr.style.display = 'block';
			return false; 
		} 
*/
		document.franquiciaform.submit();
		return false;
	}
	function get_element(id)
	{
		return document.getElementById ? document.getElementById(id) : document.all[id];
	}
	function inp( arg )
	{
		if (arg){
			get_element("pole").style.display="block";
		} else {
			get_element("pole").style.display="none";
		}
		//document.franquiciaform.custom6.disabled = !arg;
		return false;
	}
        function isNum()
        {
                var checkOK = "0123456789";
                var checkStr = document.franquiciaform.postalcode.value;
                var allValid = true;
                var allNum = "";
                for (i = 0;  i < checkStr.length;  i++)
                {
                    ch = checkStr.charAt(i);
                    for (j = 0;  j < checkOK.length;  j++)
                    if (ch == checkOK.charAt(j))
                    break;
                    if (j == checkOK.length)
                    {
                      allValid = false;
                      break;
                    }
                    if (ch != ",")
                    allNum += ch;
                }
                if (!allValid)
                {
                    alert("Please enter only numbers(0-9) in the \"Postal Code\" field.");
                    document.franquiciaform.postalcode.value();
                    return (false);
                }
        }