


function winLegal() { 
	var features = 'toolbar=no,scrollbars=yes,width=450,height=600';
	features += centerWin();
	popupWin = window.open('terms.html','html',features);
}

function winPrivacy() { 
	var features = 'toolbar=no,scrollbars=yes,width=450,height=600';
	features += centerWin();
	popupWin = window.open('privacy.html','html',features);
}

function winOpenings() {
	if (!window.opener.closed && window.opener.location){
		window.opener.location = "theaters.html";
		window.opener.focus();
	} else {
		var features = 'toolbar=yes,scrollbars=yes,location=yes,resizable=yes,width=700,height=520';
		opener = window.open('theaters.html','html',features);
	}
	
}
function winPress() {
	var opener = '';
	if (!window.opener.closed && window.opener.location){
		window.opener.location = "pressArea.html";
		window.opener.focus();
		//alert("switch windows3"+window.opener);
	} else {
		var features = 'toolbar=yes,scrollbars=yes,location=yes,resizable=yes,width=700,height=520';
		opener = window.open('pressArea.html','html',features);
		//alert("new window3"+window.opener);
	}
}


function winTrailerHTML() { 
	var features = 'toolbar=no,scrollbars=no,width=450,height=450';
	features += centerWin();
	popupWin = window.open('trailer.html','trailer',features);
}

function winTrailer(link) { 
	var features = 'toolbar=no,scrollbars=no,width=450,height=450';
	features += centerWin();
	popupWin = window.open('trailer/'+link,'trailer',features);
}
function winTrailer2(link) { 
	window.location = link;
}


function winNewsletter() { 
	var features = 'toolbar=yes,scrollbars=yes,resizable=yes,location=yes,width=800,height=600';
	features += centerWin();
	popupWin = window.open('newsletter.jsp','newsletter',features);
}

function winMain() {
	//self.parentOpen = true;
	var features = 'toolbar=no,scrollbars=no,width=720,height=490';
	features += centerMainWin();
	main = window.open('main.html','main',features);
	main.focus();
	//main.opener.name = "opener";
}

function winMainSub() {
	//self.parentOpen = true;
	var features = 'toolbar=no,scrollbars=no,width=720,height=490';
	features += centerMainWin();
	main = window.open('../main.html','main',features);
	main.focus();
	//main.opener.name = "opener";
}

function empty(field){
	field.value = "";
}

function winGroove() {
	var features = 'toolbar=no,scrollbars=no,width=720,height=480';
	features += centerMainWin();
	//groove = window.open('cgi-bin/groovemachine.cgi','groove',features);
	groove = window.open('groove.html','groove',features);
	groove.focus();
}

function winBeatChaser() {
	var features = 'toolbar=no,scrollbars=no,width=720,height=480';
	features += centerMainWin();
	//groove = window.open('cgi-bin/groovemachine.cgi','groove',features);
	beatChaser = window.open('beatChaser.html','groove',features);
	beatChaser.focus();
}

function winClip(num) { 
	var features = 'toolbar=no,scrollbars=no,width=380,height=450';
	features += centerWin();
	popupWin = window.open('cgi-bin/clip.cgi?clip='+num,'clip',features);
}

function centerWin(){
    var winLeft = ((screen.width - 450)/2);
    var winTop = ((screen.height - 450)/2);
	return (',top='+ winTop +',left='+winLeft)
}

function centerMainWin(){
    var winLeft = ((screen.width - 720)/2);
    var winTop = ((screen.height - 480)/2);
	return (',top='+ winTop +',left='+winLeft)
}
