// JavaScript Document



function popUp(URL) {
			/*
			if (typeof newWin=="undefined") {
			alert('newWin is not yet created');
			}
			*/
			newWin = window.open(URL,'bbt','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=350');
}

function ClosePopup() {

	if (newWin && !newWin.closed) {
		newWin.close();
	}


}


function MakeVis (strID){
document.getElementById(strID).className='Vis';
}

function MakeInvis (strID){
document.getElementById(strID).className='Invis';
}

function openWin3(pic) {
  myWin= open("", "displayWindow",
    "status=no,toolbar=no,menubar=no, width=600, height=700");

  // open document for further output
  myWin.document.open();

//var strPic = toString(pic);
var imgStart = "<img src='../images/";
var imgEnd = ".jpg'>";
var FullImgTag = (imgStart + pic + imgEnd);

  // create document
  myWin.document.write("<html><head><title>Deric Ruttan - Apparel");
  myWin.document.write("</title></head><body><div align='center'>");
  //myWin.document.write("<img src='images/" pic "'.jpg'>");
  myWin.document.write(FullImgTag);
  myWin.document.write("</div></body></html>");

  // close the document - (not the window!)
  myWin.document.close();
}

function BackVis(){
	document.getElementById('Dynamic').innerHTML="hello ";
}

/*function openWin3() {
  myWin= open("", "displayWindow",
    "width=500,height=400,status=yes,toolbar=yes,menubar=yes");

  // open document for further output
  myWin.document.open();

  // create document
  myWin.document.write("<html><head><title>On-the-fly");
  myWin.document.write("</title></head><body>");
  myWin.document.write("<center><font size=+3>");
  myWin.document.write("This HTML-document has been created ");
  myWin.document.write("with the help of JavaScript!");
  myWin.document.write("</font></center>");
  myWin.document.write("</body></html>");

  // close the document - (not the window!)
  myWin.document.close();
}
*/
