
function PopUpSorry() 
{
        // open the popup window.

        var mipopupURL = "sorry.html"
        var mipopup = window.open(mipopupURL,"Sorry",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars,resizable=0,width=400,height=250');
        // set the opener if it's not already set.  it's set automatically
        // in netscape 3.0+ and ie 3.0+.
        if( navigator.appName.substring(0,8) == "Netscape" )
        {
                mipopup.location = mipopupURL;
        }
        
}

function noImg () {
document.tartanpic.src="100_0807.jpg"; 
PopUpSorry();     
}

function displaypic()
{
pick = document.select.tartan.selectedIndex;

document.tartanpic.src=document.select.tartan[pick].value;

}

function displaynxt()
{

if (document.select.tartan.selectedIndex + 1 == document.select.tartan.length)
{
  document.select.tartan.selectedIndex = 0;
}
else
{
   document.select.tartan.selectedIndex++;
}
pick = document.select.tartan.selectedIndex;

document.tartanpic.src=document.select.tartan[pick].value;

}

function displayprv()
{

if (document.select.tartan.selectedIndex == 0)
{
   document.select.tartan.selectedIndex = document.select.tartan.length - 1;
}
else
{

   document.select.tartan.selectedIndex--;
}
pick = document.select.tartan.selectedIndex;


document.tartanpic.src=document.select.tartan[pick].value;

}

function initwin() {

  document.tartanpic.src=document.select.tartan[pick].value; 


}   
