function updatecost(){
  document.sendForm.action='/purchase/index.php';
  document.sendForm.submit();
}
 
function submitneon(){
  document.sendForm.action='/purchase/checkout.php';
  document.sendForm.submit();
}
 
function init_Tooltips() {
	
	//Select all anchor tag with rel set to tooltip
	
	$('.question-mark').mouseover(function(e) {  
		
		//Grab the title attribute's value and assign it to a variable  
		var tip = $(this).attr('title');      
		
		//Remove the title attribute's to avoid the native tooltip from the browser  
		$(this).attr('title','');  
		
		//Append the tooltip template and its value  
		$('body').append('<div id="tooltip"><p class="tipBody">' + tip + '</p></div>');       
		if ($.browser.msie && $.browser.version <= 6 ) $('#tooltip').bgIframe();
		
		var myWidth = $('#tooltip').width();
		var newY = e.pageY + 25;
		var newX = e.pageX + 15;
		var windowWidth = $(window).width();
		
		if ((newX + myWidth) > windowWidth) {
			newX = windowWidth - myWidth - 30;
		}
		
		//Set the X and Y axis of the tooltip  
		$('#tooltip').css('top', newY );
		$('#tooltip').css('left', newX );
		
		//Show the tooltip with faceIn effect  
		$('#tooltip').fadeIn('500');  
		//$('#tooltip').fadeTo('10',0.8);  
				
	}).mousemove(function(e) {
		
		var myWidth = $('#tooltip').width();
		var newY = e.pageY + 25;
		var newX = e.pageX + 15;
		var windowWidth = $(window).width();
		
		if ((newX + myWidth) > windowWidth) {
			newX = windowWidth - myWidth - 30;
		}
		
		//Keep changing the X and Y axis for the tooltip, thus, the tooltip move along with the mouse  
		$('#tooltip').css('top', newY );  
		$('#tooltip').css('left', newX );  
			
	}).mouseout(function() {  
		
		//Put back the title attribute's value  
		$(this).attr('title',$('.tipBody').html());  
		
		//Remove the appended tooltip template  
		$('div#tooltip').remove();  
		
	});  
	
}
 
jQuery(document).ready(function($)
{
	init_Tooltips();
});
 

