function popUpDic(theURL) { 	
	w=window.open(theURL,'IMAGE_POPUP','menubar=yes,scrollbars=yes,resizable=yes,width=380,height=300,left=30,top=10');
	w.focus;
}
function popUpKitei(theURL) { 	
	w=window.open(theURL,'IMAGE_POPUP','menubar=yes,scrollbars=yes,resizable=yes,width=680,height=600,left=30,top=10');
	w.focus;
}

function popUpKoushin(theURL) { 	
	w=window.open(theURL,'IMAGE_POPUP','menubar=yes,scrollbars=yes,resizable=yes,width=680,height=600,left=30,top=10');
	w.focus;
}

function popUpResearch(theURL) { 	
	w=window.open(theURL,'IMAGE_POPUP','menubar=yes,scrollbars=yes,resizable=yes,width=550,height=600,left=30,top=10');
	w.focus;
}

function popUpSiteDetails(theURL) {
	w=window.open(theURL,'SITE_DETAILS','menubar=yes,scrollbars=yes,resizable=yes,width=530,height=600,left=30,top=10');
	w.focus;
}

function GoToUrl(url){
	if(url != null){window.location.href=url;}
	else
	{
	var URL;
	URL = document.nav_pulldown_form.url.options[document.nav_pulldown_form.url.selectedIndex].value;
	if (URL == 'AboutRegistration') {
		AboutRegistration();
	} else {
		window.location.href = URL;
	}
	}
}

function ClearDefaultForm() {
	if (document.form.keyword_or) {
		document.form.keyword_or.value = '';
	}
	if (document.form.keyword_and) {
		document.form.keyword_and.value = '';
	}
	if (document.form.keyword_not) {
		document.form.keyword_not.value = '';
	}
	if (document.form.keyword_exact) {
		document.form.keyword_exact.value = '';
	}
	if (document.form.keyword_number) {
		document.form.keyword_number.value = '';
	}
	if (document.form.keyword_photographer) {
		document.form.keyword_photographer.value = '';
	}
}

function ClearLessingForm() {
	document.form.keyword_or.value = '';
	document.form.keyword_and.value = '';
	document.form.keyword_not.value = '';
	document.form.keyword_exact.value = '';
	document.form.keyword_number.value = '';
	document.form.keyword_photographer.value = '';
}

function ClearRexForm() {
	document.form.keyword_and.value = '';
	document.form.keyword_number.value = '';
}

function ClearAndOrNotExact() {
	document.form.keyword_or.value = '';
	document.form.keyword_and.value = '';
	document.form.keyword_not.value = '';
	document.form.keyword_exact.value = '';
}
function ClearSelect(this_form) {
	//var this_form = document.form.orientation;
	
	for(var x=1;x<this_form.length;x++) {
		this_form[x].checked = false;
	}
}
function submitenterform(e, id) {
  var keycode;
  if (window.event) keycode = window.event.keyCode;
  else if (e) keycode = e.which;
  else return true;
  if(keycode == 13){document.getElementById(id).submit();}

}
