/*
		if($defined($('subsemail')))
		{
			$('subsemail').addEvent('focus', function(){
				$('subsemail').set('value', '');	
			});
		
			$('subsemail').addEvent('blur', function(){
				var email = $('subsemail').get('value');
				if(email == '' || email =='Join our mailing list'){
					$('subsemail').set('value', 'Join our mailing list');	
				}
			});
		}*/
		function onblurSeach( s )
		{
		
			var value = s.value;
			var name = s.name;
			var strTest ='';
			if(name == 'k_what')
			{
				strTest = 'job title, keywords or company name';
			}
			if(name == 'k_where')
			{
				strTest = 'city, state or zip code (optional)';
			}
			if(s)
				if(value == '' || value ==strTest){
					s.value = strTest;	
			}
		}
		function onfocusSearch( s )
		{
			s.value = '';
			
		}
		
		function searchCheck()
		{
			var form = document.search_form;
			var what_is = form.k_what.value;
			var where_is = form.k_where.value;
			
			if((what_is != '' && what_is != 'job title, keywords or company name'))
			{
				if(where_is == 'city, state or zip code (optional)')
				{
					form.k_where.value = '';
				}
			}
			if((where_is != '' && where_is != 'city, state or zip code (optional)'))
			{
				if(what_is == 'job title, keywords or company name')
				{
					form.k_what.value = '';
				}
			}
				
			return true;
		}
