var cpv
function bxOver(c) 		{c.style.color='#FF9900'; c.style.cursor='pointer'; c.style.textDecoration='underline'}
function bxOut(c)  		{c.style.color='#000000'; c.style.cursor='default'; c.style.textDecoration='none'}
function AjxSbm(url,id) {if(document.getElementById(id)){var xmlHttp = false; try {xmlHttp = new ActiveXObject("Msxml2.XMLHttp")} catch(e){try {xmlHttp = new ActiveXObject("Microsoft.XMLHttp")} catch(e){xmlHttp = false}}; if(!xmlHttp && typeof XMLHttpRequest != 'undefined'){xmlHttp = new XMLHttpRequest()}; xmlHttp.open('post',url); if(id != undefined){var obj = document.getElementById(id); if(!document.getElementById('WinPop')){obj.innerHTML = '<img src="../images/ajax/loading-data.gif" width="13" height="13" border="0" alt="" hspace="10">'}; xmlHttp.onreadystatechange = function(){if (xmlHttp.readyState == 4 && xmlHttp.status == 200){obj.innerHTML = xmlHttp.responseText; if(document.getElementById('WinPop')){document.getElementById('WinPop').style.visibility='hidden'; document.getElementById('WinPop').style.width='678px'; CenterPop(); WinPopFade()}}}}; xmlHttp.send(null)}}

function WHXYPos()		{winX=document.body.scrollLeft; winY=document.body.scrollTop; winH=document.body.clientHeight; winW=document.body.clientWidth;}
function iView(q)		{if(document.getElementById('GreyOut')){return false}; window.focus(); WHXYPos(); tbody=document.getElementsByTagName("body")[0]; if(navigator.appName=="Microsoft Internet Explorer"){Iframe=document.createElement('iframe'); opacity=0;opaque=(opacity/100); Iframe.id='Iframe'; Iframe.style.position='absolute'; Iframe.style.left=winX;Iframe.style.top=winY;Iframe.style.height=winH;Iframe.style.width=winW; Iframe.style.zIndex=40;Iframe.style.opacity=opaque;Iframe.style.MozOpacity=opaque;Iframe.style.filter='alpha(opacity='+opacity+')';tbody.appendChild(Iframe)}; GreyOut=document.createElement('div'); opacity=70;opaque=(opacity/100); GreyOut.id='GreyOut'; GreyOut.style.backgroundColor='#000000'; GreyOut.style.position='absolute'; GreyOut.style.left=winX; GreyOut.style.top=winY; GreyOut.style.height=winH; GreyOut.style.width=winW; GreyOut.style.zIndex=50; GreyOut.style.opacity=opaque; GreyOut.style.MozOpacity=opaque; GreyOut.style.filter='alpha(opacity='+opacity+')'; tbody.appendChild(GreyOut); WinPop=document.createElement('div'); WinPop.id='WinPop'; WinPop.style.position='absolute'; WinPop.style.left=winX; WinPop.style.top=winY; WinPop.style.zIndex=60; tbody.appendChild(WinPop); WinPop = document.getElementById('WinPop'); WinPop.innerHTML='<div style="text-align:center" title="Loading..."><br><img src="../images/ajax/loading-winpop.gif" width="24" height="24" border="0" alt="Loading..." vspace="10"><br><img src="../images/ajax/loading-text.gif" width="46" height="5" border="0" alt=""></div>'; CenterPop(); RefreshPos(); setTimeout("AjxSbm('actions.asp?pg="+ q +"','WinPop')",500)}
function WinPopFade(f)	{if(document.getElementById('WinPop')){if(f==undefined){f=0; WinPop.style.visibility='visible'}; opacity=f; opaque=(opacity/100); WinPop.style.opacity=opaque; WinPop.style.MozOpacity=opaque; WinPop.style.filter='alpha(opacity='+opacity+')'; if(f==120){clearTimeout(t); return false}; n = f + 20; var t = setTimeout('WinPopFade(n)',10)}}
function CenterPop()	{if(document.getElementById('WinPop')){ScreenH = winH; ScreenW = winW; WinPopH = WinPop.offsetHeight+6; WinPopW = WinPop.offsetWidth; if(ScreenH > WinPopH && ScreenW > WinPopW){TopStay=0; LeftStay=0; WinPop.style.top = (ScreenH - WinPopH) / 2 + document.body.scrollTop; WinPop.style.left = (ScreenW - WinPopW) / 2 + document.body.scrollLeft; WinPop.style.padding='0px'; stay=0} else if(ScreenH < WinPopH && ScreenW < WinPopW){if(LeftStay==0){WinPop.style.left='0px'; WinPop.style.top=document.body.scrollTop}; LeftStay=1} else{if(ScreenH > WinPopH){WinPop.style.left='0px'; WinPop.style.top = (ScreenH - WinPopH) / 2 + document.body.scrollTop} else if(ScreenW > WinPopW){WinPop.style.left=(ScreenW - WinPopW) / 2 + document.body.scrollLeft;}}}}
function ClosePop()		{var tbody = document.getElementsByTagName("body")[0]; if(!document.getElementById('Iframe')){clearTimeout(NsFx)}; if(document.getElementById('Iframe')){tbody.removeChild(document.getElementById('Iframe'))}; if(document.getElementById('GreyOut')){tbody.removeChild(document.getElementById('GreyOut'))}; if(document.getElementById('WinPop')){tbody.removeChild(document.getElementById('WinPop'))};}
function RefreshPos()	{WHXYPos(); CenterPop(); if(document.getElementById('Iframe')){Iframe=document.getElementById('Iframe'); Iframe.style.left=winX; Iframe.style.top=winY; Iframe.style.height=winH; Iframe.style.width=winW;}; if(document.getElementById('GreyOut')){GreyOut=document.getElementById('GreyOut'); GreyOut.style.left=winX; GreyOut.style.top=winY; GreyOut.style.height=winH; GreyOut.style.width=winW;}; if(!document.getElementById('Iframe') && document.getElementById('GreyOut')){NsFx = setTimeout("RefreshPos()",100)}}
function Esc(e)			{if(document.getElementById('GreyOut')){evt=(e) ? e : window.event;if(evt.keyCode==27){ClosePop()}}}
document.onkeydown = Esc; window.onscroll = RefreshPos; window.onresize = RefreshPos;

var PthSite = "http://www.curbellelectronics.com"
var PthLnks = "http://www.curbellelectronics.com/PatientMonitoringProducts"
var PrdLnks = ("<div id='TopLinks' align='center' style='margin-bottom:10px;'>"+
"<a href='"+ PthLnks +"/ecg_cables'>ECG Cables</a> | "+
"<a href='"+ PthLnks +"/ecg_leads'>ECG Leads</a> | "+
"<a href='"+ PthLnks +"/spo2_probes'>SP02 Probes</a> | "+
"<a href='"+ PthLnks +"/spo2_adaptors'>SP02 Adaptors</a> | "+
"<a href='"+ PthLnks +"/nibp_cuffs'>NIBP Cuffs</a> | "+
"<a href='"+ PthLnks +"/simcube'>Simcube</a> | "+
"<a href='"+ PthLnks +"/cord_caddy'>Cord Caddy</a> | "+
"<a href='"+ PthLnks +"/secure_mount'>Secure Mount</a> | "+
"<a href='"+ PthLnks +"/monitor_arms/?pg=vs'>Monitor Arms</a> | "+
"<a href='"+ PthLnks +"/power_cords'>Power Cords</a></div>")

function TopLinks(c){x = 1; var obj = document.getElementById('TopLinks').getElementsByTagName('a'); for(i=0; i<obj.length; i++){if(x==c){obj[i].style.color = '#FF9900'}; x = 1 + x}}

var TopLnks	= '<div id="mainnav"><a href="'+ PthSite +'">HOME</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="'+ PthSite +'/press_releases.html">NEWS</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="'+ PthSite +'/products.html">PRODUCTS</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="'+ PthSite +'/about.html">ABOUT CURBELL</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="'+ PthSite +'/technical.html">TECHNICAL INFO</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="'+ PthSite +'/contact.html">CONTACT US</a></div><img src="'+ PthLnks +'/images/top.gif" width="702" height="71" border="0" alt="">'

function PrdSrh()
{
if(document.sform.q.value == 'Curbell or OEM'){return false;}
else{FrmTrk(document.sform.q.value); window.location='../s/?q='+ document.sform.q.value}
return false;
}

function PrdSrh_()
{
if(document.sform.q.value == 'Curbell or OEM'){return false;}
else{FrmTrk(document.sform.q.value); window.location='s/?q='+ document.sform.q.value}
return false;
}

function q_clear(v)
{
if(v.value=='' || v.value=='Curbell or OEM')
{
v.className = 'pnn'
v.value = ''
}
}

function q_check(v)
{
if(v.value==''){v.className = 'png'; v.value = 'Curbell or OEM'}
}

