	function confirmLink(theLink, theSqlQuery)
	{
		var is_confirmed = confirm(theSqlQuery);
		if (is_confirmed) 
			theLink.href += '&is_js_confirmed=1';
		return is_confirmed;
	}

	function confirml(text,l1,l2,l3,l4,l5)
	{
		var is_confirmed = confirm(text);
		if (is_confirmed) 
			StCh(l1,l2,l3,l4,l5);
		return is_confirmed;
	}

	function jumpScroll() 
	{
	   	window.scroll(0,150); // horizontal and vertical scroll targets
	}


	function ch_change( obj1, obj2 )
	{

		var elmm = document.getElementById(obj1).style.display;
		if(elmm=='none')
		{
			document.getElementById(obj1).style.display = "block";
			document.getElementById(obj2).style.display = "none";
		}
		else
		{
			document.getElementById(obj1).style.display = "none";
			document.getElementById(obj2).style.display = "block";
		}
	}

	function new_wind(adrese, w, h)
	{
		width=screen.width;
		height=screen.height;
		l=(width-w)/2;
		t=(height-h)/2-50;

		window.open(adrese, "_blank", "toolbar=no, location=no, left="+l+", top="+t+", directories=no, status=no, menubar=no, scrollbars=no, resizable=0, fullscreen=no, width="+w+", height="+h);
	}

	function new_winda(adrese, w, h)
	{
		width=screen.width;
		height=screen.height;
		l=(width-w)/2;
		t=(height-h)/2-50;
		window.open(adrese, "_blank", "toolbar=ns, location=no, left="+l+", top="+t+", directories=no, status=yes, menubar=no, scrollbars=yes, resizable=1, fullscreen=no, width="+w+", height="+h);
	}

	function new_winds(adrese, w, h)
	{
		width=screen.width;
		height=screen.height;
		l=(width-w)/2;
		t=(height-h)/2-50;
		window.open(adrese, "_blank", "toolbar=ns, location=no, left=1, top=1, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=1, fullscreen=no, width="+w+", height="+h);
		return false;
	}

	function alertSize() 
	{
		var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' ) {
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
		} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		}
//  window.alert( 'Width = ' + myWidth );
//  window.alert( 'Height = ' + myHeight );
		return ((myWidth/2)-250);
	}

	function alertSize_h() 
	{
		var myWidth = 0, myHeight = 0;
		if( typeof( window.innerWidth ) == 'number' )
		{
			myWidth = window.innerWidth;
			myHeight = window.innerHeight;
		}
		else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
		{
			myWidth = document.documentElement.clientWidth;
			myHeight = document.documentElement.clientHeight;
		}
		else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
		{
			myWidth = document.body.clientWidth;
			myHeight = document.body.clientHeight;
		}
		return ((myHeight/2)-150);
	}


	
