function setFrame(newpage) {
  	if (newpage == "mnth" ) {
 	    now = new Date
 	    top.location.href = "month" + now.getMonth() + ".html" }
 	else { 	   top.location.href = newpage + "cont" + ".html" } 	}  

function prntpage() {
     url = window.location.href;
     urlen =url.length - 5;
     newurl = url.substring(0,urlen) + "prt.html";  
     windowprops = "left=1,top=1,width=1,height=1";
     window.open(newurl, "print", windowprops);
 }

function loadstore() {
 url = window.location.href;
 urlen =url.length - 4;
 tape = url.substring(urlen,url.length);  
 tapeloc = "https://www.loasiscc.org/miva/merchant.mvc?Screen=PROD&Store_Code=LOCC&Product_Code=" + tape;
 store.location = tapeloc;
}
function popplay(page){
	if(page == null) page = "index3.html";
	popurl = page + ".html";
	newwindow=window.open(popurl,'loccvideo','height=615,width=940');
	if (window.focus) {newwindow.focus()}
	return false;
}

function poppl(page){
	if(page == null) page = "index3.html";
	popurl = page + ".html";
	newwindow=window.open(popurl,'loccvideo','height=615,width=940');
	if (window.focus) {newwindow.focus()}
}

function popafc(){
	popurl = "afcflyer.html";
	newwindow=window.open(popurl,'afcflyer','height=700,width=600');
	if (window.focus) {newwindow.focus()}
}

function viewday (yr,mm,dd) {
	window.open('calander.cgi?ACTION=VIEWDAY&Year=' +yr+ '&Month=' +mm+ '&Date=' +dd + '&config=','VIEWDAY','scrollbars,resizable,height=400,width=450');
	}
	
function popplayclose(page){
	if(page == null) page = "index3.html";
	popurl = page + ".html";
	window.resizeTo(940, 615)
	top.location.href = popurl;
	window.reload;
//	newwindow=window.open(popurl,'loccvideo','height=615,width=940');
//	if (window.focus) {newwindow.focus()}
//	window.close();
//	return false;
}

function purchase() {
     url = window.location.href;
     urlen =url.length - 5;
//     newurl = url.substring(0,urlen) + "prt.html";  
     newurl= "http://www.loasiscc.org/miva/merchant.mvc?Screen=PROD&Store_Code=locc&Product_Code=WC2007&Category_Code=SpE"
     windowprops = "left=1,top=1,width=1,height=1";
     window.open(newurl, "print", windowprops);
 }
