// JavaScript Document
//  <script type="text/javascript">
var newwindow;
function popup(url)
{
	newwindow=window.open(url,'name','height=400,width=200');
	if (window.focus) {newwindow.focus()}
}
//function popupimage(url)
//{
//	newwindow=window.open(url,'product image','height=480,width=640,location=0');
//	if (window.focus) {newwindow.focus()}
//}
//</script>
//<!------------------------------------------------------------------------>

//<!----This Image Poup Script Requires Fixed Sized Images-->
//<script language="JavaScript" type="text/javascript">
<!-- ;
var newwindow

function popitup(url , title) {
if (newwindow && !newwindow.closed)
{ newwindow.focus(); newwindow.document.clear() }
else
{ newwindow=window.open('','','width=640,height=480,resizable=1') }
newwindow.document.writeln('<> <head> <title>' + title + '<\/title> <\/head> <body bgcolor=\"black\">');
newwindow.document.writeln('<img src=' + url + ' title=\"' + title + '\" alt=\"' + title + '\" >');
newwindow.document.writeln('<\/body> <\/html>');
newwindow.document.close();
}

function tidy()
{
if (newwindow && !newwindow.closed) { newwindow.close(); }
}

//</script>
//<!--------------------------------------------------->

//<!------This Popup Script Allows you to specify the image size in the popup link.---->
//<script language="JavaScript" type="text/javascript">
function popupimage(img,txt,width,height) {

        foto1 = document.createElement('img');
        foto1.src = img;
       
        if(!txt) {txt=img}
        vars="width="+width+",height="+height+",left="+((screen.width-width)/2)+",top="+((screen.height-height)/2);
       
        newwindow=window.open("","newwindow",vars);
        newwindow.document.clear();
        newwindow.document.write("<html>\n<head>\n<title>"+txt+"</title>\n");
        newwindow.document.write("<meta http-equiv=\"imagetoolbar\" content=\"no\">\n");
        newwindow.document.write("</head>\n\n<body style=\"margin:0px; padding:0px; cursor:pointer;\" onblur=\"javascript:window.close();\">\n");
        newwindow.document.write("<img src=\""+img+"\" border=\"0\" onclick=\"javascript:window.close();\">\n");
        newwindow.document.write("</body>\n</html>\n");
        if(newwindow.document.focus) {newwindow.document.focus();}
        newwindow.document.close();
}
//</script>
