	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 < mmsearchform0_11.mmstype0_11.length; i++) {
				if (mmsearchform0_11.mmstype0_11[i].checked) {
					stype = mmsearchform0_11.mmstype0_11[i].value;
				}
			}
			if (typeof(stype)=='undefined') stype=mmsearchform0_11.mmstype0_11.value;
			for (i = 0; i < mmsearchform0_11.mmcat0_11.length; i++) {
				if (mmsearchform0_11.mmcat0_11[i].selected) {
					mmcat = mmsearchform0_11.mmcat0_11[i].value;
				}
			}
			if (typeof(mmcat)=='undefined') mmcat=mmsearchform0_11.mmcat0_11.value;
			mmsearchresults(mmsearchform0_11.mmsearch0_11.value, stype, mmcat, mmsearchform0_11.mmcountry0_11.value);
		}

		function countrychange()
		{
			document.mmsearchform0_11.mmcountry0_11.value = document.mmsearchform0_11.mmcat0_11[document.mmsearchform0_11.mmcat0_11.selectedIndex].id;
		}

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

		if (typeof(document.mmsearchform0_11.mmstype0_11[1]) != 'undefined') {
			if  (getparam("mmstype0_11") == 'and') {
				document.mmsearchform0_11.mmstype0_11[0].checked = true
			}
		}
		if (typeof(document.mmsearchform0_11.mmcat0_11.options) != 'undefined') {
			document.mmsearchform0_11.mmcountry0_11.value = document.mmsearchform0_11.mmcat0_11[document.mmsearchform0_11.mmcat0_11.selectedIndex].id;
		}
		document.mmsearchform0_11.mmsearch0_11.value = unescape(getparam("mmsearch0_11"))
