
function addbookmark(url, description)
//**************************
//Added to link on page allows user to,
//in IE automatically add the page as a bookmark,
//in Netscape show msg box
//**************************

{
netscape="Netscape User's hit CTRL+D to add a bookmark to this site."
if (navigator.appName=='Microsoft Internet Explorer')
{
//Usage:-window.external.AddFavorite(url, description);
window.external.AddFavorite(url, description); //Coalport params in <a href=
}
else if (navigator.appName=='Netscape')
{
alert(netscape);
}
}

function plainWindow(x,y,z){
//*****************
//Sizable window without attributes to view images
//includes a form with 'Close' button
//x =url, y =width, z=height
//***************
	options = "toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0," +
	'top=100,left=100, scrollbars=yes, width='+(y+100)+','+'height= '+(z+100)+'"';

	content= '<html><head>'+
	'<title>'+x+'</title>'+
	'<link rel="stylesheet" href="site.css" type="text/css">'+
	'</head>'+
	'<body bgcolor="#FFFF99" onBlur="self.focus()">'+
	'<div align="center">'+	
	'<img src= "'+x+'"'+' width='+y+' height= '+z+'">'+
	'<form><input Name="Shut" TYPE=Button VALUE="Close Window" onClick="javascript:window.close()">'+
	'</div>';
	'</body></html>';

	plain_window = window.open("","plain",options);
	plain_window.document.write(content)
	plain_window.document.close;

}

function picWindow(x,y,z){
//*****************
//fixed size (500x600) window without attributes to 
//view 400 x 400 images includes a form with 'Close' and 'Print' buttons
//x =url, y =picName, z=picDesc
//***************
	options = 'toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0,' +
	'top=100,left=100,width=500,height=600';

	content= '<html><head>'+
	'<title>'+x+'</title>'+
	'<link rel="stylesheet" href="site.css" type="text/css">'+
	'</head>'+
	'<body bgcolor="#FFFF99" onBlur="self.focus()">'+
	'<div align="center">'+
	'<h3 style="margin-bottom:0">'+y+'</h3>'+
	'<p style="margin-top:0">'+z+'</p>'+
	'<img src= "'+x+'"'+' width="400" height="400">'+
	'<form><input Name="Shut" TYPE=Button VALUE="Close Window" onClick="javascript:window.close()">'+
	'</div>';
	
	'</body></html>';

	pic_window = window.open("","plain",options);
	pic_window.document.write(content)
	pic_window.document.close;

}

function pageWindow(page){
//*****************
//Sizable window without attributes to view popUp
//***************
	//options = "toolbar=0,status=0,menubar=0,scrollbars=0,resizable=0," +
	//"top=100,left=100,";	
	page_window = window.open(page,"Page",'width=300,height= 325');
}	
