 /* Starting 01-proceduresconsult-lib.js */
 function openlargeimage(fileName) {             
    newWindow = window.open(fileName, "largePlayer","menubar=0,status=0, toolbar=0, location=0, scrollbars=0, resizable=0,width=700,height=640"); 
}

function openloginpopup() {
    var sParms;    
    
 	pagename = "http://proceduresconsult.com/visitorsite/default.aspx?GoogleSEO=True"; 
    //pagename = "http://app.proceduresconsult.com/login.aspx?GoogleSEO=True";    
   //  pagename = "http://proceduresconsult-staging.webinservice.com/login.aspx?GoogleSEO=True";
   //  pagename = "http://localhost/Proceduresconsult/login.aspx?GoogleSEO=True"; 
    sParms = "left=600, top=200, height=160, width=330, scrollbars=yes, titlebar:no, status=no, toolbar:no, menubar=no, location=no";  
    winHandle = window.open(pagename, "login", sParms);    
}

function openLargerImage(fileName) {    
    openloginpopup();
}


function openLargerImageFromContent(refNum, imageName) {
    openloginpopup();
}

function SetPosition(sVal) {    
    openloginpopup();
}   


function Validate()
   {
       //Get the TextBox's value.
       var  strMDConsultHost = "http://www.mdconsult.com/public/search?mdcquery=";
       var txt = document.getElementById("proceduresearch_txtSearch").value;       
      if(txt.length == 0)       
          window.open('http://www.mdconsult.com','','');                  
     else
          window.open(strMDConsultHost + txt ,'','');

   }