function alt(v)
		{
			alert(v);
		};
		
function Ch_Loc(v)
		{
			top.location.href = v;
		};
		
function alt_close(v)
{
			alert(v);
			window.close();
};

function cls()
{
window.close();
}


function ChangeImages(Name, Url)
{
	document.getElementById(Name).setAttribute("src",Url);
		
}

function WinOpenCenter(v,p,wid, heig)
{
	le = (screen.availWidth - wid)/2;
			to = (screen.availHeight - heig)/2;
			str = "resizable=no,left=" + le +",top=" + to + ",width=" + wid +",height=" + heig;
			ww = window.open(v,p,str);
			ww.focus();

}


function WinOpenScroll(v,p,wid, heig)
{
	le = (screen.availWidth - wid)/2;
			to = (screen.availHeight - heig)/2;
			str = "resizable=no,scrollbars=yes,left=" + le +",top=" + to + ",width=" + wid +",height=" + heig;
			ww = window.open(v,p,str);
			ww.focus();

}


function op1(v,p,w,h)
		{
			le = (screen.availWidth - w)/2;
			to = (screen.availHeight - h)/2;
			str = "resizable=no,left=" + le +",top=" + to + ",width=" + w + ",height=" + h + ",scrollbars=yes";
			window.open(v,p,str);
			
		}
///-----
// Grouping two checkboxs as radiobuttons group
///-----
function Chb_Group(a,b)
		{
			elem1 = document.getElementById(a);
			elem2 = document.getElementById(b);
			if(elem1.checked)
				{
					elem2.checked = false;
				};
				
		}
		
///---
// Finding element
///---
		
		function FIND(item) {
        if( window.mmIsOpera ) return(document.getElementById(item));
        if (document.all) return(document.all[item]);
        if (document.getElementById) return(document.getElementById(item));
        return(false);
}
		
