		
		var root_link = "https://www.centre-astro-psychologie.com";
		
		var tempContent = "";
		
		var loadedContent = 1;
		
		var currTimeout = "";
		
		var currLib	= "";
		
		var playerHeight = 0;
		
		var commentsOn = 0;
		
		var popupOpen = 0;
		
		var currLeftNav = 1;
		
		var currNav = '';
		
		var opacityTimeoutVar = new Array();
		
		opacityTimeoutVar[0] = '';
		opacityTimeoutVar[1] = '';
		opacityTimeoutVar[2] = '';
		opacityTimeoutVar[3] = '';
		opacityTimeoutVar[4] = '';
		
		var currDiv = "";
		var currAnchor = "";
		var currFunction = "";
		var secondaryFunction = "";
		var ajaxTimeout = 0;
		
		var divCount = 2;
		var currDiv = 0;
		var openDiv = 0;
		
		var currLeftMenu = -1;
		
		var scrollTimeout = 0;
		
		var origLeft = new Array();
		var origTop = new Array();
		var currLeft = new Array();
		var currTop = new Array();
		var limitLeft = new Array();
		var limitTop = new Array();
		var offsetLeft = new Array();
		var offsetTop = new Array();
		
		origLeft[0] = 362;
		origLeft[1] = 587;
		origTop[0] = 100;
		origTop[1] = 190;
		
		currLeft[0] = 362;
		currLeft[1] = 587;
		currTop[0] = 100;
		currTop[1] = 190;
		limitLeft[0] = 317;
		limitLeft[1] = 707;
		limitTop[0] = 10;
		limitTop[1] = 10;
		offsetLeft[0] = 5;
		offsetLeft[1] = 10;
		offsetTop[0] = 10;
		offsetTop[1] = 15;
		
		var winW = 0;
		var winH = 0;
		
		// Detect if the browser is IE or not.
		// If it is not IE, we assume that the browser is NS.
		var IE = document.all?true:false
		
		// If NS -- that is, !IE -- then set up for mouse capture
		if (!IE) document.captureEvents(Event.MOUSEMOVE)
		
		// Main function to retrieve mouse x-y pos.s
		
		var tempX = 0;
		var tempY = 0;
		
		// Set-up to use getMouseXY function onMouseMove
		document.onmousemove = getMouseXY;
		
		// Temporary variables to hold mouse x-y pos.s
		var tempMouseX = 0
		var tempMouseY = 0
		
		// Main function to retrieve mouse x-y pos.s
		
		//setWindowProps();
		
		function getMouseXY(e) {
		  if (IE) { // grab the x-y pos.s if browser is IE
			tempMouseX = event.clientX + document.body.scrollLeft
			tempMouseY = event.clientY + document.body.scrollTop
		  } else {  // grab the x-y pos.s if browser is NS
			tempMouseX = e.pageX
			tempMouseY = e.pageY
		  }  
		  // catch possible negative values in NS4
		  if (tempMouseX < 0){tempMouseX = 0}
		  if (tempMouseY < 0){tempMouseY = 0}  
		  // show the position values in the form named Show
		  // in the text fields named MouseX and MouseY
		  
		  if (currFunction != '') {
			
			eval(currFunction);
			
		  }
		  
		  return true
		}
		
		function check_email(email) {
			
			ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";
			
			for(i=0; i < email.length ;i++){
				if(ok.indexOf(email.charAt(i))<0){ 
					return (false);
				}	
			}
			
			re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
			re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
			if (!email.match(re) && email.match(re_two)) {
				return (-1);		
			} 
			
		
		}
		
		function getScrollOffset() {
		
			setWindowProps();
		
			tempX = 0;
			tempY = 0;
			
			if (IE) { // grab the x-y pos.s if browser is IE
				tempX = document.body.scrollLeft;
				tempY = document.body.scrollTop;
			} else {
				tempX = window.pageXOffset;
				tempY = window.pageYOffset;
			}
			
			// catch possible negative values in NS4
			if (tempX < 0){tempX = 0}
			if (tempY < 0){tempY = 0}
			
			//alert(tempX + " " + tempY); 
		
		}

		function setWindowProps() {
			
			if (parseInt(navigator.appVersion)>3) {
				if (navigator.appName=="Netscape") {
					winW = window.innerWidth;
					winH = window.innerHeight;
				}
				if (navigator.appName.indexOf("Microsoft")!=-1) {
					winW = (document.body.offsetWidth-21);
					winH = (document.body.offsetHeight-4);
				}
			}
			
		}
		
		function setOpacity(divName,value) {
			document.getElementById(divName).style.opacity = value/10;
			document.getElementById(divName).style.filter = 'alpha(opacity=' + value*10 + ')';
		}
		
		function displayOpacity(divName,value,counter) {
			
			if (value == 10) {
				setOpacity(divName,value);
				clearTimeout(opacityTimeoutVar[counter]);
			} else {
				setOpacity(divName,value);
				opacityTimeoutVar[counter] = window.setTimeout("displayOpacity('"+divName+"',"+(value+1)+","+counter+")",50);
			}
			
		}
		
		function init(resize) {
			
			if (document.getElementById('currLib')) {
				currLib = document.getElementById('currLib').value;
			}
			
			//setWindowProps();
			
		}
		
		function setVisit() {
		
			currIp = document.getElementById('CurrIp').value;
			currMember = document.getElementById('CurrMem').value;
			currSession = document.getElementById('CurrSession').value;
		
			currHref = document.location.href;
			
			questionLocation = currHref.indexOf('?');
			
			variables = '';
			currPage = currHref;
			
			if (questionLocation != -1) {
				variables = currHref.split('?');
				currPage = variables[0];
				variables = variables[1].split('&');
			}
			
			//alert("functions.php?PageView=1&currPage="+currPage+"&variables="+variables+"&currMember="+currMember+"&currIp="+currIp+"&currSession="+currSession);
			
			currDiv = 'test';
			sendAjax("functions.php?PageView=1&currPage="+currPage+"&variables="+variables+"&currMember="+currMember+"&currIp="+currIp+"&currSession="+currSession,processAjax);
			
		}
				
		function IsNumeric(sText) {
		
			var ValidChars = "0123456789.,";
			var IsNumber=true;
			var Char;
		 
			for (i = 0; i < sText.length && IsNumber == true; i++) { 
				Char = sText.charAt(i); 
				if (ValidChars.indexOf(Char) == -1) {
					IsNumber = false;
				}
			}
			
			return IsNumber;
		   
		}

		function nothing() {}
		
		function sendAjax(urlContent,returnFunc) {
		
			if (currLib != '') {
				urlContent	+= "&LibName="+currLib;
			}
		
			/*
			thisWidth = document.getElementById(currDiv).style.width.substring(0,((document.getElementById(currDiv).style.width.length*1)-2))*1;
			thisHeight = document.getElementById(currDiv).style.height.substring(0,((document.getElementById(currDiv).style.height.length*1)-2))*1;
			topPadding = Math.round(thisHeight/2);
			leftPadding = Math.round(thisWidth/2);
			
			document.getElementById(currDiv).innerHTML = '<div align="center" style="padding: '+topPadding+'px 0px 0px '+leftPadding+'px"><img src="'+root_link+'/images/main/ajax_loader.gif"></br></div>';
			*/
			
			createRequest();
			
			//alert(root_link + "/includes/scripts/" + urlContent);
			
			request.open("GET", "/includes/scripts/" + urlContent, true);
			request.onreadystatechange = eval(returnFunc);
			request.send(null);
			/*
			window.clearTimeout(ajaxTimeout);
			ajaxTimeout = window.setTimeout("request.send(null)",500);
			*/
			
		}
		
		function processAjax() {
				
			//alert(request.readyState+' '+request.status);
		
			if(request.readyState == 4) {
				
				if(request.status == 200) {
				
					//alert(trim(request.responseText));
				
					if((document.getElementById(currDiv)) && (trim(request.responseText) != '')) {
						//alert(document.getElementById('hoverMain').innerHTML);
						document.getElementById(currDiv).innerHTML = trim(request.responseText);
						document.getElementById(currDiv).style.visibility = "visible";
						//setOpacity(currDiv,9.7);
						/*
						clearTimeout(opacityTimeoutVar);
						displayOpacity(currDiv,1);
						*/
						//document.getElementById(currDiv).style.visibility = "visible";
						
						if (secondaryFunction != '') {
							eval(secondaryFunction);
							secondaryFunction = '';
						}
						
						if (currAnchor != '') {
							document.location.href = currAnchor;
							currAnchor = '';
						}
						
						tempContent = '';
						loadedContent = 1;
						
						/*
						if (waitFunction != '') {
							eval(waitFunction);	
						}
						*/
						
					}
					
				}
				
			}
		
		}
		
		function pageScroll() {
			getScrollOffset();
			if ((tempY+winH) < 570) {
				window.scrollBy(0,10); // horizontal and vertical scroll increments
				scrolldelay = setTimeout("pageScroll()",20); // scrolls every 100 milliseconds
			}
		}
		
		function trim(stringToTrim) {
			return stringToTrim.replace(/^\s+|\s+$/g,"");
		}
		
		function check_errors(formName,Lang) {
			
			var submitOk = 1;
			var submitAnchor = '';
			var errorContent = 'Please make sure you fill out the fields which are highlighted';
			
			if (formName == 'ContactForm') {
			
				var Name = document.ContactForm.ContactName.value;
				var Email = document.ContactForm.ContactEmail.value;
				var Message = document.ContactForm.ContactMessage.value;
				
				document.getElementById('ContactName').className = 'contactFieldHeader';
				document.getElementById('ContactEmail').className = 'contactFieldHeader';
				document.getElementById('ContactMessage').className = 'contactFieldHeader';
				
				if (Name == '') {
					submitOk = 0;
					document.getElementById('ContactName').className = 'contactFieldHeaderError';
				}
				
				if (Message == '') {
					submitOk = 0;
					document.getElementById('ContactMessage').className = 'contactFieldHeaderError';
				}
				
				if ((Email == '')) {
					submitOk = 0;
					document.getElementById('ContactEmail').className = 'contactFieldHeaderError';
				} else if (!check_email(Email)) {
					submitOk = 0;
					document.getElementById('ContactEmail').className = 'contactFieldHeaderError';
				}
				
			}
			
			if (formName == 'RegisterForm') {
				
				submitAnchor = '#personal';
				
				document.getElementById('fieldLastName').style.color = '#2E4856';
				document.getElementById('fieldFirstName').style.color = '#2E4856';
				document.getElementById('fieldAddress').style.color = '#2E4856';
				document.getElementById('fieldCity').style.color = '#2E4856';
				document.getElementById('fieldPostalCode').style.color = '#2E4856';
				document.getElementById('fieldEmail').style.color = '#2E4856';
				document.getElementById('fieldTelephone').style.color = '#2E4856';
				document.getElementById('fieldBirthHour').style.color = '#2E4856';
				document.getElementById('fieldBirthCity').style.color = '#2E4856';
				document.getElementById('fieldBirthCountry').style.color = '#2E4856';
				document.getElementById('fieldPassword').style.color = '#2E4856';
				document.getElementById('fieldPasswordConf').style.color = '#2E4856';

				var LastName = document.RegisterForm.LastName.value;
				var FirstName = document.RegisterForm.FirstName.value;
				var Address = document.RegisterForm.Address.value;
				var City = document.RegisterForm.City.value;
				var PostalCode = document.RegisterForm.PostalCode.value;
				var Email = document.RegisterForm.Email.value;
				var Telephone = document.RegisterForm.Telephone.value;
				var BirthHour = document.RegisterForm.BirthHour.value;
				var BirthMinutes = document.RegisterForm.BirthMinutes.value;
				var BirthCity = document.RegisterForm.BirthCity.value;
				var BirthCountry = document.RegisterForm.BirthCountry.value;
				var Password = document.RegisterForm.Password.value;
				var PasswordConf = document.RegisterForm.PasswordConf.value;
				
				if (LastName == '') {
					document.getElementById('fieldLastName').style.color = 'red';
					submitOk = 0;
				}
				
				if (FirstName == '') {
					document.getElementById('fieldFirstName').style.color = 'red';
					submitOk = 0;
				}
				
				if (Address == '') {
					document.getElementById('fieldAddress').style.color = 'red';
					submitOk = 0;
				}
				
				if (City == '') {
					document.getElementById('fieldCity').style.color = 'red';
					submitOk = 0;
				}
				
				if (PostalCode == '') {
					document.getElementById('fieldPostalCode').style.color = 'red';
					submitOk = 0;
				}
				
				registerVerifyUser(Email);
				
				if ((Email == '')) {
					submitOk = 0;
					document.getElementById('fieldEmail').style.color = 'red';
				} else if (!check_email(Email)) {
					submitOk = 0;
					document.getElementById('fieldEmail').style.color = 'red';
				} else if (document.RegisterForm.EmailExists) {
					submitOk = 0;
					document.getElementById('fieldEmail').style.color = 'red';
				}
				
				if (Telephone == '') {
					document.getElementById('fieldTelephone').style.color = 'red';
					submitOk = 0;
				}
				
				/*
				if (BirthHour == '00') {
					document.getElementById('fieldBirthHour').style.color = 'red';
					submitOk = 0;
				}
				
				if (BirthMinutes == '00') {
					document.getElementById('fieldBirthHour').style.color = 'red';
					submitOk = 0;
				}
				*/
				
				if (BirthCity == '') {
					document.getElementById('fieldBirthCity').style.color = 'red';
					submitOk = 0;
				}
				
				if (BirthCountry == '') {
					document.getElementById('fieldBirthCountry').style.color = 'red';
					submitOk = 0;
				}
				
				if (Password == '') {
					document.getElementById('fieldPassword').style.color = 'red';
					submitOk = 0;
				}
				
				if ((PasswordConf == '') || (PasswordConf != Password)) {
					document.getElementById('fieldPasswordConf').style.color = 'red';
					submitOk = 0;
				}				
				
			}
			
			if (submitOk == 1) {
				return true;	
			} else {
				
				document.location.href = submitAnchor;
				
				if (document.getElementById('errorMessage')) {
					document.getElementById('errorMessage').style.padding = "10px 0px 10px 0px";
					document.getElementById('errorMessage').innerHTML = errorContent;
				}
				
				if (document.getElementById('ContactFormContent')) {
					document.getElementById('ContactFormContent').style.height = '415px';
				}
				
				return false;
			}
		
		}
		
		
	function defaultField(fieldValue,fieldObject,fieldState) {
		
		//var fieldObject = eval('document.'+fieldForm+'.'+fieldName);
		//fieldForm,fieldName
		
		if ((fieldState == 0) && (fieldObject.value == fieldValue)) {
			fieldObject.value = '';
			if (fieldObject == document.LoginForm.PasswordTemp) {
				document.LoginForm.Password.focus();
				document.getElementById('loginPass1').style.zIndex = 0;
				document.getElementById('loginPass2').style.zIndex = 1;
			}
		} else if ((fieldState == 1) && (fieldObject.value == '')) {
			fieldObject.value = fieldValue;
			if (fieldObject == document.LoginForm.Password) {
				document.LoginForm.PasswordTemp.focus();
				document.LoginForm.PasswordTemp.value = fieldValue;
				document.getElementById('loginPass2').style.zIndex = 0;
				document.getElementById('loginPass1').style.zIndex = 1;
			}
		}
	
	}
	
	function registerVerifyUser(Email) {
		
		currDiv = 'EmailVerify';
		document.getElementById(currDiv).innerHTML = '';
		sendAjax("functions.php?registerVerifyUser=1&Email="+Email,processAjax);
			
	}
	
	function loadProvinces(Country) {
	
		currDiv = 'inputProvinceId';
		sendAjax("functions.php?loadProvinces=1&Country="+Country,processAjax);
			
	}
	
	function fieldType(fieldType,fieldObject) {
		
	}
	
	function shiftLeftMenu(divNum) {
		
		var divName = 'menuLeft'+divNum;
		
		if (currLeftMenu != divNum) {
			
			if (currLeftMenu != -1) {
				document.getElementById('menuLeft'+currLeftMenu+'On').style.zIndex = 0;
				document.getElementById('menuLeft'+currLeftMenu+'Off').style.zIndex = 1;
				document.getElementById('menuLeft'+currLeftMenu+'Off').style.left = "30px";
				document.getElementById('menuLeft'+currLeftMenu+'On').style.left = "0px";
				document.getElementById('menuLeft'+currLeftMenu+'On').style.visibility = "hidden";
				document.getElementById('menuLeft'+currLeftMenu+'Off').style.visibility = "visible";
				moveLeft('menuLeft'+currLeftMenu+'Off',30,0,-5);
				if (document.getElementById('rightContent'+divNum)) {
					document.getElementById('rightContent'+currLeftMenu).style.visibility = "hidden";
					moveLeft('rightContent'+currLeftMenu,0,-620,-103);
				}
			}
			
			currLeftMenu = divNum;
			document.getElementById(divName+'Off').style.visibility = "hidden";
			document.getElementById(divName+'On').style.visibility = "visible";
			document.getElementById(divName+'Off').style.zIndex = 0;
			document.getElementById(divName+'On').style.zIndex = 1;
			moveLeft(divName+'On',0,30,5);
			
			if (document.getElementById('rightContent'+divNum)) {
				document.getElementById('rightContent'+divNum).style.visibility = "visible";
				moveLeft('rightContent'+divNum,-620,0,103);
			}
			
		}
		
	}
	
	function moveLeft(divName,startPos,endPos,offset) {
		
		if (((offset < 0) && (startPos < endPos)) || ((offset > 0) && (startPos > endPos))) {
			document.getElementById(divName).style.left = endPos+"px";
		} else {
			document.getElementById(divName).style.left = startPos+"px";
			window.setTimeout('moveLeft("'+divName+'",'+(startPos+offset)+','+endPos+','+offset+')',50);
		}
	
	}
	
	function setPopup(Width,Height) {
	
		getScrollOffset();
		
		leftOffset	= Math.floor((winW-Width)/2)+tempX;
		topOffset	= Math.floor((winH-Height)/2)+tempY;
		
		if (IE) {
			Width += 18;
		}
		
		document.getElementById('popupShadow').style.left = leftOffset + "px";
		document.getElementById('popupShadow').style.top = topOffset + "px";
		document.getElementById('popupShadow').style.width = Width + "px";
		document.getElementById('popupShadow').style.height = Height + "px";
		
		document.getElementById('popupContent').style.left = (leftOffset+10) + "px";
		document.getElementById('popupContent').style.top = (topOffset+10) + "px";
		document.getElementById('popupContent').style.width = (Width-20) + "px";
		document.getElementById('popupContent').style.height = (Height-20) + "px";
		
		document.getElementById('popupShadow').style.visibility = "visible";
		document.getElementById('popupContent').style.visibility = "visible";
		
		popupOpen = 1;
	
	}
	
	function closePopup() {
		
		document.getElementById('popupShadow').style.left = "0px";
		document.getElementById('popupShadow').style.top = "0px";
		document.getElementById('popupShadow').style.width = "0px";
		document.getElementById('popupShadow').style.height = "0px";
		
		document.getElementById('popupContent').style.left = "0px";
		document.getElementById('popupContent').style.top = "0px";
		document.getElementById('popupContent').style.width = "0px";
		document.getElementById('popupContent').style.height = "0px";
		
		document.getElementById('popupShadow').style.visibility = "hidden";
		document.getElementById('popupContent').style.visibility = "hidden";
		
		document.getElementById('popupContentInside').innerHTML = '';
		
		document.body.style.overflow = "auto";
		
		popupOpen = 0;
		
	}
	
	function displayNewsItem(ItemId) {
		
		//document.body.style.overflow = "hidden";
	
		getScrollOffset();
		
		Width = 600;
		Height = 400;
			
		setPopup(Width,Height);
	
	}
	
	function featureLoader(divName,folder,imageName,counter) {
		
		//alert(divName+counter+" url('"+root_link+"/images/features/"+folder+"/"+imageName+(counter+1)+".jpg')");
		setOpacity(divName+counter,0);
		document.getElementById(divName+counter).innerHTML = '<img src="'+root_link+'/images/features/'+folder+'/'+imageName+(counter+1)+'.jpg"><br>';
		displayOpacity(divName+counter,0,counter);
		
		//document.getElementById(divName+counter).style.backgroudImage = "url('"+root_link+"/images/features/"+folder+"/"+imageName+(counter+1)+".jpg')";
		//alert(document.getElementById(divName+counter).style.backgroudImage);
		if (counter < 4) {
			window.setTimeout("featureLoader('"+divName+"','"+folder+"','"+imageName+"',"+(counter+1)+")",200)	;
		}
		
	}
	
	function moveMenu(loaded) {
		
		if (document.getElementById('topNav')) {
			
			getScrollOffset();
			
			document.getElementById('topNav').style.top = (tempY)+'px';
				
		}
	
	}
	
	function leftNavItem(ItemId,counter,setLink) {
		
		getScrollOffset();
			
		if (setLink == 1) {
			//document.location = '#'+WebsiteId;
		
			var tempElem = document.getElementById('bodyContent').scrollTop;
			var limit = document.getElementById(ItemId).offsetTop;
			
			limit -= 160;	
			
			var tempLimit = document.getElementById('bodyContent').scrollHeight;
			
			//alert(limit + ' '+ (tempLimit-winH));
			
			if (IE) {
				limit += 170;	
			}
			
			if (limit > (tempLimit-winH)) {
				limit = (tempLimit-winH);	
			}
			
			if (tempElem < limit) {
			scrollSmooth(limit,1,15);
			} else {
			scrollSmooth(limit,0,15);
			}
			//window.scrollTo(0,document.getElementById(WebsiteId).offsetTop)
			//window.scrollTo(0);
			//.offset().top
		}
	
		document.getElementById("leftNavLink"+currLeftNav).className = "leftNav";
		currLeftNav = counter;
		document.getElementById("leftNavLink"+currLeftNav).className = "leftNavOn";
	
	}
	
	function scrollSmooth(limit,direction,increment) {
		
		//getScrollOffset();
		
		clearTimeout(scrollTimeout);
		
		increment++;
		
		var tempElem = document.getElementById('bodyContent').scrollTop;
		
		if ((direction == 1) && ((tempElem+increment) < limit)) {
			document.getElementById('bodyContent').scrollTop = (tempElem+increment);
			scrollTimeout = window.setTimeout("scrollSmooth("+limit+","+direction+","+increment+")",5);
		} else if ((direction == 0) && ((tempElem-increment) > limit)) {
			document.getElementById('bodyContent').scrollTop = (tempElem-increment);
			scrollTimeout = window.setTimeout("scrollSmooth("+limit+","+direction+","+increment+")",5);
		} else {
			document.getElementById('bodyContent').scrollTop = (limit);
		}
		
	}
	
	function dispNav(divName) {
		
		//alert(document.getElementById(divName));
			
		if (currNav != '') {
			hideNav(currNav);
		}
		
		if (document.getElementById(divName)) {
			
			clearTimeout(currTimeout);
			
			currNav = divName;
			document.getElementById(divName).style.visibility = "visible";
		
		}
		
	}
	
	function hideNavTimer(divName) {
		
		if (document.getElementById(divName)) {
			currTimeout = window.setTimeout('hideNav(\''+divName+'\')',200);
		}
		
	}
	
	function hideNav(divName) {
		if (document.getElementById(divName)) {
			document.getElementById(divName).style.visibility = "hidden";
		}
	}
	
	function setAmount(num) {
		
		var counter = 1;
		var TotalAmount = 0;
		
		while (eval('document.RegisterForm.ItemPrice_'+counter)) {
			
			if (num == 1) {
				TotalAmount += eval('document.RegisterForm.ItemPriceEuro_'+counter).value*1;
			} else {
				TotalAmount += eval('document.RegisterForm.ItemPrice_'+counter).value*1;
			}
			
			counter++;
			
		}
		
		TotalAmount = TotalAmount.toFixed(2);
		
		if (num == 1) {
			document.RegisterForm.TotalAmount.value = TotalAmount;
			document.getElementById('AmountPrice').innerHTML = TotalAmount;
			document.getElementById('AmountCurrency').innerHTML = '&euro;';
		} else {
			document.RegisterForm.TotalAmount.value = TotalAmount;
			document.getElementById('AmountPrice').innerHTML = TotalAmount;
			document.getElementById('AmountCurrency').innerHTML = '&#36; CAD';
		}
	
	}
	
	function setOnline(ItemId,num) {
		
		var Price = eval('document.RegisterForm.Price_'+ItemId).value*1;
		var PriceEuro = eval('document.RegisterForm.PriceEuro_'+ItemId).value*1;
		
		var ItemCount = eval('document.RegisterForm.ItemCount_'+ItemId).value*1;
		
		var PriceOnline = eval('document.RegisterForm.PriceOnline_'+ItemId).value*1;
		var PriceOnlineEuro = eval('document.RegisterForm.PriceOnlineEuro_'+ItemId).value*1;
	
		if (num == 1) {
			document.getElementById('onlineCourses_'+ItemId).style.height = '30px';
			document.getElementById('onlineCoursesSec_'+ItemId).style.visibility = 'hidden';
			document.getElementById('onlineCoursesSec_'+ItemId).style.top = '0px';
			eval('document.RegisterForm.ItemPrice_'+ItemCount).value = PriceOnline.toFixed(2);
			eval('document.RegisterForm.ItemPriceEuro_'+ItemCount).value = PriceOnlineEuro.toFixed(2);
			eval('document.RegisterForm.CoursesOnlineVideo_'+ItemId).checked = false;
		} else {
			document.getElementById('onlineCourses_'+ItemId).style.height = '60px';
			document.getElementById('onlineCoursesSec_'+ItemId).style.top = '30px';
			document.getElementById('onlineCoursesSec_'+ItemId).style.visibility = 'visible';
			eval('document.RegisterForm.ItemPrice_'+ItemCount).value = Price.toFixed(2);
			eval('document.RegisterForm.ItemPriceEuro_'+ItemCount).value = PriceEuro.toFixed(2);
		}
		
		if (document.RegisterForm.CurrencyId[0].checked) {
			setAmount(0);
		} else {
			setAmount(1);
		}
		
	}
	
	function setOnlineVideo(ItemId) {
		
		var CoursesOnlineVideo = eval('document.RegisterForm.CoursesOnlineVideo_'+ItemId).checked;
		
		var Price = eval('document.RegisterForm.Price_'+ItemId).value*1;
		var PriceEuro = eval('document.RegisterForm.PriceEuro_'+ItemId).value*1;
		
		var ItemCount = eval('document.RegisterForm.ItemCount_'+ItemId).value*1;
		
		var PriceVideo = eval('document.RegisterForm.PriceVideo_'+ItemId).value*1;
		var PriceVideoEuro = eval('document.RegisterForm.PriceVideoEuro_'+ItemId).value*1;
	
		if (CoursesOnlineVideo == true) {
			eval('document.RegisterForm.ItemPrice_'+ItemCount).value = (Price+PriceVideo).toFixed(2);
			eval('document.RegisterForm.ItemPriceEuro_'+ItemCount).value = (PriceEuro+PriceVideoEuro).toFixed(2);
		} else {
			eval('document.RegisterForm.ItemPrice_'+ItemCount).value = Price.toFixed(2);
			eval('document.RegisterForm.ItemPriceEuro_'+ItemCount).value = PriceEuro.toFixed(2);
		}
		
		if (document.RegisterForm.CurrencyId[0].checked) {
			setAmount(0);
		} else {
			setAmount(1);
		}
		
	}
	
	function coursesCalendar(SessionId,Month,Year,ProfilePage) {
		
		//alert(SessionId+' '+Month+' '+Year+' '+ProfilePage);
		
		currDiv = 'coursesCalendar';
		sendAjax("functions.php?coursesCalendar=1&SessionId="+SessionId+"&Month="+Month+"&Year="+Year+"&ProfilePage="+ProfilePage,processAjax);
		 
	}
	
	function workshopsCalendar(WorkshopId,Month,Year,ProfilePage) {
		
		currDiv = 'workshopsCalendar';
		sendAjax("functions.php?workshopsCalendar=1&WorkshopId="+WorkshopId+"&Month="+Month+"&Year="+Year+"&ProfilePage="+ProfilePage,processAjax);
		 
	}
	
	function setPayment(Type) {
		
		if (Type == 1) {
			document.getElementById('paymentCard').style.height = "30px";
			document.getElementById('paymentCheque').style.height = "120px";
		} else if (Type == 2) {
			document.getElementById('paymentCard').style.height = "110px";
			document.getElementById('paymentCheque').style.height = "30px";
		} else {
			document.getElementById('paymentCard').style.height = "30px";
			document.getElementById('paymentCheque').style.height = "30px";
		}
		
	}

	function setCVNImage() {

		for (i = 0; i < 3; i++) {
			if (document.RegisterForm.creditCardType[i].checked == true) {
				currCardType = document.RegisterForm.creditCardType[i].value;
			}
		}

		document.getElementById('CVN-'+currCardType).style.visibility = "visible";
		
	}

	function hideCVNImage() {
		
		for (i = 0; i < 3; i++) {
			if (document.RegisterForm.creditCardType[i].checked == true) {
				currCardType = document.RegisterForm.creditCardType[i].value;
			}
		}

		document.getElementById('CVN-'+currCardType).style.visibility = "hidden";

	}
