<!--
/*
DIVA()
js component for VirtuaWorlds functionality
Version: 1.0
Usage: None
Open Source: No

Source: Tyson Communications
(http://www.tycomm.net)
Author: Tyson Veen
Author URL: http://www.tycomm.net
Authors Email: president@tycomm.net
*/

// Start Menu Script



// End Menu Script
// Start Location Script

function navigation(nav)
{
var navigation= ''
location.href= nav;
}

// End Location Script
// Start GoToUrl Script

function GoToURL(j) {
  window.status=('Connecting....')
  
var URLis;
 URLis = document.connect.Dest.value
  
   if (URLis == "" || URLis.length <= 8)
	   { 
     j.value = "Try Again"
      alert('Please check the address and try again');
         window.status=('Missing data or Invalid. Try again?.')
	   } 
    else
	{
 j.value = "Connecting"   
 var location=("http://" + URLis);
         this.location.href = location;
window.status=('Connecting to ' + URLis + '  Please wait........');
	}
}

//End GoToURL Script
// Start PopUp Window

function popupWindow(url, name) {
  var l = popupWindow.arguments.length;
  var w = "";
  var h = "";
  var features = "";

  for (i=2; i<l; i++) {
    var param = popupWindow.arguments[i];
    if ( (parseInt(param) == 0) || (isNaN(parseInt(param))) ) {
      features += param + ',';
    } else {
      (w == "") ? w = "width=" + param + "," :
        h = "height=" + param;
    }
  }

  features += w + h;
  var code = "popup = window.open(url, name";
  if (l > 2) code += ", '" + features;
  code += "')";
  eval(code);
}

//End PopUp Window

// -->

