<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
//-->

<!--
function limitText(limitField, limitCount, limitNum) {
if (limitField.value.length > limitNum) {
limitField.value = limitField.value.substring(0, limitNum);
} else {
limitCount.value = limitNum - limitField.value.length;
}
}
//-->


var aIds = Array( 'pg_b4c353f9b6' );
function ChangePage( to_hide, to_show )
{
   var tbl_hide = document.getElementById( aIds[to_hide] );
   var tbl_show = document.getElementById( aIds[to_show] );

   if ( typeof(tbl_hide)=='object' && tbl_hide!=null )
    if ( typeof(tbl_show)=='object' && tbl_show!=null )
    {
       tbl_hide.style.display = 'none';
       tbl_show.style.display = '';
    }
}
function NotEmpty( old_res, id, field_title )
{
   if ( old_res==0 )
   {
      var el = document.getElementById( id );
      if ( typeof(el)=='object' && el!=null )
        if ( el.value=='' )
        {
           alert( 'You should fill "' + field_title + '"' );
           return 1;
        }
   }
   return 0;
}
function Email( old_res, id, field_title )
{ 
   if ( old_res==0 )
   {
      var el = document.getElementById( id );
      if ( typeof(el)=='object' && el!=null )
      {
         var re = /^[a-zA-Z0-9_\.\-]+@([a-zA-Z0-9][a-zA-Z0-9-]+\.)+[a-zA-Z]{2,6}$/;

         if (el.value.search(re) != -1 )  return 0;
         else
         {
            alert( '"'+field_title+'" must be email' );
            return 1;
         }
      }
   }
   return 0;
}
function ChIntervalOpts( old_res, nom, field_title, from, to, ids )
{
   if ( old_res==0 )
   {
      var nActive = 0;
      var it = null;

      for ( i=0; i<ids.length; i++ )
      {
         it = document.getElementById( ids[i] );
         if ( it!=null && it.checked ) nActive++;
      }

      if ( nActive < from || nActive > to )
      {
         alert( 'You must tick box to agree Terms and Conditions' );
         return 1;
      }
   }
   return 0;
}




function CheckPageb4c353f9b6()
{
  
   
   var nResult = 0;
   nResult += NotEmpty( nResult, 'fld_12c309d178','Your name:' );
   nResult += Email( nResult, 'fld_8a7b678217','Email address:' );
   nResult += NotEmpty( nResult, 'fld_2d4890f242','Business name:' );
   nResult += NotEmpty( nResult, 'fld_73b69959ce','Business description:' );
   nResult += ChIntervalOpts( nResult, 'fld_fcd49416eb','Agree Terms and Conditions:',1,1, Array('4a8af01f58') );

   if ( nResult == 0 )
   {
	   
	    
   var val = document.getElementById('fld_91ff043856').value;
      if (val=="Select category")
      {
        alert("Select category");
        exit;
      } 
     
	  
	  var val = document.getElementById('fld_18a110db4e').value;
      if (val=="Select your area")
      {
        alert("Select your area");
        exit;
      } 
   
	   
	   
	   
	   
      if (1)
      {
         var el = document.getElementById( 'frm_8e95e6d1b0' );
         if ( typeof(el)=='object' && el != null ) el.submit();
      }
      else ChangePage( 0, 1 );
   }
}
