﻿function clearvalue(obj, original)
{
    if (obj.value == original)
    {
        obj.value = "";
    }
}
function ShowPhoto(p)
{
// The attributes for our new window
    var the_toolbar = "no";
    var the_addressbar = "no";
    var the_directories = "no";
    var the_statusbar = "yes";
    var the_menubar = "no";
    var the_scrollbars = "yes";
    var the_do_resize =  "yes";
    var the_copy_history = "no";
    
    var browser_type = navigator.appName;

    // always place the window in the top left corner.
    top_pos = 0;
    left_pos = 0;
    
    var site
    var option
    
    // Open the Page
    if (window.outerWidth ){
	    option = "toolbar="+the_toolbar+",location="+the_addressbar+",directories="+the_directories+",status="+the_statusbar+",menubar="+the_menubar+",scrollbars="+the_scrollbars+",resizable="+the_do_resize+",outerWidth=10,outerHeight=10,copyhistory="+the_copy_history+",left="+left_pos+",top="+top_pos;
	    site = window.open(p, "WebsitePic", option);

	    var Opera = (navigator.userAgent.indexOf('Opera') != -1);
	    if(Opera){
		    site.resizeTo(10,10);
	    }
    }
    else
    {
        option = "toolbar="+the_toolbar+",location="+the_addressbar+",directories="+the_directories+",status="+the_statusbar+",menubar="+the_menubar+",scrollbars="+the_scrollbars+",resizable="+the_do_resize+",Width=10,Height=10,copyhistory="+the_copy_history+",left="+left_pos+",top="+top_pos;
	    site = window.open(p, "WebsitePic", option);
	    if (site != null)
	    {
	        if(site.open)
	        {
		        site.focus();
		        return false;
	        }
	    }
	    site.resizeTo(10,10);
    }
    site.moveTo(top_pos, left_pos);
}