
	function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=no,scrolling=no,location=0,statusbar=0,menubar=0,title=0,resizable=0,width=560,height=580, screenX=0,screenY=0,top=20,left=20');");
}

	function popUp2(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,scrolling=yes,location=0,statusbar=0,menubar=0,title=0,resizable=0,width=780,height=500, screenX=0,screenY=0,top=20,left=20');");
}

	function popUp3(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,scrolling=yes,location=0,statusbar=0,menubar=0,title=0,resizable=0,width=560,height=500, screenX=0,screenY=0,top=20,left=20');");
}

function popUpMovie(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=no,scrolling=no,location=0,statusbar=0,menubar=0,title=0,resizable=0,resize=0,width=350,height=300, screenX=0,screenY=0,top=20,left=20');");
}

function leaving()
	{
	alert ("You are now leaving www.orencia.com. This site may provide links or references to other Websites not affiliated with Bristol-Meyers Squibb. Bristol-Meyers Squibb is not responsible for the content of such other sites and shall not be liable for any damages or injury arising from users' access to such sites. Links to other sites are provided only as a convenience to users of our site.")
	}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
var preloadFlag = true;
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}


function preloadImages() {
	//alert(' Preload of Images Entered ');
	if (document.images) {
		home_health_over = newImage("/PublishingImages/HCP/home_health_over.gif");
		preloadFlag = true;
	}
}


  function showhidefield()
  {
    if (document.frm.chkbox.checked)
    {
      document.getElementById("arava").style.visibility = "visible";
    }
    else
    {
      document.getElementById("arava").style.visibility = "hidden";
    }
  }

var Pic = new Array

Pic[0] = '/PublishingImages/HCP/button_agree.gif'
Pic[1] = '/PublishingImages/HCP/button_agree_over.gif'

var p = Pic.length
var preLoad = new Array()
var i = 0;
for (i = 0; i < p; i++){
     preLoad[i] = new Image()
     preLoad[i].src = Pic[i]
}


function switchImage(whichImage,imageNumber){
   document.images[whichImage].src = preLoad[imageNumber].src
}


function doSubmit(){

   window.location='screener_error.shtml'
   self.focus()

}

function leaveSite(site) {
var message = 'You are about to temporarily leave ORENCIA.com by opening a new web page.\n\nThe site we are linking to is not controlled or endorsed by Bristol-Meyers-Squibb/Sanofi-Synthelabo and we are not responsible for the content presented on that site.';
   if (confirm(message) == 1) {

      window.open(site, 'perceptions','toolbar=yes,width=600,height=400,directories=no,status=no,scrollbars=yes,resizable=yes,menubar=yes')
      //window.open(site)
   }
}
function popup_window2(popup_url,popup_width,popup_height){
	var pwin2;
	window.resizeTo(popup_width,popup_height);
	pwin2 = window.open(popup_url,"newWindow","scrollbars=yes,scrolling=yes,resizable=yes,width="+popup_width+",height="+popup_height+",left=0,top=100");
	}

function replaceDoc()
  {
  window.location.replace("www.esourcefororencia.com/index.html")
  }

 function addToFavorites()
 {
  var urlAddress = window.location;
  var pageName = "Orencia HCP";
  var browser=navigator.appName
  if (browser=="Microsoft Internet Explorer"){ 
   window.external.AddFavorite(urlAddress,pageName);
  }else{
   alert("Please don't forget to bookmark this page.");
  }
 }
 var ext_url;
 function goexternal(){
	var full_url = window.location.href;
	ext_url = full_url.split("=");
	if (ext_url.length !=0)
	{	
    window.open(ext_url[1],"new");
	}
}

function leaving_popup(popup_url,popup_width,popup_height){
	var pwin3;
	pwin3 = window.open(popup_url,"newWindow","width="+popup_width+",height="+popup_height+",left=0,top=100");
}
