function menu(which,counter)
{flag=true;if(document.getElementById("divSub"+which).style.display=="")flag=false;for(i=0;i<counter;i++){document.getElementById("divSub"+i).style.display="none";imgtmp=eval("document.imgA"+i);imgtmp.src="images/foldoutmenu_arrow.gif";}
if(flag)
{document.getElementById("divSub"+which).style.display="";imgtmp=eval("document.imgA"+which);imgtmp.src="images/foldoutmenu_arrow_open.gif";}
return false;}
function chk_validate1()
{d=document.frmsearch1;if(d.txtemail.value=="")
{alert("Please Enter E-Mail");d.txtemail.focus();return false;}
if(d.txtpwd.value=="")
{alert("Please Password");d.txtpwd.focus();return false;}}
function show_me(idid)
{var test_cst=document.getElementById("divTop_"+idid).style.display;if(test_cst=="none")
document.getElementById("divTop_"+idid).style.display="";else
document.getElementById("divTop_"+idid).style.display="none";}
function dropmenu(){document.getElementById('dropmenu').style.display="none";}function dropmenudisplay(){document.getElementById('dropmenu').style.display="block";}
function check()
{var search_string=document.getElementById('searchd').value;if(search_string=="")
{alert("Please Enter Search Criteria");document.getElementById('searchd').focus();return false;}
else{document.search_box.submit();}}
function getCookie(NameOfCookie)
{if(document.cookie.length>0)
{begin=document.cookie.indexOf(NameOfCookie+"=");if(begin!=-1)
{begin+=NameOfCookie.length+1;end=document.cookie.indexOf(";",begin);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(begin,end));}}}
function Open_FlashVideo(){ var strWidth=screen.width; 
var strHeight=screen.height;
window.open("/how_to_buy.html","MyWindow","menubar=0,resizable=1,scrollbars=1,location=0,width=1000,height=700px");}

function openfeedback (url) {
var xc=window.open("/"+url,"Nobledrugstore","resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no,width=560,height=610,top=10");
//var xc=window.open("http://vertical.local:8888/noble/"+url,"Nobledrugstore","resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no,width=560,height=500,top=10");
if(xc)
{
	xc.focus();
}
}

