﻿// JScript File

function ViewEprescribe()
{  
   
   document.getElementById('eprescribe').style.display = "none";
   document.getElementById('samplemed').style.display = "none";
   document.getElementById('medrecon').style.display = "none";
   document.getElementById('eprescribe').style.display = "inline";
 
	/*eprescribe.style.display = "none";
	samplemed.style.display = "none";
	medrecon.style.display = "none" ; 
	eprescribe.style.display = "inline";
*/	
	 
}

function ViewSamplemed()
{
    document.getElementById('eprescribe').style.display = "none";
    document.getElementById('samplemed').style.display = "none";
    document.getElementById('medrecon').style.display = "none";
    document.getElementById('samplemed').style.display = "inline";
    
    /*
	eprescribe.style.display = "none";
	samplemed.style.display = "none";
	medrecon.style.display = "none" ; 
	samplemed.style.display = "inline";
*/	
	 
}

function ViewMedrecon()
{
document.getElementById('eprescribe').style.display = "none";
document.getElementById('samplemed').style.display = "none";
document.getElementById('medrecon').style.display = "none";
document.getElementById('medrecon').style.display = "inline";
/*
	eprescribe.style.display = "none";
	samplemed.style.display = "none";
	medrecon.style.display = "none" ; 
	medrecon.style.display = "inline";
*/	 
}

function SwapImage(oId,oFileName)
{
	document.getElementById(oId).src = oFileName
}
 
 function ClearMessage(othis,oControlToClear)
 {
  if (document.getElementById(oControlToClear) != null)
  {
    document.getElementById(oControlToClear).innerText=""
     
  }
 } 

//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ 
 

function ViewPatient()
{
	document.getElementById('Patients').style.display = "none";
    document.getElementById('Prescibers').style.display = "none";
    document.getElementById('Pharmacists').style.display = "none";
    document.getElementById('HealthPlans').style.display = "none";
    document.getElementById('Patients').style.display = "inline";

/*

	Patients.style.display = "none";
	Prescibers.style.display = "none";
	Pharmacists.style.display = "none" ;
	HealthPlans.style.display = "none" ;  
	Patients.style.display = "inline";
*/	 

}

function ViewPrescriber()
{
document.getElementById('Patients').style.display = "none";
document.getElementById('Prescibers').style.display = "none";
document.getElementById('Pharmacists').style.display = "none";
document.getElementById('HealthPlans').style.display = "none";
document.getElementById('Prescibers').style.display = "inline";
 
 /*
	Patients.style.display = "none";
	Prescibers.style.display = "none";
	Pharmacists.style.display = "none" ; 
	HealthPlans.style.display = "none" ;  
	Prescibers.style.display = "inline";
*/
	 
}

function ViewPharmacist()
{
	document.getElementById('Patients').style.display = "none";
    document.getElementById('Prescibers').style.display = "none";
    document.getElementById('Pharmacists').style.display = "none";
    document.getElementById('HealthPlans').style.display = "none";
    document.getElementById('Pharmacists').style.display = "inline";


/*
	Patients.style.display = "none";
	Prescibers.style.display = "none";
	Pharmacists.style.display = "none" ; 
	HealthPlans.style.display = "none" ;  
	Pharmacists.style.display = "inline";
*/	
	 
}

function ViewHealthPlan()
{
	document.getElementById('Patients').style.display = "none";
	document.getElementById('Prescibers').style.display = "none";
	document.getElementById('Pharmacists').style.display = "none";
	document.getElementById('HealthPlans').style.display = "none";
	document.getElementById('HealthPlans').style.display = "inline";
	
/*
	Patients.style.display = "none";
	Prescibers.style.display = "none";
	Pharmacists.style.display = "none" ; 
	HealthPlans.style.display = "none" ;  
	HealthPlans.style.display = "inline";
*/

	 
}
function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}


// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header

function printWindow(){
   var bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print();
}

function ViewMedErrors()
{
        OfficeEfficiency.style.display = "none";
        CustomerSupport.style.display = "none" ; 
        AboutMedicationErrors.style.display = "inline";
        
}
function ViewOfcEff()
{
        AboutMedicationErrors.style.display = "none";
        CustomerSupport.style.display = "none" ; 
        OfficeEfficiency.style.display = "inline";
        
}
function ViewCustSupp()
{   
    AboutMedicationErrors.style.display = "none" ; 
        OfficeEfficiency.style.display = "none";
        CustomerSupport.style.display = "inline";
         
}

/***********************************************
 CODE FOR TURNING SPAN TAGS VISIBLE AND INVISIBLE 
 **********************************************
function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}*/

