function OpenWindow(url,name)
{

// Author: Brian Carter
// Use href in link and return false in onClick.
// This allows link to work without script, and
// the javascript returns false to avoid doing both.
// Will also refocus the window if the user reclicks.

// Specific:
// <a href="URL" target="DisplayImage" 
// onClick="OpenWindow('URL','DisplayImage'); return false;"
// >Display Image</a>

// Default:
// OpenWindow('URL')

// JavaScript Ampersand:
// ?key1=value1\x26key2=value2


	switch(name)
	{

		// DisplayImage
		case 'DisplayImage' : 

		features = "directories=no,location=no,menubar=no,resizable=yes,";
		features+= "scrollbars=no,status=no,titlebar=no,toolbar=no,";
		features+= "height=340,width=430,top=50,left=50";

		break;

		// Generic
		default : 

		features = "directories=no,location=no,menubar=no,resizable=yes,";
		features+= "scrollbars=yes,status=no,titlebar=no,toolbar=no,";
		features+= "height=400,width=400,top=50,left=50";
		
		name = "NewWindow";

		break;
	}


newwindow=window.open(url,name,features);
if (window.focus) {newwindow.focus()}
return false;
}

