var actualShown="tomaszstojek";

function showCoop(id) {	
	if(id==actualShown) {
		;
	} else {
		$(actualShown).style.visibility = 'hidden';
		$(id).style.visibility = 'visible';
		actualShown = id;
	}
}

function rollIn(aID) {

  aID.firstChild.style.visibility = 'visible';

}

function rollOut(aID) {

  aID.firstChild.style.visibility = 'hidden';

}



function check(formname,chkfield) {

	document.forms[formname].elements[chkfield].checked=!(document.forms[formname].elements[chkfield].checked);

}



function $(obj){

	return document.getElementById(obj);

}



var standardDesc;

function sdesc(txt) {

	standardDesc = $('ico_desc').innerHTML;

	$('ico_desc').innerHTML = txt;

}



function hdesc() {

	$('ico_desc').innerHTML = standardDesc;

}



function disablePhone() {

	if(document.forms['rejestracja'].elements['telefon'].disabled == 'false') {

		document.forms['rejestracja'].elements['telefon'].disabled = 'true';

	} else {

		document.forms['rejestracja'].elements['telefon'].disabled = 'false';

	}

}



function resizeIframe(x){

  try {x.scrolling='no',x.style.height=x.contentWindow.document.body.scrollHeight+5+'px'}

  catch(x){}

}



function resizeIf(id) {

	var height = $(id).contentWindow.document.body.scrollHeight;

	$(id).height = height;

	

}



