function gotoPageNewPath()
{
	// grab the value out of the seleted drop down item
	var selected = $("#DropDownNav").val();
	// use that value as the id for the link in the hidden div, get the link and viola.	
	location = $("#"+selected).attr("href");

}







// this code would print "hello world" if it was at http://localhost/index.php?var1=hello&var2=world


function gotoDrPage()
{
	// grab the value out of the seleted drop down item
	var drselected = $("#DrDropDown").val();
	
	alert ( drselected );
	// use that value as the id for the link in the hidden div, get the link and viola.	

        alert ( $("#"+drselected).attr("href") );
	location = $("#"+drselected).attr("href");



}

function $_GETVAR(q,s) {
    s = (s) ? s : window.location.search;
    var re = new RegExp('&amp;'+q+'=([^&amp;]*)','i');
    return (s=s.replace(/^\?/,'&amp;').match(re)) ?s=s[1] :s='';
}






function getDrPage()
{

       //var selected = $("#DropDownNav").val();
	// use that value as the id for the link in the hidden div, get the link and viola.

       var pagelink = $("#hidden0").attr("href");
      // alert (pagelink);
	
	//location = $("#"+selected).attr("href");

      $('#doctor-page').load(pagelink);


}
