﻿// JScript File
function show(id,x,y,tf) {
    if (tf == true) {
    id.style.display = "block"
    id.style.left = x + "px"
    id.style.top = y + "px"
    }
    if (tf == false) {
    id.style.display = "none"
    }
}

function doClear(theText) 
{
     if (theText.value == theText.defaultValue)
 {
         theText.value = ""
     }
 }


function swapimages(imgid1, imgid2) 
{ 
    if (document.getElementById) 
    { // DOM3 = IE5, NS6 
        var tmp1 = document.getElementById(imgid1).src;
        tmp1 = tmp1.substring(0,tmp1.indexOf('?'));
        var tmp2 = document.getElementById(imgid2).src;
        tmp2 = tmp2.substring(0,tmp2.indexOf('?'));
        document.getElementById(imgid2).src = tmp1 + '?maxwidth=300&fixheight=300&stretch=true';
    //    document.getElementById(imgid2).src = tmp1 + '?maxwidth=83';
        return false;
    }  
    else
    {
        return true;
    }
} 
