// system worx, 2009
//
// just a simple function to create a popup window for googlemap
//
// Note : The window title (i.e. Google_Map) must not contain any blanks. IE can't handle those titles.
// Very stupid browser bug !! Don't use IE. Microsoft shouldn't continue this peace of shit
function createWindow(base,sid,lan,width,height) { 
  var params = 'width='+width+',height='+height+',left=100,top=200,resizable=yes';
  var pWin=window.open(base+'/yoursounds/googlemap2.php?sid='+sid+'&lan='+lan, 'Google_Map', params);
  pWin.focus();
}

function createImageWindow(pic,width,height) { 
	  var params = 'width='+width+',height='+height+',left=100,top=200,resizable=yes';
	  var pWin=window.open(pic, 'Image_Location', params);
	  pWin.focus();
	}


function createWishlistWindow(wishlist,width,height) { 
	  var params = 'width='+width+',height='+height+',left=100,top=200,resizable=yes,scrollbars=yes';
	  var pWin=window.open(wishlist, '_un_wishlist', params);
	  pWin.focus();
	}

// return to parent window from popup windows
function returnParent() {
	//opener.focus();
	top.parent.opener.focus();
	return false;
}


//return to parent window with link from popup windows
function returnParentUrl(url) {
	//opener.location.href=url;
	window.opener.window.location.href=url
	top.parent.opener.focus();
	return false;
}
