// Javascript

function openWindowFit(url,name,ancho,alto){
	features='width=' + ancho + ',height=' + alto + ', scrollbars';
	window.open(url,name,features);	
}

function openBanner(url){
	features='width=486, height=60';
	window.open(url,'WinBanner',features);	
}

function centeredWindow(url,name,ancho,alto){
	xpos = ((screen.width)/2)-(ancho/2);
	ypos = ((screen.height)/2)-(alto/2);
	features = 'width='+ancho+',height='+alto+',left='+xpos+',top='+ypos+'directories=0,resizable=0,location=0,status=0,toolbar=0,menubar=0,scrollbars=1,titlebar=0';
	newCenteredWindow = window.open(url,name,features);
}

function mouseOver(src,color) {
 		src.style.cursor = 'hand';
 		src.bgColor = color;
}
	
function mouseOut(src,color) {
		src.style.cursor = 'default';
 		src.bgColor = color;
}

function myGetUrl(url){
		self.location.href = url;
}

msg = 'Topatu gura dozuna laukian idatzi behar dozu';
function checkForm(){
	if ((document.form.query.value == '') || (document.form.query.value == null)){
		alert(msg);
		return(false);
	}
	else{
		return(true);
	}
} 