	function getparam(lookfor)
	{
	 var st  = new String(document.location);
	 var start  = st.indexOf (lookfor);
	 if (start != -1) {
	   st = st.substring (start);
	   start = st.indexOf ('=');
	   st = st.substring (start+1);
	   eind = st.indexOf ('&');
	   if (eind == -1) {
	    eind = st.length;
	   }
	   st = st.replace (/\+/g, ' ');
	   var st = unescape (st.substring (0, eind));
	 } else {
	   st = ""
	 }
	 return st;
	}
		function submit_search() {
			var stype
			var mmcat
			for (i = 0; i < mmsearchform22_11.mmstype22_11.length; i++) {
				if (mmsearchform22_11.mmstype22_11[i].checked) {
					stype = mmsearchform22_11.mmstype22_11[i].value;
				}
			}
			if (typeof(stype)=='undefined') stype=mmsearchform22_11.mmstype22_11.value;
			for (i = 0; i < mmsearchform22_11.mmcat22_11.length; i++) {
				if (mmsearchform22_11.mmcat22_11[i].selected) {
					mmcat = mmsearchform22_11.mmcat22_11[i].value;
				}
			}
			if (typeof(mmcat)=='undefined') mmcat=mmsearchform22_11.mmcat22_11.value;
			mmsearchresults(mmsearchform22_11.mmsearch22_11.value, stype, mmcat, mmsearchform22_11.mmcountry22_11.value);
		}

		function countrychange()
		{
			document.mmsearchform22_11.mmcountry22_11.value = document.mmsearchform22_11.mmcat22_11[document.mmsearchform22_11.mmcat22_11.selectedIndex].id;
		}

		if (typeof(document.mmsearchform22_11.mmcat22_11.options) != 'undefined') {
			for (i = 0; i < document.mmsearchform22_11.mmcat22_11.options.length; i++) {
				if (document.mmsearchform22_11.mmcat22_11.options[i].value == getparam("mmcat22_11")) {
					if ((getparam("mmcat22_11") == 0) || (document.mmsearchform22_11.mmcat22_11.options[i].id == getparam("mmcountry22_11"))) {
						document.mmsearchform22_11.mmcat22_11.options[i].selected = true;
					}
				}
			}
		}

		if (typeof(document.mmsearchform22_11.mmstype22_11[1]) != 'undefined') {
			if  (getparam("mmstype22_11") == 'and') {
				document.mmsearchform22_11.mmstype22_11[0].checked = true
			}
		}
		if (typeof(document.mmsearchform22_11.mmcat22_11.options) != 'undefined') {
			document.mmsearchform22_11.mmcountry22_11.value = document.mmsearchform22_11.mmcat22_11[document.mmsearchform22_11.mmcat22_11.selectedIndex].id;
		}
		document.mmsearchform22_11.mmsearch22_11.value = unescape(getparam("mmsearch22_11"))
