// *****************************************
function GetId(idx)
{
return(document.getElementById(idx));
}
// ******************************************
function GetIdIx(id, ix) {
return(document.getElementsByName(id)(ix));
}
// ********************************************
function GetObjIx(obj, id, ix) {
return(obj.getElementsByName(id)(ix));
}
// ********************************************
// *****
function GetObj(obj, id) {
return(obj.getElementById(id));
}
// ********************************************
function GetEventId(e) {
	e = (e) ? e : ((event) ? event : null);
return(((e.target) ? e.target : ((e.srcElement) ? e.srcElement : null)).id);
}
// **********************************************
function Wr(str) {
//  	alert(str);
	document.write(str);
}

// **********************************************
function ShowObj(obj, id) {
	GetObj(obj, id).style.display = "block";
return(0);
}
// ***********************************************
function HideObj(obj, id) {
 	GetObj(obj, id).style.display = "none";
return(0);
}
// *********************************************
// ******************
function openPictureViewer(url){
	var win, windowSpecs, url;

	windowSpecs = 'location=no,toolbar=false,status=no,menubar=no,scrollbars=yes,width=300,height=400,resizable=yes,top=50,left=50';
	win = window.open(url, '', windowSpecs);
}
// **********************
function openFlexViewer(Image, wid, high){
	var win, windowSpecs, url;
	//xlert("url is "+Image+" and width = "+wid+" and height is "+high);
	windowSpecs = 'location=no,toolbar=false,status=no,menubar=no,scrollbars=yes,width='+wid+',height='+high+',resizable=yes,top=50,left=50';
	win = window.open(Image, '', windowSpecs);
}
// **********************
