﻿//function popupWin() {
//loadpage = window.open('http://www.mtolivesdachurchapopka.org/churchelv.html','open_window',
//'scrollbars=yes,menubar=no,height=480,width=780,resizable=yes,toolbar=no,location=no,status=no,top=0')
//}

/*
function imagePopUp(img) {
html = "<html><head><title>Enlarged Image</title>" + 
"</head><body style="margin: 0px 0; text-align:center; ">" + 
"<IMG src='" + img + "' border=0 name=image " + 
"onload='window.resizeTo(document.image. width,
(document.image.height*1.3))'>" + 
"</body></html>"; 
popup=window.open ('','image','toolbar=0,
location=0, directories=0,menuBar=0, scrollbars=0,resizable=1'); 
popup.document.open(); 
popup.document.write(html); 
popup.document.focus(); 
popup.document.close(); 
}

*/

/* Works with buttons and if file is in the same location */
function popupWin(the_url)
{
 window.open(the_url,'open_window',
 'scrollbars=yes,menubar=no,height=400,width=500,resizable=yes,toolbar=no,location=no,status=no,top=0');
}


function popupEditor(the_url)
{
 window.open(the_url,'open_window',
 'scrollbars=yes,menubar=no,height=480,width=700,resizable=yes,toolbar=no,location=no,status=no,top=0');
}

/* Works with buttons and if file is in the same location */
function popupAlert(the_url)
{
 window.open(the_url,'open_window',
 'height=480,width=700,status=no,resizable=yes');
}


function popupHelp(the_url)
{
 targetUrl = 'http://' + the_url;
 
 window.open(targetUrl,'help_window',
 'height=400,width=500,status=no,resizable=yes');
}

function loadPage(parentId)
{
	targetUrl = 'index.php?view=add';
	if (parentId != 0) {
		targetUrl += '&parentId=' + parentId;
	}
	
	window.location.href = targetUrl;
}

function getPage(catId)
{
	window.location.href = 'index.php?page=products&catId=' + catId;
}




function mailevent()
{
  mail_str = "mailto:?subject= Donnie McClurkin coming to Orlando...Live in Concert!";
  mail_str += "&body= I am highly recommending this event to you! Tip -- August 18th, " + document.title;
  mail_str += ". For more info, visit this website page at, " + location.href; 
  location.href = mail_str;
}


function mailpage()
{
  mail_str = "mailto:?subject= Visit this website page: " + document.title;
  mail_str += "&body= I am recommending that you visit this web site page.  It maybe of interest to you. " + document.title;
  mail_str += ". Here is the link to the page at, " + location.href; 
  location.href = mail_str;
}


function headerdate()
{
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
document.write("<small><right><font color='#000000' face='Verdana, Arial, Tahoma' size='-2'>"+dayarray[day]+", "+montharray[month]+" "+daym+", "+year+"</font></right></small>")
}



