function hide_div(div_id) {
	var dv=document.getElementById(div_id);	
	dv.style.visibility='hidden';
}
function show_div(div_id, t) {
	if(t.value.length>0) {
		var dv=document.getElementById(div_id);	
		dv.className='result_visible';
	}
}
function city_name_is(city, city_id) {
	document.getElementById('city').value=city;	
	document.getElementById('city_id').value=city_id;
}

function hide_suggest() {
	var dv=document.getElementById('popupPhotos');
	dv.className='result_hidden';
	dv.innerHTML='';
}

// JavaScript Document
function changeImage(path, imgMain)
{
	imgMain.src=path;
}

function changeImageHref(path, imgMain, a)
{
	imgMain.src=path;
	a.href=path;
}

function changeImageSize(path, imgId, aId, width, height)
{ // , imgMain, a, width, height
	//, imgMain, aImgMain, '.$newWidth.', '.$newHeight.'
//	alert(path);
	var imgMain=document.getElementById(imgId);
	var a=document.getElementById(aId);
	imgMain.src=path;
	imgMain.width=width;
	imgMain.height=height;
	a.href=path; 
}

function cursorHand()
{
	document.body.style.cursor = 'hand';
}

function cursorDefault()
{
	document.body.style.cursor = 'default';
}