	
/* news, match reports and shop search */
	$('#searchtxt').focus(function() {
		if($(this).val() == 'search news' || $(this).val() == 'search match reports' || $(this).val() == 'shop search')
			$(this).val('');	
	});
	
	
/* search box onblur action */	
	$('#searchtxt').blur(function() {
		if($(this).val() == '')
		
		href = document.location.href;
		split_href = href.split("&");
		
		if (split_href[1] == 'type=news')   
			$('#searchtxt').val('search news');	
		
		if (split_href[0] == 'http://dev.codestorm.co.uk/navyrugby/?page=shop')   
			$('#searchtxt').val('shop search');
			
		if (split_href[1] == 'type=match_report')   
			$('#searchtxt').val('search match reports');	
		
	});
	

/* hide delivery is different checkbox if isBFPO field is checked */
$("#isBFPO").click(function()
{
   if ($("#isBFPO").is(":checked"))
     {
   	    //hide delivery is different checkbox
		$("#del_diff").hide("fast");
     }
   else
     {
	 	//hide delivery is different checkbox
		$("#del_diff").show("fast");
	 }
});


/* hide delivery is different checkbox if isBFPO field is checked */
$("#delivery_is_different").click(function()
{
   if ($("#delivery_is_different").is(":checked"))
     {
   	    //hide delivery is different checkbox
		$("#BFPO_del").hide("fast");
     }
   else
     {
	 	//hide delivery is different checkbox
		$("#BFPO_del").show("fast");
	 }
});



