function printiMeil(name,domain,styleclass,text){
	imeil = name + "@" + domain;
	meil2 = "<a href=\"mai" + "lto:" + imeil + "\"";
	if(styleclass) meil2 += " class=" + styleclass;
	if(!text) text = imeil;
	meil2 += ">" + text + "</a>";
	document.write(meil2);
}

function openWindow(file, name, width, height){
	if(!name) name = "popup";
	if(!width) width = 600;
	if(!height) height = 300;
	popUp = open(file,name,'scrollbars=yes,toolbar=no,directories=no,location=no,menubar=no,resizable=yes,header=no,width='+width+',height='+height);
	return false;
}

function point(imageName){
	timer = new Date();
	if (document.images) {
    	document[imageName].src ="/img/menudotover.gif";
	return true;
	}
}
function nopoint(imageName){
	if (document.images) {
    	document[imageName].src ="/img/menudotend.gif";
	return true;
	}
}

function checkValues(form){
	i = 0;
	
	while(i < form.length){
		element = form.elements[i];
		if(element.required && element.value == ""){
			alert(form.missedrequired.value);
			return false;
		}

		if(element.maxlength && element.maxlength < element.value.length){
			alert(form.lengtherrormessage.value);
			return false;
		}
		i++;
	}
	
	return true;
}
