/*
Basic script file for Virtual Laboratories in Probability and Statistics
Copyright (c) 1997-2006, Kyle Siegrist
See http://www.math.uah.edu/stat/Copyright.xhtml for more information about rights and permissions
*/

var comment, biography, resource, applet, data, table, graph, keywords, copyright, contents, exercise, answer;

window.name = "main";

function openApplet(appletName){
	applet = window.open(baseURL + "applets/" + appletName + ".xhtml","applet","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=700,height=500,top=20,left=20");
	applet.focus();
}

function openComment(){
	comment = window.open(baseURL + "Comment.xhtml","comment","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=600,height=600,top=20,left=20");
	comment.focus();
}

function openCopyright(){
	copyright = window.open(baseURL + "Copyright.xhtml","copyright","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=600,height=400,top=20,left=20");
	copyright.focus();
}

function openBiography(bioName){
	biography = window.open(baseURL + "biographies/" + bioName + ".xhtml","biography","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=600,height=400,top=20,left=20");
	biography.focus();
}

function openResources(){
	resource = window.open(baseURL + "Resources.xhtml","resource","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=600,height=400,top=20,left=20");
	resource.focus();
}

function openReference(referenceName){
	resource = window.open(baseURL + "Resources.xhtml#" + referenceName,"resource","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=600,height=400,top=20,left=20");
	resource.focus();
}

function openData(dataName){
	data = window.open(baseURL + "data/" + dataName + ".xhtml","data","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=600,height=400,top=20,left=20");
	data.focus();
}

function openTable(tableName){
	table = window.open(baseURL + "tables/" + tableName + ".xhtml","table","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=775,height=400,top=20,left=20");
	table.focus();
}

function openGraph(graphFile){
	graph = window.open(graphFile,"graph","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width=600,height=400,top=20,left=20");
	graph.focus();
}

function openKeywords(){
	keywords = window.open(baseURL + "Keywords.xhtml","keywords","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=500,height=400,top=20,left=20");
	keywords.focus();
}

function openContents(){
	contents = window.open(baseURL + "Contents.xhtml","contents","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=600,height=400,top=20,left=20");
	contents.focus();
}
function openAnswer(idName){
	answer = window.open("Answers.xhtml#" + idName,"answer","toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,width=600,height=400,top=20,left=20");
	answer.focus();
}
