// collegeRecruiting.js

	function retrieveURL(alertMessage) 
	{
	    
    	var collegeNamelist = document.getElementById("collegeOptions");
	    var collegeName = collegeNamelist.options[collegeNamelist.selectedIndex].text;
	    var jobTypelist = document.getElementById("jobType");
	    var jobType = jobTypelist.options[jobTypelist.selectedIndex].text;

        if( collegeName == null || collegeName == "Select Your School" )
    	{
    	    alert(alertMessage);
    	    return false;
  		}
	    
    	if( jobType == null || jobType == "Select Your Job Type" )
		{
		    alert(alertMessage);
		    return false;
		}
   	   	
    	var key = collegeName + " " + jobType;
    	var jobUrlList = document.getElementById("jobUrl");
    	    	
    	for(var i=0; i<jobUrlList.length;i++)
    	{
    	    if(jobUrlList.options[i].value == key)
    	    {
    	        var url = jobUrlList.options[i].text;
    	        if(url != null && url != "")
    	        {
           	        sendto('','',url,'2');
    	        }

    	        
    	    }
    	}

	}