// Java Document
      function doOpen(url)
      {
	        // attempt to open the popup
	        win = window.open(url, 'xana', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=650,left = 300,top = 100');
        	if (win)
        	{
        	  // popup successfully created add win.blur(); for a popUNDER
        	} else {
        	  // popup was not created.
        	  showPopupMessage(url);
        	}
        return win;
      }
	  
      function init()
      {
        var win = doOpen('http://webcp.vw01.ws/vwsupop0.php?dlr=LNK');        
      }
	  
      function showPopupMessage(url)
      {
        if (!document.createElement)
	{
	  return;
	}
        var elmDiv = document.createElement('div');
	if (typeof(elmDiv.innerHTML) != 'string')
	{
	  return;
	}
        elmDiv.id  = 'popupmessage';
        elmDiv.style.cssText = 
          'position: absolute; left: 300px; top: 225px;' +
          'width: 350px;' +
          'color: 000099; ' +
          'background-color: white; ' +
          'font-weight: bold; ' +
          'font-size: 14; ' +
          'border: solid black 2px; ' +
          'padding: 1em;';

        var html = '<span class="textsmall">		  ' +
        '<p align="center" class="textnormal"><font color="#CC6600"><strong>Your ' +
        'browser has popup blocking enabled!</strong></font></p>' +
        '<p class="textnormal"><font color="#006699">The <strong>Virtual Weatherman&#8482; ' +
        'WebCP</strong> is a highly specialized small browser window which your ' +
        'blockers have mistakenly identified as a popup advertisement. </font></p>' +
        '<p class="textnormal"><font color="#006699">To prevent future problems accessing ' +
        'your <strong>Virtual Weatherman&#8482;</strong> account, change your browser ' +
        'settings to allow all popups from this site. For general instructions ' +
        'see this <a href="http://webcp.vw01.ws/popupblockerhelp.html" target="_blank"><font color="#006699"><strong>help ' +
        'page</strong></font></a>.</font></p>' +
        '<p align="right" class="textnormal"><a href="#" onclick="win = doOpen(\'' + url + '\'); hidePopupMessage(); return false;"><font color="#CC6600"><strong>Click ' +
        'Here to Display WebCP Now</strong></font></a></p>' +

          '<\/div>';
        document.body.appendChild(elmDiv);
        elmDiv.innerHTML = html;
      }
      function hidePopupMessage()
      {
        var elmDiv = document.getElementById('popupmessage');
        if (elmDiv)
        {
          elmDiv.parentNode.removeChild(elmDiv);
        }
      }
	function get_cookie(Name) {
	  var search = Name + "="
	  var returnvalue = "";
	  if (document.cookie.length > 0) {
	    offset = document.cookie.indexOf(search)
	    if (offset != -1) { // if the cookie exists
	      offset += search.length
	      end = document.cookie.indexOf(";", offset); // set the index of beginning value
	                                                                                
	    if (end == -1) // set the index of the end of cookie value
	         end = document.cookie.length;
	         returnvalue=unescape(document.cookie.substring(offset, end))
	      }
	   }
	  return returnvalue;
	}
