function disableStatuses() { 
	for (var count=0; count<document.links.length; count++) {
		if (document.links[count].onmouseover == null) {
			document.links[count].onmouseover = blankStatus;
		}
	}
}
function blankStatus() { window.status = "" ; return true ; }
var demoWindow = "";
function openDemo() {
  if (!demoWindow || demoWindow.closed) {
		theFile = "home/clientTour.asp";
		demoWindow = window.open(theFile,"clientDemo",'scrollbars=yes,toolbar=no,width=820,height=520,top='+(screen.height-520)/2+',left='+(screen.width-820)/2);
		if (!demoWindow) {
			alert("Please enable popups to view the requested window.");
		} else {
			demoWindow.opener = this.window;
			demoWindow.focus();
		}
  } else {
		demoWindow.focus();
  }    
}
function openBizDemo() {
  if (!demoWindow || demoWindow.closed) {
		theFile = "include/memberTour.htm";
		demoWindow = window.open(theFile,"memberDemo",'scrollbars=yes,toolbar=no,width=820,height=520,top='+(screen.height-520)/2+',left='+(screen.width-820)/2);
		if (!demoWindow) {
			alert("Please enable popups to view the requested window.");
		} else {
			demoWindow.opener = this.window;
			demoWindow.focus();
		}
  } else {
		demoWindow.focus();
  }    
}
function startMyFreeAccount() {
	var url = document.location.toString() ; //url
	var e_url = '' ; //edited url
	var p = 0 ; //position
	var p2 = 0 ;//position 2
	p = url.indexOf("//") ;
	e_url = url.substring(p+2) ;
	p2 = e_url.indexOf("/") ;
	var root_url = url.substring(0,p+p2+3);
	if (root_url.indexOf("http://") < 0) {
		root_url = "http://"+root_url;
	}
	this.location.href=root_url+"?goto=Products";
}
var newWindow = "";
function openWindow(location) {
	theFile = "http://go.efitnesstracker.com?redirectPage="+location;
  if (!newWindow || newWindow.closed) {
	} else {
		newWindow.window.close()
	}	
	newWindow = window.open(theFile,"newWindow",'scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes,status=yes,location=yes');
	if (!newWindow) {
		alert("Please enable popups to view the requested window.");
	} else {
		newWindow.opener = this.window;
		newWindow.focus();
	}
}
function getPage(location) {
	this.location.href="?goto="+location;
}
function getPage2(location) {
	this.location.href=location;
}
function getPage3(location) {
	theFile = location;
  if (!newWindow || newWindow.closed) {
	} else {
		newWindow.window.close()
	}	
	newWindow = window.open(theFile,"newWindow",'scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes,status=yes,location=yes');
	if (!newWindow) {
		alert("Please enable popups to view the requested window.");
	} else {
		newWindow.opener = this.window;
		newWindow.focus();
	}
}
var chatWindow = "";
var forumWindow = "";
function openChat() {
   if (!chatWindow || chatWindow.closed) {
		theFile = "Home/chat/default.asp";
		chatWindow = window.open(theFile,"chat",'scrollbars=yes,toolbar=no,width=800,height=600,top='+(screen.height-600)/2+',left='+(screen.width-800)/2);
		if (!chatWindow) {
			alert("Please enable popups to view the requested window.");
		} else {
			chatWindow.opener = this.window;
			chatWindow.focus();
		}
  } else {
		chatWindow.focus();
  }    
}
function openForum(forumUrl) {
  if (!forumWindow || forumWindow.closed) {
		forumWindow = window.open(forumUrl,"forum",'scrollbars=yes,toolbar=no,width=1000,height=750,top='+(screen.height-750)/2+',left='+(screen.width-1000)/2);
		if (!forumWindow) {
			alert("Please enable popups to view the requested window.");
		} else {
			forumWindow.opener = this.window;
			forumWindow.focus();
		}
  } else {
		forumWindow.focus();
  }    
}
var exWindow = "";
function showExercise(myExerciseName) {
  if (!exWindow) {
  } else if (!exWindow.closed) {
    exWindow.window.close();
  }
	theFile = "include/Exercise-Detail.asp?exerciseName="+myExerciseName;
	exWindow = window.open(theFile,"ExerciseDetails",'scrollbars=yes,toolbar=no,width=580,height=650,top='+(screen.height-650)/2+',left='+(screen.width-580)/2);
	if (!exWindow) {
		alert("Please enable popups to view the requested window.");
	} else {
		exWindow.opener = this.window;
		exWindow.focus();
	}
}