// JavaScript Document
var newWin = null; 
function showMe(strURL, strType, strHeight, strWidth) { 
 if (newWin != null && !newWin.closed) 
   newWin.close(); 
 var strOptions=""; 
 if (strType=="console") 
   strOptions="resizable,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="fixed") 
   strOptions="status,height="+ 
     strHeight+",width="+strWidth; 
 if (strType=="elastic") 
   strOptions="toolbar,menubar,scrollbars,"+ 
     "resizable,location,height="+ 
     strHeight+",width="+strWidth; 
 newWin = window.open(strURL, 'newWin', strOptions); 
 newWin.focus(); 
}

function openWin(img) {
  winId = window.open('','newwin','width=410,height=330');
  winId.document.write('<head><title>R.G. Gregson Constructions</title><script language="JavaScript">windowWidth=410; windowHeight=330; if (parseInt(navigator.appVersion) >= 4) window.moveTo((screen.width/2)-(windowWidth/2+10),(screen.height/2)-(windowHeight/2+20));</script></head><body background="images/bg.gif" leftmargin="7" topmargin ="31" onBlur="self.close()" onClick="self.close()"><table width="400"><tr><td width="315">');
  winId.document.write('<img src="' + img + '"');
  winId.document.write(' width="390" height="260"></td></table></body>');
  winId.document.close();
}

function openBathWin(img) {
  winId = window.open('','newwin','width=285,height=470');
  winId.document.write('<head><title>R.G. Gregson Constructions</title><script language="JavaScript">windowWidth=410; windowHeight=330; if (parseInt(navigator.appVersion) >= 4) window.moveTo((screen.width/2)-(windowWidth/2+10),(screen.height/2)-(windowHeight/2+20));</script></head><body background="bathrooms_and_kitchens/bg_bath.gif" leftmargin="7" topmargin ="31" onBlur="self.close()" onClick="self.close()"><table width="285"><tr><td width="470">');
  winId.document.write('<img src="' + img + '"');
  winId.document.write(' width="265" height="400"></td></table></body>');
  winId.document.close();
}

// no close function - only for testing can be deleted.
function openWin2(img) {
  winId = window.open('','newwin','width=410,height=330');
  winId.document.write('<body background="images/bg.gif" leftmargin="7" topmargin ="31" onBlur="self.close()" onClick="self.close()"><table width="400"><tr><td width="315">');
  winId.document.write('<img src="' + img + '"');
  winId.document.write(' width="390" height="260"></td></table></body>');
  winId.document.close();
}
