function PopupPicker(ctl,w,h)
    {
        var PopupWindow=null;
        settings="width="+ w + ",height="+ h + ",location=no,directories=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,dependent=no";
        PopupWindow=window.open("../DatePicker.aspx?Ctl=" + ctl,"DatePicker", settings);
        PopupWindow.focus()
    }
 
 function SetDate(dateValue)
        {
            // retrieve from the querystring the value of the Ctl param,
            // that is the name of the input control on the parent form
            // that the user want to set with the clicked date
            ctl = window.location.search.substr(1).substring(4);
            // set the value of that control with the passed date
            thisForm = 
              window.opener.document.forms[0].elements[ctl].value = dateValue;
            // close this popup
            self.close();
        }
        
function rm_exchangeimg(imgn){				
	ThisHTML='<img src="../images/models/' + sLrgImg[imgn] + '" border="0" alt="' + sAltTag[imgn] + '">';
	document.getElementById("lrgImg").innerHTML=ThisHTML;
}

function rm_exchangeimg_public(imgn){				
	ThisHTML='<img src="images/models/' + sLrgImg[imgn] + '" border="0" alt="' + sAltTag[imgn] + '">';
	document.getElementById("lrgImg").innerHTML=ThisHTML;
}
sLrgImg = new Array();
sAltTag = new Array();

	function clickhandler (e)
	{
		e = (e == null) ? event : e;
		var from = e.target ? e.target : e.srcElement; 

		if ((from.tagName == "IMG"))
			return false;
		return true;
	}
