function popup(url, gen, yuk){
	EWin = eval(window.open("","quoted","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=" + gen + ",height=" + yuk + ",screenX=5,screenY=5,top=5,left=5"));
	EWin.location.href = url;
	EWin.focus();
}

function popup_toolbar(url, gen, yuk){
	EWin = eval(window.open("","quoted","toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=" + gen + ",height=" + yuk + ",screenX=5,screenY=5,top=5,left=5"));
	EWin.location.href = url;
	EWin.focus();
}

function popup_chat( site ) {
	var link = 'http://64.3.166.134:1000/ModeratedChat/Audience/Initialize.cfm?SiteName=' + site;
	var height = 600;
	var width = 700;
	EWin = eval(window.open("chat","quoted","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=" + width + ",height=" + height + ",screenX=5,screenY=5,top=5,left=5"));
	EWin.location.href = link;
	EWin.focus();
}

function popup_disclaimer(url){
	if(! confirm('You are about to visit a website outside of the Body1 network. Neither Body1, Inc. nor its sponsors can be held responsible or liable for any content found on other sites. Please familiarize yourself with this other website\047s Privacy Policy as it differs from ours.  To return to Reflux1.com, click the \047Cancel\047 button.')) return;
	EWin = eval(window.open("","quoted","toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizeable=1"));
	EWin.location.href = url;
	EWin.focus();
}

function newPopup_haem()
{
	surveywindow=window.open('/care/haem_surv.cfm', 'surveywin', "scrollbars=yes,menubar=no,toolbar=no,status=no,width=488,height=500,resizable=no")
}

function newPopUp()
{
	adwindow=window.open("/common/ad_during_chat.cfm", 'vidwin', "scrollbars=no,menubar=no,toolbar=no,status=no,width=200,height=250,resizable=no")
}


function newPopUp_inside(url,name)       
{    
pressWin =        window.open(url,name,"scrollbars=no,menubar=no,toolbar=no,status=no,width=210,height=305,resizable=yes")
} 


function ChatLogin() {

window.open("//chatcfm/chatformpopup.cfm", 'Chat', 'STATUS=NO,TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,COPYHISTORY=NO,MENU=NO,RESIZABLE=NO,SCROLLBARS=NO,TOP=50,LEFT=20,WIDTH=600,HEIGHT=400');
	
}


function win() {
window.open("//journals/journals.cfm","","height=280,width=320,left=80,top=80");
		
}



/*
//Pop-over only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause popover to load every time page is loaded
var once_per_session=1


///No editing beyond here required/////

function get_cookie(Name) {
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0) {
offset = document.cookie.indexOf(search)
if (offset != -1) { // if cookie exists
offset += search.length
// set index of beginning of value
end = document.cookie.indexOf(";", offset);
// set index of end of cookie value
if (end == -1)
end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}


function loadornot(){
if (get_cookie('popover')==''){
loadpopover()
document.cookie="popover=yes"
}
}


function loadpopover(){
win2 = window.open("/survey/quickpoll10content.cfm?init=f1po", "bw2", 'toolbar=0, location=0, directories=0, menuBar=0, scrollbars=0, resizable=0, width=275, height=239, left=50, top=50')
win2.focus()
}


if (once_per_session==0)
loadpopover()
else
loadornot()

*/