// SETUPS:
// ===============================

// 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;

// Do not edit below this line...
// ================================
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=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=document.images[0].width + 11;');
writeln('height=document.images[0].height + 89;');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["viewimage"].width;');writeln('window.innerHeight=document.images["viewimage"].height;}}');
writeln('function doTitle(){document.title="'+imageTitle.replace(/\"/gi, '\\\"')+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=FFFFFF scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="viewimage" src='+imageURL+' border=0><div align="right"><a href="javascript: window.close();" STYLE="font-size:12;color:#555555;">close window</a></div></body></html>');
close();		
}}

function getnewval (page)
   {
   var new_url=page;	
   
   if (  (new_url != "")  &&  (new_url != null) && (new_url != "0")   )
      {
		//alert(new_url);
		window.location = "getnewvariation.asp?number="+new_url
	  }	
   }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function MM_openBrWindow1(style,winName,features) { //v2.0

	if (style == "Style 3")//Block
	{	
		theURL="images/block.gif";
		theURL = winName + theURL ;
		popImage(theURL, 'Block');	
		//window.open(theURL,winName,features); 
	}
	/*else if (style == "Style 2") //Casual Script
	{	
		theURL="images/casual-script.gif";
		popImage('images/casual-script.gif', 'Casual Script');
		//window.open(theURL,winName,features); 
	}*/
	else if (style == "Style 4") //Exact Script
	{	
		theURL="images/exact-script.gif";
		theURL = winName + theURL ;
		popImage(theURL, 'Exact Script');		
		//window.open(theURL,winName,features); 
	}
	else if (style == "Style 1") //Sydney
	{	
		theURL="images/sydney.gif";		
		theURL = winName + theURL ;
		popImage(theURL, 'Sydney');
		//window.open(theURL,winName,features); 
	}
	else if (style == "Style A") //Style A
	{	
		theURL="images/MonoStyleA.jpg";
		theURL = winName + theURL ;
		popImage(theURL, 'Style A');		
		//window.open(theURL,winName,features); 
	}
	else if (style == "Style E") //Style E
	{	
		theURL="images/MonoStyleE.jpg";
		theURL = winName + theURL ;
		popImage(theURL, 'Style E');		
		//window.open(theURL,winName,features); 
	}
	else if (style == "Style F") //Style F
	{	
		theURL="images/MonoStyleF.jpg";
		theURL = winName + theURL ;
		popImage(theURL, 'Style F');		
		//window.open(theURL,winName,features); 
	}
	else if (style == "Style 36") //Inkwell style 36
	{	
		theURL="images/InkWellStyle36.jpg";
		theURL = winName + theURL ;
		popImage(theURL, 'Inkwell style 36');		
		//window.open(theURL,winName,features); 
	}
	else if (style == "Style 40") //Inkwell style 40
	{	
		theURL="images/InkWellStyle40.jpg";
		theURL = winName + theURL ;
		popImage(theURL, 'Inkwell style 40');		
		//window.open(theURL,winName,features); 
	}
	else if (style == "Style 42") //Inkwell style 42
	{	
		theURL="images/InkWellStyle42.jpg";
		theURL = winName + theURL ;
		popImage(theURL, 'Inkwell style 42');		
		//window.open(theURL,winName,features); 
	}
	if (style == "Style 43")//Inkwell style 43
	{	
		theURL="images/InkWellStyle43.jpg";
		theURL = winName + theURL ;
		popImage(theURL, 'Inkwell style 43');		
		//window.open(theURL,winName,features); 
	}
	if (style == "Style 159")//Inkwell style 159
	{	
		theURL="images/InkWellStyle159.jpg";
		theURL = winName + theURL ;
		popImage(theURL, 'Inkwell style 159');		
		//window.open(theURL,winName,features); 
	}
		if (style == "Full Block")//Inkwell style 159
	{	
		theURL="images/Full_block.jpg";
		theURL = winName + theURL ;
		popImage(theURL, 'Full Block');
		//window.open(theURL,winName,features); 
	}
		if (style == "Funky Script")//Inkwell style 159
	{	
		theURL="images/funky_script.jpg";
		theURL = winName + theURL ;
		popImage(theURL, 'Funky Script');		
		//window.open(theURL,winName,features); 
	}
		if (style == "Traditional Script")//Inkwell style 159
	{	
		theURL="images/Traditional Script";
		theURL = winName + theURL ;
		popImage(theURL, 'Traditional Scrit');		
		//window.open(theURL,winName,features); 
	}
}