var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=10;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
function check_contact_form()

				{

				if (!document.form_contact.name.value)

					{

					alert('Please enter your Name.');

					document.form_contact.name.focus();

					return false;

					}		

				if (!document.form_contact.phone.value)

					{

					alert('Please enter your telephone Number.');

					document.form_contact.phone.focus();

					return false;

					}

				if (!document.form_contact.email.value)

					{

					alert('Please enter your email.');

					document.form_contact.email.focus();

					return false;

					}

	if (!document.form_contact.message.value)

					{

					alert('Please enter your message.');

					document.form_contact.message.focus();

					return false;

					}

				}
 //<![CDATA[

     function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(53.815707056700,-3.049185570728), 16);

        // Our info window content
        var infoTabs = [
          new GInfoWindowTab("Fairview Blackpool", "<table border=\"0\" cellspacing=\"3\" cellpadding=\"2\" bgcolor=\"#FFFFFF\" align=\"center\"><tr><td colspan=\"2\"><font id=\"ten\"><b>Fairview Hotel</a></b></font></td></tr><td><img src=\"http://www.albahotels.com/hotels/photos/521963_0.jpg\" width=\"80\" height=\"80\" border=\"1\"></td><td><font id=\"ten\">113 Albert Road<br>Blackpool FY1 4PW<br>Tel: 01253 623741</font></td></tr></table>")
        ];

        // Place a marker in the center of the map and open the info window
        // automatically
        var marker = new GMarker(map.getCenter());
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowTabsHtml(infoTabs);
        });
        map.addOverlay(marker);
        marker.openInfoWindowTabsHtml(infoTabs);
      }
    }

    //]]>
