// Copyright Acro Media Inc. 1998-2004, www.acromediainc.com

var preloaded = 0;
var newWin;
sendtoafriendPage = dirDepth+"sendtoafriend.asp";

function sendToAFriend(){
	var refURL;
	refURL = sendtoafriendPage + "?refUrl="+document.location;
	openUp(refURL, 340, 280);

}

function go(goUrl){
	var openUrl;
	
	openUrl = dirDepth + "goConfirm.htm?page="+goUrl;
	openUp(openUrl, 444, 322);
}

function openUp(windowURL, windowWidth, windowHeight) {
  var topPos = "";
  var leftPos = "";
  if(!windowWidth) windowWidth = 0;
  if(!windowHeight) windowHeight = 0;
  if(windowWidth == 0){
    if(screen){
      windowWidth = screen.availWidth -10;
    }
    else{
      windowWidth = 790;
    }
    leftPos = ",left=0";
  }
  if(windowHeight == 0){
    if(screen){
      windowHeight = screen.availHeight -30;
    }
    else{
      windowHeight = 790;
    }
    topPos = ",top=0";
  }


  newWin = window.open(windowURL,"firstreliance","toolbar=no,menubar=0,width="+windowWidth+",height="+windowHeight+topPos+leftPos+",scrollbars=no,resizable=yes");

  if(javascript_version > 1.0){
    setTimeout('newWin.focus();',100);
  }
}
