var lastid ="blank";
var cl = "";
var cur_field;
if ( window.navigator.appName  == "Microsoft Internet Explorer"){
		cl = "className";
	}
	else{
		cl = "class";
	}//



function showLink(id){
document.getElementById(id).style.cursor="pointer";
var font_node = document.getElementById(id).childNodes[0].childNodes[0];
 hrefValue = (document.getElementById(id).childNodes[0]).getAttribute('href',1);

if (lastid == 'blank'){}
else{
	var oldfont_node = document.getElementById(lastid).childNodes[0].childNodes[0];
	oldfont_node.setAttribute(cl, 'nav');
}

//define variables
font_node.setAttribute(cl, 'nav2');
lastid = id;
window.status= hrefValue;
}//



function Checkenquiry(current_form){
  		for(var counter=0; counter < current_form.length;){
                   	 cur_field = current_form[counter].value;  
                         if (cur_field == "" || cur_field == null || cur_field == "Please type your enquiry here!"){
				
				counter = (current_form.length) + 1;}
			else{counter++;
			 }
		}

		if (counter == current_form.length + 1){
			confirm("all fields must be populated before request can be actioned");
			}
		else{
			current_form.submit();
		}
	}// end of CheckData()




function Checkbooking(booking_form){
/*
  		for(var counter=0; counter < current_form.length;){
                   	 cur_field = current_form[counter].value;  
                         if (cur_field == "" || cur_field == null){
				
				counter = (current_form.length) + 1;}
			else{counter++;
			 }
		}

		if (counter == current_form.length + 1){
			confirm("all fields must be populated before request can be actioned");
			}
		else{
			current_form.submit();
		}*/
booking.submit();
	}// end of CheckData()







