var mmrefname = 'yoursms2';
var mmlanguage = 'xx';
var mmpskin = 'default';

 
	 
	 
	function toggleMenu(currMenu) {
		if (document.getElementById) {
		thisMenu = document.getElementById(currMenu).style
			if (thisMenu.display == "block") {
				thisMenu.display = "none";
			}else {
				thisMenu.display = "block"
			}
			
		}
		
	}
	
	
	function toggleItem(currItem, styl) {
		currItem.className = styl;
	}
	
		
		
	function mobilemoneysale(ordernumber,pos)
	{
 
	 window.open('http://www.mobilemoney.com/salespopup.asp?pos='+escape(pos)+'&ordernumber='+escape(ordernumber)+'&refname='+escape(mmrefname)+'&language='+escape(mmlanguage)+'&popupskin='+escape(mmpskin),'popup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=468,height=550,left='+eval((screen.availWidth/2)-234)+',top=50');

	}
	
	
	
	
	
	 function mobileeditor(contenttype, data, pos)
			{
			 mmdata = data;
			 
			 
			 switch (contenttype*1) {
			   case 16:
				screenwidth = 520;
				screenheight = 300;
				break;
			   case 19:
				screenwidth = 520;
				screenheight = 300;
				break;
			   case 17:
				screenwidth = 520;
				screenheight = 400;
				break;						
			   case 15:
				screenwidth = 575;
				screenheight = 505;
				break;
			   case 27:
				screenwidth = 500;
				screenheight = 497;
				break;
			}
		 
			 window.open('http://www.mobilemoney.com/editor.asp?contenttype='+escape(contenttype)+'&refname='+escape(mmrefname)+'&mmdata='+escape(mmdata)+'&language='+escape(mmlanguage)+'&popupskin='+escape(mmpskin),'editorpopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width='+screenwidth+',height='+screenheight+',left='+eval((screen.availWidth/2)-(screenwidth/2))+',top=50');
		
			}
	
	
	
	
	
	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;
		}	
	
	
		



	
	function listenwindow(listenurl)
	{
	 window.open(listenurl, 'Listen', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=150,height=150,left='+eval((screen.availWidth/2)-75)+',top=50');
	}
	


	function helpform()
	{
	 window.open('http://www.mobilemoney.com/salespopup.asp?refname='+mmrefname+'&language='+mmlanguage+'&action=help&popupskin='+mmpskin,'helppopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=468,height=550,left='+eval((screen.availWidth/2)-234)+',top=50');
	}


	
	

	// Try to get our own param that tells us where to start
	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;
	}
	



	

