
function highlight(button) {
    document.forms.Map.Area.value = button;
}
function highlight1() {
    document.forms.Map.Area.value = "Click on the Map for Further Details"
}

function back(){
   history.go(-1);return "";
}
function back2(){
 if (history.go > 1) {
   history.go(-2);return "";
 }
}

function launchvn(extUrl) {
 WindowSize = "height=600,"
 + "width=1000,";
 Name = "LaunchVN";
 extUrl = extUrl;
 openwin(extUrl,WindowSize,Name);
}

function launch(extUrl) {
 WindowSize = "height=500,"
 + "width=700,";
 Name = "Launch";
 extUrl = extUrl;
 openwin(extUrl,WindowSize,Name);
}

function launch_ad(extUrl) {
 WindowSize = "height=205,"
 + "width=380,";
 Name = "PopUp";
 extUrl = extUrl;
 openwin(extUrl,WindowSize,Name);
}

function openwin(extUrl,WindowSize,Name) {
 extArgs1 = WindowSize
 + "location=0,"
 + "menubar=1,"
 + "resizable=1,"
 + "scrollbars=yes,"
 + "titlebar=1,"
 + "toolbar=0,"
 + "hotkeys=0,"
 + "screenx=1,"
 + "screeny=1,"
 + "left=10,"
 + "top=10,";
 intSvr=document.location.hostname;
 if ( intSvr == "localhost" ){
   intSvr = intSvr + "/villagenet";
 }   
 intUrl=window.location.pathname;
 extUrl = "http://" + intSvr + "/php/i/PAGE-GenericWebsiteLink.php?LINK=" + extUrl + "&VN=" + intUrl;
 NewWin = window.open(extUrl,Name,extArgs1);
 NewWin.focus();
}

function submitit(Button1,Button2){
  Value1 = Button1.replace(" |\t|\n","");
  Value2 = Button2.replace(" |\t|\n","");
  document.forms.BlockName.FieldName.value = Value1;
  document.forms.BlockName.FieldName1.value = Value2;
  document.forms.BlockName.submit();
}
function submitURL(PostTo){
  document.forms.BlockName.action = PostTo;
} 
function submitJump(PostTo){
  Post2 = PostTo.replace(" |\t|\n","");
  document.forms.BlockName.action = Post2;
  document.forms.BlockName.submit();
} 
