
var _url = '';
function change( obj, url)
{
 _url = obj.src;
 obj.src = url;
 obj.onmouseout = function(e)
	{
		obj.src = _url;
	}
}

function js( form,value )
{
	var sb = document.getElementById( form );
	if( sb ) {
		sb.action += value;
		sb.submit();
		
	} else alert("Forma nerasta!");// if
	return false;
}

// gauna objekta pagal jo id pavadinima
function $( name ) {
	return document.getElementById( name );
}

// gauna elementu sarasa kuriu vardas yra name
function $$( name ) {
	return document.getElementsByName( name );
}

// funkcija yra ideali funkcijai js tik kad action'a ne prideda, o priskiria 
function jg( form,value )
{
   	var name = value ? form : JS_FORM_NAME;
	var vals = value ? value : form;
	var form = $$( name );
	
	if( form ) {
		form = form[ 0 ];
     	form.action = vals;
    	form.submit();
	} // if
	return false;
}

    function cdalcHeight()
		{
		//var the_height=document.frames['the_iframe'].document.body.scrollHeight;//find the height of the internal page
		 var the_height=document.getElementById('submit_frame').contentWindow.document.body.scrollHeight;//find the height of the internal page
		
		 //document.getElementById('the_iframe').style.height=the_height;//change the height of the iframe
		document.getElementById('submit_frame').height=the_height;//change the height of the iframe
		}
   
    