// * Share An Url Messaging System by Serious Software Solutions and     *
// * JavaScriptDesign.com, Copyright© 1999, 2000 All Rights Reserved.    *
// * This entire Copyright Notice must remain in the source code.        *
// * Licensed to: MindSurf for: Executive LeTip of West LA *

var cL = window.location
var cLp = window.location.pathname

function initArray() {
 for (var i = 0; i < initArray.arguments.length; i++)
 this[i] = initArray.arguments[i];
 this.length = initArray.arguments.length;
}

var chrome = new initArray(
 "menubar",
 "menubar,toolbar",
 "menubar,status,resizable,scrollbars,location",
 "",
 "resizable");

var popUpWin = '';
var winFeatures = '';
var track = '';
function makePopUpWin(name,high,wide,features) {
 winFeatures = features
 if (track == 1 && !popUpWin.closed) {
  popUpWin.close();
  track = 0
 }
   popUpWin = eval("window.open('/share_popup.html?"+name+"|"+ escape(cL) +"','newWin','"+chrome[winFeatures]+",height="+high+",width="+wide+"')");
   if (!popUpWin.opener) popUpWin.opener = self;
   track=1
}

function makePopUpWin2(url,high,wide,features) {
 winFeatures = features
 if (track == 1 && !popUpWin.closed) {
  popUpWin.close();
  track = 0
 }
   popUpWin = eval("window.open('"+url+"','newWin','"+chrome[winFeatures]+",height="+high+",width="+wide+"')");
   if (!popUpWin.opener) popUpWin.opener = self;
   track=1
}

function closePopUpWin() {
// if (popUpWin && !popUpWin.closed)
  popUpWin.close();
  track = 0
}

function rS() {
 var cI = document.srch.jt.selectedIndex
 if (cI > 0) {
  var cK = cLp.lastIndexOf("/") + 1
  var cL2 = cLp.substring(cK, cLp.length)
  var nU = document.srch.jt.options[cI].value
  if (cL2 != nU) {
   window.location = nU
  }
 }
}

