	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 < mmsearchform29_11.mmstype29_11.length; i++) {
				if (mmsearchform29_11.mmstype29_11[i].checked) {
					stype = mmsearchform29_11.mmstype29_11[i].value;
				}
			}
			if (typeof(stype)=='undefined') stype=mmsearchform29_11.mmstype29_11.value;
			for (i = 0; i < mmsearchform29_11.mmcat29_11.length; i++) {
				if (mmsearchform29_11.mmcat29_11[i].selected) {
					mmcat = mmsearchform29_11.mmcat29_11[i].value;
				}
			}
			if (typeof(mmcat)=='undefined') mmcat=mmsearchform29_11.mmcat29_11.value;
			mmsearchresults(mmsearchform29_11.mmsearch29_11.value, stype, mmcat, mmsearchform29_11.mmcountry29_11.value);
		}

		function countrychange()
		{
			document.mmsearchform29_11.mmcountry29_11.value = document.mmsearchform29_11.mmcat29_11[document.mmsearchform29_11.mmcat29_11.selectedIndex].id;
		}

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

		if (typeof(document.mmsearchform29_11.mmstype29_11[1]) != 'undefined') {
			if  (getparam("mmstype29_11") == 'and') {
				document.mmsearchform29_11.mmstype29_11[0].checked = true
			}
		}
		if (typeof(document.mmsearchform29_11.mmcat29_11.options) != 'undefined') {
			document.mmsearchform29_11.mmcountry29_11.value = document.mmsearchform29_11.mmcat29_11[document.mmsearchform29_11.mmcat29_11.selectedIndex].id;
		}
		document.mmsearchform29_11.mmsearch29_11.value = unescape(getparam("mmsearch29_11"))
