function popup(mylink, windowname)
{
	if (! window.focus)return true;

	var href;

	if (typeof(mylink) == 'string'){
	   href=mylink;
	}else{
	   href=mylink.href;
	}

	window.open(href, windowname, 'width=650,height=650,scrollbars=no');
	return false;
}

function targetopener(mylink, closeme, closeonly)
{
	if (! (window.focus && window.opener))
		return true;

	window.opener.focus();

	if (! closeonly)
		window.opener.location.href=mylink.href;
	
	if (closeme)
		window.close();

	return false;
}

function contact(contactid)
{
	var currentwin = window.open(contactid, contactid, 'toolbar=no,resize=yes,scrollbars=yes,location=no,width=900,height=670');
	currentwin.focus();
}

function NavTo(url)
{ 
	window.location = url; 
}

function ajaxpage(url, containerid){
		$('#'+containerid).load(url);
}

function losSelettionJob(){
		$(".gobsListB:hidden:first").fadeIn(500,losSelettionJob);}

function ajaxcombo(selectobjID, loadarea){
var selectobj=document.getElementById? document.getElementById(selectobjID) : "";

if (selectobj!="")
 if(selectobj.options[selectobj.selectedIndex].value != ""){
	$('#'+loadarea).load("job_list.php?"+selectobj.options[selectobj.selectedIndex].value,losSelettionJob );

	//ajaxpage("job_list.php?"+selectobj.options[selectobj.selectedIndex].value, loadarea);
	document.getElementById('rss').href = "rss.php?"+selectobj.options[selectobj.selectedIndex].value;
//	document.getElementById('rss_txt').innerHTML = selectobj.options[selectobj.selectedIndex].innerHTML;
 }else{
 	ajaxpage("introduction.html", loadarea);
	document.getElementById('rss').href = "rss.php";
	document.getElementById('rss_txt').innerHTML = "all";
 }
 
}

