function Pop(name, w, h){  

	var s1 = "";

    s1 += "<HTML><TITLE>Dolomites - Foto Gallery</TITLE>\n";
	s1 += "<HEAD>\n";
	s1 += "<script language=JavaScript>\n";
	s1 += "var scrollCounter = 0;\n";
	s1 += "var scrollText    = 0;\n";
	s1 += "var scrollDelay   = 20;\n";
	s1 += "var i = 0;\n";
	s1 += "while (i ++ < 140)\n";
	s1 += "	scrollText = ' ' + scrollText;\n";
	s1 += "function Scroller()\n";
	s1 += "{\n";
	s1 += "	window.status = scrollText.substring(scrollCounter++, \n";
	s1 += "						scrollText.length);\n";
	s1 += "	if (scrollCounter == scrollText.length) \n";
	s1 += "		scrollCounter = 0;\n";
	s1 += "	setTimeout('Scroller()', scrollDelay);\n";
	s1 += "}\n";
	s1 += "Scroller();\n";
	s1 += "if (window.Event) \n";
	s1 += "  document.captureEvents(Event.MOUSEUP); \n";
	s1 += "function nocontextmenu() \n";
	s1 += "{\n";
	s1 += " event.cancelBubble = true\n";
	s1 += " event.returnValue = false;\n";
	s1 += " return false;\n";
	s1 += "}\n";
	s1 += "function norightclick(e) \n";
	s1 += "{\n";
	s1 += " if (window.Event) \n";
	s1 += " {\n";
	s1 += "  if (e.which == 2 || e.which == 3)\n";
	s1 += "   return false;\n";
	s1 += " }\n";
	s1 += " else\n";
	s1 += "  if (event.button == 2 || event.button == 3)\n";
	s1 += "  {\n";
	s1 += "   event.cancelBubble = true\n";
	s1 += "   event.returnValue = false;\n";
	s1 += "   return false;\n";
	s1 += "  } \n";
	s1 += "}\n";
	s1 += "document.oncontextmenu = nocontextmenu;  \n";
	s1 += "document.onmousedown = norightclick;  \n";
	s1 += "</SCRIPT>\n";
	s1 += "</HEAD>\n";
    s1 += "<BODY onBlur='self.focus()' BGCOLOR='#ffffff' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>\n";
    s1 += "<A HREF='Javascript:window.close()'><IMG SRC='" + name + "' border='0'>" + "</A><BR><CENTER>\n"; 

    w = w;
    h = h;
    
    var param = ("height=" + h + ",width=" + w + ",scrollbars=no,resizable=no,left=100,top=100");

    popup = window.open("","popDialog",param)

    popup.document.write(s1)
    popup.document.close()
}


function PopItNew(theURL, w, h){
        ver = parseInt(navigator.appVersion.substring(0,1));       newWin=window.open(theURL,"ipix_pop","width="+w+",height="+h+",menubar=no,toolbar=no,status=no,resizable=no,scrollbars=no,");
	if ((!((navigator.appName == "Netscape")&&(ver==2))) && (!((navigator.appName == "Microsoft Internet Explorer")&&(ver<4)))){
          setTimeout("if (newWin) newWin.focus();",1000);
    }
}
