function ProfileOpen(URL) 
{
newwin = window.open(URL, 'profilewin', 'toolbars=1,scrollbars=1,location=0,statusbars=0,menubars=1,resizable=1,width=785,height=565,left=0,top=0');
}
function StartSearch() 
{
	var f = document.frmSearch;
	{
		f.SearchTime.value = now;
		f.submit();			
	}
}
function SelectPage(DirSet) 
{
	var f = document.frmSearch;
	{
		f.nextDirectorySet.value = DirSet;
		f.submit();			
	}
}
function StateSelect() 
{
	var f = document.frmSearch;
	{
		if (f.Country.value != '')
			{
			f.Country.value = '';
			f.Zipcode.value = '';
			alert('You cannot select a state AND a country');
			}
		if (f.Zipcode.value != '')
			{
			f.Zipcode.value = '';
			alert('You cannot select a state AND a Zipcode');
			}
	}
}
function CountrySelect() 
{
	var f = document.frmSearch;
	{
		if (f.State.value != '')
			{
			f.State.value = '';
			f.Zipcode.value = '';
			alert('You cannot select a country AND a state');
			}
		if (f.Zipcode.value != '')
			{
			f.Zipcode.value = '';
			alert('You cannot select a country AND a Zipcode');
			}
	}
}
function ZipcodeSelect() 
{
	var f = document.frmSearch;
	{
		if (f.State.value != '')
			{
			f.State.value = '';
			}
		if (f.Country.value != '')
			{
			f.Country.value = '';
			}
	}
}
function PhotoClick() 
{
	var f = document.frmSearch;
	{
		if (f.NewPhotosOnly.checked == true)
			{
			f.NewPhotosOnly.checked = '';
		
			}
	}
}
function NewPhotoClick() 
{
	var f = document.frmSearch;
	{
		if (f.PhotosOnly.checked == true)
			{
			f.PhotosOnly.checked = '';
		
			}
	}
}
function VideoClick() 
{
	var f = document.frmSearch;
	{
		if (f.NewVideoOnly.checked == true)
			{
			f.NewVideoOnly.checked = '';
		
			}
	}
}
function NewVideoClick() 
{
	var f = document.frmSearch;
	{
		if (f.VideoOnly.checked == true)
			{
			f.VideoOnly.checked = '';
		
			}
	}
}
function DoSearch() 
{
	var f = document.frmSearch;
	{
		doSearch.style.visibility = 'hidden';
		isSearching.style.visibility = 'visible';
		doSearch2.style.visibility = 'hidden';
		isSearching2.style.visibility = 'visible';
		f.submit();
	}
}


