function goImgWin(myImage,myWidth,myHeight,origLeft,origTop) {
  myHeight += 24;
  myWidth += 24;
  TheImgWin = window.open(myImage,'image','height='
  + myHeight + ',width=' + myWidth 
  + ',toolbar=no,directories=no,status=no,'
  + 'menubar=no,scrollbars=yes,resizable=yes');
  TheImgWin.resizeTo(myWidth+2,myHeight+30);
  TheImgWin.moveTo(origLeft,origTop);
  TheImgWin.focus();
}
function newWindow( file )
{
	window.open( file,'',"status=no");

}//end func
//	script for opening product real size image in new auto sized window	

	// Set the horizontal and vertical position for the popup
	PositionX = 100;
	PositionY = 100;
	
	// Set these value approximately 20 pixels greater than the
	// size of the largest image to be used (needed for Netscape)
	
	defaultWidth  = 500;
	defaultHeight = 500;
	
	// Set autoclose true to have the window close automatically
	// Set autoclose false to allow multiple popup windows
	
	var AutoClose = true;
	
	if (parseInt(navigator.appVersion.charAt(0)) >= 4)
	{
		var isNN=(navigator.appName=="Netscape")?1:0;
		var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;
	}
	var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
	var optIE='scrollbars=no,width=200,height=200,left='+PositionX+',top='+PositionY;
	optIE='scrollbars=no,width='+(defaultWidth)+',height='+(defaultHeight)+',left='+PositionX+',top='+PositionY;

	function popImage(imageURL,imageTitle,text)
	{
		if (isNN){imgWin=window.open('about:blank','',optNN);}
		if (isIE){imgWin=window.open('about:blank','',optIE);}
		with (imgWin.document)
		{
			writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
			writeln('<html>\n<head>\n<title>Loading...<\/title>\n<style type="text/css">\n\t body { margin:0px;background: #fff;} \n<\/style>');
			writeln('<script type="text/javascript">');
			writeln('var isNN,isIE;');
			writeln('if (parseInt(navigator.appVersion.charAt(0)) >= 4)\n{');
			writeln('\t isNN = ( navigator.appName == "Netscape" ) ? 1 : 0;');
			writeln('\t isIE = ( navigator.appName.indexOf( "Microsoft" )!= -1 ) ? 1 : 0;\n}');
			writeln('function reSizeToImage(){');
			writeln('if (isIE)\n{');
			writeln('\t window.resizeTo(100,100);');
			writeln('\t width = document.images[0].width;');
			writeln('\t height = document.images[0].height + 32;');
			if(text) {writeln('\t window.resizeTo(width,height+100);}');}
			else {writeln('\t window.resizeTo(width,height);}');}
			writeln('if (isNN)\n{');       
			writeln('\t window.innerWidth=document.images["preview"].width;');
			if(text) {writeln('\t window.innerHeight=document.images["preview"].height+100;}\n}\/\/end if');}
			else {writeln('\t window.innerHeight=document.images["preview"].height;}\n}\/\/end if');}
			writeln('function doTitle(){document.title="'+imageTitle+'";}');
			writeln('<\/script>');
			if (!AutoClose) writeln('<\/head>\n<body bgcolor="#fff" style="scroll: no" onload="reSizeToImage();doTitle();self.focus()">')
			else writeln('<\/head>\n<body bgcolor="#fff" style="scroll: no" onload="reSizeToImage(); doTitle(); self.focus()" onblur="self.close()">');
			writeln('\t<img name="preview" src='+imageURL+' style="display: block;" alt="" \/>\n');
			writeln('<pre style="margin: 2px 0;font-weight: bold;width:'+parseInt(document.images[0].width+50)+'px;text-align:center;color:#0057B4;">');
			writeln(text);
			writeln('</pre>');
			writeln('<\/body>\n<\/html>');
			close();		
		}//end with
	}