var Error = function(namespace, e)
{   
    // this function requires prototype to be loaded before it
    // because it extends the inbuilt error object   
    alert('ERROR \n Who:  '+namespace+' \n Message: '+e.message);
};


/*
    Requires: Scriptacuous
*/
var showSuccessMessage = function(successMessageDivId)
{
    Effect.Appear(successMessageDivId, { duration: 1.0 });
    setTimeout(function(){
        Effect.Fade(successMessageDivId, { duration: 1.0 }); 
    }, 6000);         
}
var fadeOut = function(div)
{                           
    Effect.Fade(div, { duration: 1.0 });       
}

function viewJob(jobId)
{    
    window.open('Candidate_Job_Search_Detail/?jobId='+jobId,'fsda','width=800px,height=800px,resizable,scrollbars');    
}
function viewPopupWindow(url)
{    
    window.open(url,url,'width=800px,height=800px,resizable,scrollbars');    
}

function viewCandidate(candidateId)
{
	window.open('/Employer_Candidate_Search_Detail/?cid='+candidateId,'viewCandidate','width=800px,height=800px,resizable,scrollbars');    
	return(false);
}
