//  .js functions
var artWindow=0;
var popUpWin=0;

function nofunction(){
return false;
}
function hi(){
alert('js file loaded');
return false;
}


function myVoid() { ; } // do nothing
function doAlert() {
	alert('mmmm');
}

function PopUpWindow(imgName, wName, caption, width, height, left, top )
	{
	if(artWindow)
		{
			if(!artWindow.closed) artWindow.close();
		}
	var optString="toolbar=no,menubar=no,scrollbar=auto,resizable=yes,width=" + (width + 80) + ",height=" + (height+100) + ",left=" + left + ", top=" + top + ",screenX=" + left + ",screenY=" + top;
	artWindow = window.open("", "artWindow", optString);
	var headString='<html xmlns="http://www.w3.org/1999/xhtml"><head><title>';
	headString = headString + wName + '</title><link rel="stylesheet" href="stylemain.css" type="text/css" />
           </head><body class = "popup">';
	imgString='<img src=' + '"' + imgName +'" height=' + '"' + height + '" width=' + '"' + width + '" border="0" align="center"/>'; 
   var bodyString='<p class ="head" align="center">'; // + imgString;
	bodyString=bodyString + '<div class="item"><div class="subitemPic">' + caption + '</div>';
	closeString='</div></body></html>';
   artWindow.document.write(headString + bodyString + closeString);
   artWindow.document.close(); 
	return false;
	}

function MakeAnotherWindow(imageName,imageHeight,imageWidth) {
    myFloater=window.open("","myWindow","width="+imageWidth+",height="+imageHeight);
    myFloater.location.href = imageName;
}



function popUpWindowX(URLStr, wName, left, top, width, height)
	{

		if(popUpWin)
			{
			if(!popUpWin.closed) popUpWin.close();
			}
	  popUpWin = window.open(URLStr, wName, 'toolbar=no,menubar=no,scrollbar=auto,resizable=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	  return false;

	  
	}




