	function sendEmail(){
		tb_open_new('lms/submit.html?height=150&width=550&modal=true');
		toggleEmail();
		return false;
	}

	function toggleEmail(){
		$('#emailFriend').toggle();
		
		if( $('#emailLink').is('.active') )
			$('#emailLink').removeClass('active');
		else
			$('#emailLink').addClass('active');
	}
		
	function toggleSolutions(x){
		
		if($('#viewal').attr('checked') && x==1){
			$('#supplychai').attr('checked',true);
			$('#transportaion').attr('checked',true);
			$('#warehousin').attr('checked',true);
		}else if(!$('#viewal').attr('checked') && x==1){
			$('#supplychai').attr('checked',false);
			$('#transportaion').attr('checked',false);
			$('#warehousin').attr('checked',false);
		}
		
		if(x==0 && $('#supplychai').attr('checked') && $('#transportaion').attr('checked') && $('#warehousin').attr('checked'))
			$('#viewal').attr('checked',true);
			
			
		if($('#supplychai:checked').val() != null){
			//$('#solution_1').show();
			$('.solution_1').show();
		}else{
			$('.solution_1').hide();
			$('#viewal').attr('checked',false);
		}
		
		if($('#transportaion').attr('checked')){
			$('.solution_2').show();
		}else{
			$('.solution_2').hide();
			$('#viewal').attr('checked',false);
		}
		
		if($('#warehousin').attr('checked')){
			$('.solution_3').show();
		}else{
			$('.solution_3').hide();
			$('#viewal').attr('checked',false);
		}
	}
		
	function fontSize(x){
		
		$('#textSize1').parent().removeClass('active');
		$('#textSize2').parent().removeClass('active');
		$('#textSize3').parent().removeClass('active');
		$('#textSize4').parent().removeClass('active');
		$('#textSize'+x).parent().attr('class','active');
		
		var currentFontSize;
		var $cookie_font = "textsize";
		
		switch(x)
		{
		case 1:
		  currentFontSize = '12px';
		  break;    
		case 2:
		  currentFontSize = '14px';
		  break;
		case 3:
		  currentFontSize = '16px';
		  break;
		case 4:
		  currentFontSize = '18px';
		  break;
		default:
		  currentFontSize = '16px';
		  
		}
		
		//var currentFontSize = $('html').css('font-size');
		var currentFontSizeNum = parseFloat(currentFontSize, 10);
		var newFontSize = currentFontSizeNum*1.2;

		$.cookie("font", newFontSize);
		$.cookie("x", x);
		$('html').css('font-size', newFontSize);
		
		ToggleTextSize();
	}
	
	function ToggleTextSize(){
		$('#textAdjust').toggle();
	}
			

