function bookmark(url, description)
{
netscape="U&#380;ywasz przegl&#261;darki Netscape. Aby doda&#263; strone do ulubionych wci&#347;nij Ctrl+D"

if (navigator.appName=='Microsoft Internet Explorer')
{
window.external.AddFavorite(url, description);
}
else if (navigator.appName=='Netscape')
{
window.sidebar.addPanel(description, url,"");
}
}

function validate_email(field,alerttxt){
	with (field){
		apos=value.indexOf("@")
		dotpos=value.lastIndexOf(".")
		if (apos<1||dotpos-apos<2) 
			{alert(alerttxt);return false}
		else {return true}
	}
}
function validate_form(thisform){
	with (thisform){
		if (validate_email(email," Wprowadzono niepoprawny adres e-mail !")==false)
		{email.focus();return false}
	}
}

function checkForm(){
	
	if(document.forms.offer.email.value!=""){
		if(document.forms.offer.info.value!=""){
		
		}
		else{
			alert("Nie wprowadzono tresci zapytania");
			exit;
		}
	}
	else{
		alert("Nie wprowdziles adresu email.");
		exit;
	}
}

