var ns4, ie4, ns6
ns6 = false
ns4 = (document.layers)? true:false
ie4 = (document.all)? true:false

if (ie4){
	coll = "all."
	styleObj = ".style"
}else {
ns6 = (document.getElementById)? true:false
}


function showView(loc){
window.location  = loc + '?v=1';
}

function showEdit(loc){
window.location  = loc + '?v=2';
}

function helpContext(url,width,height,menu,sMenu,sSMenu) {
	args=width?"width="+width+",":"width=450,";
	args+=height?"height="+height:"height=400";
	args+=",scrollbars=yes,status=no,resizable,location=no";
	win=window.open('http://docs.echurchsite.com/context/defaultNew.asp?m='+ menu +'&s='+ sMenu +'&ss='+ sSMenu,'popWin3',args);
}

function popup(url,width,height) {
	args=width?"width="+width+",":"width=450,";
	args+=height?"height="+height:"height=400";
	args+=",scrollbars=yes,status=no,resizable,location=no";
	win=window.open(url,'popWin3',args);
}

function showAlla(field){
	fold = frm.folder.value
	if (fold == ""){ fold = "images" }
	popup("../showImage.asp?c=2&field="+ field +"&folder="+fold+"&i=0",650,350)
}

function showAll(field){
	fold = document.forms[0].folder.value
	if (fold == ""){ fold = "images" }
	popup("../showImage.asp?c=1&field="+ field +"&folder="+fold+"&i=0",650,350)
}

	function view(image,height,width,top,left,bgcolor,title) {
	
		args=width?"width="+width+",":"width=450,";
		args+=height?"height="+height+",":"height=400,";
		args+=top?"top="+top+",":"top=110,";
		args+=left?"left="+left:"left=110";
		args+=",scrollbars=yes,status=no,resizable,location=no";
		bgcolor1 = bgcolor?bgcolor:"#ffffff";
		//alert(args);



wind = window.open("", "", args);
wind.document.write('<HTML>\n<HEAD><TITLE>Gazso Design Architecture, '+ title +'</TITLE><HEAD>\n<BODY bgcolor='+ bgcolor1 +
' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><TABLE width=100% height=100% border=0 cellspacing=0 cellpading=0><TD align=center'+
' valign=middle><img src='+image+' border=0><BR><center><img src="../images/sys/close.jpg" border=0 onclick="Javascript:window.close()"></centeR></A></TD></TABLE>\n</BODY>\n</HTML>');
wind.document.close();
}