﻿// JScript File
function KeyPress()
{
	if(window.event.keyCode == 13)
	{
		window.event.keyCode = 0;
	}
}

function popUpNormal(url) 
{
 params  = '';

 newwin=window.open(url,'windowname4', params);
 if (window.focus) {newwin.focus()}
 return false;
}
 
function popup(url) 
{
 params  = 'width='+screen.width;
 params += ', height='+screen.height;
 params += "top=0, left=0"
 params += ', fullscreen=yes';

 newwin=window.open(url, "", params);
 
 if (window.focus) {newwin.focus()}
 return false;
} 

function galleryPopUp(url) 
{
 params  = 'width='+screen.width;
 params += ', height='+screen.height;
 params += ', top=0, left=0'
 params += ', fullscreen=yes';


 newwin=window.open('GalleryPopUp.aspx?photogallery=' + url,'windowname4', "", params); //The params property in this call appears to in the wrong parameter location - Matt B
 if (window.focus) {newwin.focus()}
 return false;
}

function gallerypopup(url) 
{
 params  = 'width='+screen.width;
 params += ', height='+screen.height;
 params += ', top=0, left=0'
 params += ', fullscreen=yes';

 newwin=window.open('GalleryPopUp.aspx?photogallery=' + url,'windowname56', params);
 if (window.focus) {newwin.focus()}
 return false;
}

function popUp(url, name, width, height) {
	
	if(width == 0) width = screen.width;
	if(height == 0) height = screen.height;
	//Pop open into a new windo
	
	var newWindow = window.open(url, 
	
	
	name, 
	
	'top=0,left=0,width='+width+',height='+height+',toolbar=no,menubar=no,scrollbars=no,resizable=yes,location=no,directories=no,status=no');
 
	if (window.focus) { 
	 	newWindow.focus()
	 }
 
	return false;
}


 
 
