function load_state(country)
{
	//alert(country);
	if(country!="")
	  {
		element_listbox = document.getElementById("listboxdiv");
		element_txtbox = document.getElementById("txtboxdiv");
		 if (country==1)
		{	    
			element_txtbox.style.display = 'none';
			element_listbox.style.display = '';	
			document.registration_step1.state_txtbox.value=""
		}
		
		else 
		{
			element_listbox.style.display = 'none';
			element_txtbox.style.display = '';	
			document.registration_step1.state.value=""
		}
	  }
}
function change_state()
	{
		var obj_list_box = document.registration_step1.country;
		var selectedCountry = new String(obj_list_box.options[obj_list_box.selectedIndex].value);
		
		element_listbox = document.getElementById("listboxdiv");
		element_txtbox = document.getElementById("txtboxdiv");
		
		if (selectedCountry==1)
		{	    
			element_txtbox.style.display = 'none';
			element_listbox.style.display = '';	
			document.registration_step1.state_txtbox.value=""
		}
		
		else 
		{
			element_listbox.style.display = 'none';
			element_txtbox.style.display = '';				
			document.registration_step1.state.selected = false
			//alert(document.registration_step1.state.selected)
		}
	}
  
 function show(id)
	{	
		el = document.getElementById(id);
		if (el.style.display == 'none')
		{
			el.style.display = '';
			el = document.getElementById('more' + id);
			el.innerHTML = 'less...';
		} else {
			el.style.display = 'none';
			el = document.getElementById('more' + id);
			el.innerHTML = 'more...';
		}
	}	

	 
	 function show_video(val)
	{
		element = document.getElementById("video");	
		
		if (val=="basic")
		{	    
			element.style.display = 'none';						
		}
		
		else if (val=="premium")
		{			
			element.style.display = '';	
		}
	}
	

		function nextbox(fldobj,nbox)
		{		
		if(fldobj.value.length>=3)
		{			
			document.getElementById(nbox).focus();
		}
		}
		
		function checkifempty_username()
		{
			if (document.registration_step1.username.value=='')
			{
			  document.registration_step1.chk_user_button.disabled=true
			}
			else if(document.registration_step1.username.value!='')
			{
			 document.registration_step1.chk_user_button.disabled=false
			 document.getElementById("username_available").innerHTML= ""		 
			}
		}
		function checkifempty_url()
		{		
			if (document.registration_step1.webaddress.value=='')
			{
			document.registration_step1.chk_web_add_button.disabled=true
			}
			else if (document.registration_step1.webaddress.value!='')
			{
			document.registration_step1.chk_web_add_button.disabled=false
			document.getElementById("url_available").innerHTML=""
			}
       }
	   
	   function check_union()
	   {
			var oRadio = document.registration_step1["primaryUnion[]"]
			
			for(i=0;i<oRadio.length;i++)
			{
				if(document.registration_step1["primaryUnion[]"][i].selected)
				{					
					if(document.registration_step1["primaryUnion[]"][i].value!=37)
					{
					  	document.registration_step1["primaryUnion[]"][0].selected=false
						//alert(document.registration_step1["primaryUnion[]"][0].selected)
					}
				}
			} 			
		
	   }
