function getPeopleKeyword() {
	var url = String(document.location);
	var pos1 = url.lastIndexOf("?");
	var searchKeyword;
	var searchServices;
	var searchLocation;
	var searchLanguage;
	var tempUrl;
	
	if (pos1 == -1 ) {
		return "";
	}
	else {
		url = unescape(url);
		for (var n = 1 ; n <= url.length ; n++) 
		{
		if (url.substring(n-1,n) == "+") 
			{ tempUrl+=" "; }
		else 
			{ tempUrl+=url.substring(n-1,n); }
		}
		
		url = tempUrl;
		
		l = url.length;	
		url1 = url.substring(pos1,l);
		
		x = url1.lastIndexOf("searchKeyword");
		y = url1.lastIndexOf("&searchServices");
		searchKeyword = String(url1.substring(x + 14,y));
		document.form2.name.value = searchKeyword;
		
		x = url1.lastIndexOf("searchServices");
		y = url1.lastIndexOf("&searchLocation");
		searchServices = String(url1.substring(x + 15,y));
		if (searchServices=="") {
			searchServices = "all";
		}
		document.form2.services.value = searchServices;

		x = url1.lastIndexOf("searchLocation");
		y = url1.lastIndexOf("&searchLanguage");
		searchLocation = String(url1.substring(x + 15,y));
		if (searchLocation=="") {
			searchLocation = "all";
		}
		document.form2.location.value = searchLocation;

		x = url1.lastIndexOf("searchLanguage");
		searchLanguage = String(url1.substring(x + 15,l));
		if (searchLanguage=="") {
			searchLanguage = "all";
		}
		document.form2.language.value = searchLanguage;
	}
}

function getKnowledgeKeyword() {
	var url = String(document.location);
	var pos1 = url.lastIndexOf("?");
	var searchKeyword;
	var searchServices;
	var searchAuthor;
	var searchfrYear;
	var searchfrMonth;
	var searchtoYear;
	var searchtoMonth;
	var tempUrl;
	
	if (pos1 == -1 ) {
		return "";
	}
	else {
		url = unescape(url);
		for (var n = 1 ; n <= url.length ; n++) 
		{
		if (url.substring(n-1,n) == "+") 
			{ tempUrl+=" "; }
		else 
			{ tempUrl+=url.substring(n-1,n); }
		}
		
		url = tempUrl;
		
		l = url.length;	
		url1 = url.substring(pos1,l);
		
		x = url1.lastIndexOf("searchKeyword");
		y = url1.lastIndexOf("&searchServices");
		searchKeyword = String(url1.substring(x + 14,y));
		document.form2.keyword.value = searchKeyword;
		
		x = url1.lastIndexOf("searchServices");
		y = url1.lastIndexOf("&searchAuthor");
		searchServices = String(url1.substring(x + 15,y));
		document.form2.service.value = searchServices;

		x = url1.lastIndexOf("searchAuthor");
		y = url1.lastIndexOf("&searchfrYear");
		searchAuthor = String(url1.substring(x + 13,y));
		document.form2.author.value = searchAuthor;

		x = url1.lastIndexOf("searchfrYear");
		y = url1.lastIndexOf("&searchfrMonth");
		searchfrYear = String(url1.substring(x + 13,y));
		if (searchfrYear=="") {
		  searchfrYear = "1988";
		}
		document.form2.fr_year.value = searchfrYear;

		x = url1.lastIndexOf("searchfrMonth");
		y = url1.lastIndexOf("&searchtoYear");
		searchfrMonth = String(url1.substring(x + 14,y));
		if (searchfrMonth=="") {
		  searchfrMonth = "1";
		}
		document.form2.fr_month.value = searchfrMonth;

		x = url1.lastIndexOf("searchtoYear");
		y = url1.lastIndexOf("&searchtoMonth");
		searchtoYear = String(url1.substring(x + 13,y));
		if (searchtoYear=="") {
		  searchtoYear = "0";
		}
		document.form2.to_year.value = searchtoYear;

		x = url1.lastIndexOf("searchtoMonth");
		searchtoMonth = String(url1.substring(x + 14,l));
		if (searchtoMonth=="") {
		  searchtoMonth="0";
		}
		document.form2.to_month.value = searchtoMonth;
	}
}

function getadvKeyword() {
	var url = String(document.location);
	var pos1 = url.lastIndexOf("?");
	var advKeyword;
	var tempUrl;
	
	if (pos1 == -1 ) {
		return "";
	}
	else {
		url = unescape(url);
		for (var n = 1 ; n <= url.length ; n++) 
		{
		if (url.substring(n-1,n) == "+") 
			{ tempUrl+=" "; }
		else 
			{ tempUrl+=url.substring(n-1,n); }
		}
		
		url = tempUrl;
		
		l = url.length;	
		url1 = url.substring(pos1,l);
		
		x = url1.lastIndexOf("searchKeyword");
		advKeyword = String(url1.substring(x + 14,l));
		document.form2.keyword.value = advKeyword;
	}
}
