
/*$(document).ready(function(){
     $("div.ramka").corner("sharp");
   });
*/

function Redirect(link)
{
	window.location.href = link;
}

function zmienImg(link)
{
	$('#centerimg').attr({ 
          src: link
        });
}

function init()
{
	$('#images td').preload();
}


function RozwinHistory()
{
	if($("ul.showfistory").is(":hidden"))
	{
		$("ul.showfistory").slideDown("slow");
   }
	else
	{
      $("ul.showfistory").slideUp("slow");
   }
}

function Rozwin(act, id1, id2)
{
	if($("div#"+act).is(":hidden"))
	{
      
		/*if(id1 == 0)
		{
		   window.location.href = id2 + "," + id2 + ",kat.html";
		}
		else
		{
			window.location.href = id1 + "_" + id2 + "," + id2 + ",kat.html";
		}*/
		$("div#"+act).slideDown("slow");
		$("div#"+act).css("color", "#fff");
   }
	else
	{
      $("div#"+act).slideUp("slow");
		$("div#"+act).css("color", "#fff");
   }
}

function Linked(cat,act,id)
{
	if(act != 0)
	{
	   window.location.href = cat + ',' + act + ',' + id + ',detal_oferta.html';
	}
	else
	{
		window.location.href = cat + ',' + id + ',kategoria.html';
	}
}

function check_value() {
//firma -- text
if( document.zapytanie['firma'].value == '' ) {
	$("#firmainfo").text('pole nie może być puste');
   return ;
}
else
{
   $("#firmainfo").text('');
}
//nazwisko -- text
if( document.zapytanie['nazwisko'].value == '' ) {
	$("#nazwiskoinfo").text('pole nie może być puste');
	return ;
}
else
{
   $("#nazwiskoinfo").text('');
}
//telefon -- text
//email -- text
if( document.zapytanie['email'].value == '' ) {
	$("#emailinfo").text('pole nie może być puste');
	return ;
}
else
{
   $("#emailinfo").text('');
}
//tresc -- textarea
if( document.zapytanie['info'].value == '' ) {
	$("#infoinfo").text('pole nie może być puste');
	return ;
}
else
{
   $("#infoinfo").text('');
}
document.zapytanie.submit()
}

function clear_text() {
      var text = '';
      $("#input_word").val(text);
    };


