

 $(document).ready(function(){
	
		gmaps_initialise();

	$("form#contactUs").validate();


 });
 

function roundTo(num, dec) {
	var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);
	return result;
}

function gmaps_initialise() {

	//dummy
}

function GUnload() {

	//dummy
}


function decToDeg(theDecVal)
{
	
	var theDec = Math.abs(theDecVal * 1000000);
	if (theDecVal < 0)
		signlat = -1;
	else
		signlat = 1;
		
	return ((Math.floor(theDec / 1000000) * signlat) + '&deg; ' + 
	         Math.floor(  ((theDec/1000000) - 
	         Math.floor(theDec/1000000)) * 60)  + '\' ' +  ( 
	         Math.floor(((((theDec/1000000) - 
	         Math.floor(theDec/1000000)) * 60) - 
	         Math.floor(((theDec/1000000) - 
	         Math.floor(theDec/1000000)) * 60)) * 100000 * 60/1000 )) / 100 + '"'  ); 
}
