function _joinOperation (f,operation,mainId,subId) {
	var location = "section="+f;
	switch (f) {
		case 'join' :
			switch (operation) {
				case 'usrkontrol' :
				case 'allkontrol' :
				case 'refresh' :
					// variable
					var city = document.getElementById("city").value;
					var usrname = document.getElementById("nickname").value;
					var psswrd = document.getElementById("psswrd").value;
					var confirms = document.getElementById("confirm").value;
					var fullname = document.getElementById("fullname").value;
					var gender = document.getElementById("gender").value;
					var eposta = document.getElementById("eposta").value;
					var codepicture = document.getElementById("codepicture").value;
					// location
					if (mainId!="") {
						location += "&saveoption="+mainId; 
					} // end if
					location += "&operation="+operation+"&usrname="+usrname+"&psswrd="+psswrd+"&confirm="+confirms+"&fullname="+fullname+
								"&gender="+gender+"&eposta="+eposta+"&city="+city+"&codepicture="+codepicture;
				break;
			} // end switch
		break;
		case 'address' :
			switch (operation) {
				case 'update' :
					var country = document.getElementById("country").value;
					var fullname = document.getElementById("fullname").value;
					var gender = document.getElementById("gender").value;
					var eposta = document.getElementById("eposta").value;
					var company = document.getElementById("company").value;
					var tel1 = document.getElementById("tel1").value;
					var tel2 = document.getElementById("tel2").value;
					var tel3 = document.getElementById("tel3").value;
					var fax1 = document.getElementById("fax1").value;
					var fax2 = document.getElementById("fax2").value;
					var fax3 = document.getElementById("fax3").value;
					var mobile = document.getElementById("mobile").value;
					var address = document.getElementById("address").value;
					var city = document.getElementById("city").value;
					var state = document.getElementById("state").value;
					var zipcode = document.getElementById("zipcode").value;
					var time = document.getElementById("time").value;
					location += "&operation="+operation+"&fullname="+fullname+"&gender="+gender+"&eposta="+eposta+"&country="+country+"&company="+company+
					"&tel1="+tel1+"&tel2="+tel2+"&tel3="+tel3+"&fax1="+fax1+"&fax2="+fax2+"&fax3="+fax3+"&mobile="+mobile+
					"&address="+address+"&city="+city+"&state="+state+"&zipcode="+zipcode+"&time="+time;
					//document.write(location);
				break;
			} // end switch
		break;
		case 'remember' :
			switch (operation) {
				case 'send'    :
				case 'refresh' :
					var usrname = document.getElementById("nickname").value;
					var eposta = document.getElementById("eposta").value;
					var codepicture = document.getElementById("codepicture").value;
					location += "&operation="+operation+"&usrname="+usrname+"&eposta="+eposta+"&codepicture="+codepicture;
					//document.write(location);
				break;
			} // end switch
		break;
		case 'basket' :
			switch (operation) {
				case 'update' :
					var numberI = document.getElementById("arrayI").value;
					var sinir = numberI-1;
					//var _eSesId = '';
					var _eBxId = '';
					var _eBxQty = '';
					var _eBxDel = '';
					for (var i=0; i<numberI; i++) {
						if (i<sinir) { var _n = ';' } else { var _n = ''; }
						//_eSesId += document.getElementById("proId_"+i).value+_n;
						//"&sesId="+_eSesId+
						_eBxId  += document.getElementById("bxId_"+i).value+_n;
						_eBxQty += document.getElementById("qty_"+i).value+_n;
						_eBxDel += document.getElementById("delId_"+i).checked+_n;
					} // end for
					location += "&operation="+operation+"&bxId="+_eBxId+"&qty="+_eBxQty+"&dId="+_eBxDel+"&GoTo="+subId;
					//document.write(location);
				break;
			} // end switch
			if (mainId!="") {
				location += "&basketSection="+mainId;
			} else {
				location += "&basketSection=1";
			} // end if
		break;
	} // end switch
	return location;
} // end function