﻿// JScript File
function fOpenWindow()
   {
     var WinId; //Used for the PopUp Windows.
     var iWidth, iHeight;
     var sUrl, strwindow;
	 var MyWidth, MyHeight;
	 //var sUserId= UserId;
	 
	 //The Width & Height of the Window.
	 MyWidth= 975;
	 MyHeight=800;
 
	 //Set PopUp Window Parameters.
	 iWidth= (window.screen.width/2);
	 iWidth= iWidth - (MyWidth/2);
	 iHeight= (window.screen.height/2);
	 iHeight= iHeight - (MyHeight/2);

     //www.vchca.org website, then select the find a doctor grey image for the pop-up.
	 //sUrl= "http://www.vchca.org/pages/find-a-doctor.aspx";

     sUrl= "http://www.valleycareipa.com/vcsipa/vcs_index.asp";
	 
     strwindow = "resizable=1,scrollbars=1, toolbars=0, width=" + MyWidth + ", height=" + MyHeight;
	 strwindow= strwindow + ",directories=0,status=0,menubar=0,top=" + iHeight + ",left=";
	 strwindow= strwindow + iWidth + ",screenX=" + iWidth + ",screenY=" + iHeight;
   
     //Note: the window.open function only allows text with no empty spaces or no popup window will appear.
	 WinId = window.open(sUrl, "Valley_Care_Select_IPA", strwindow);
   
	 WinId.focus();
   }

