function openrsspage()
	{
		var w = window.open("rss.htm","","width=360,height=550,status=no, resizable=no, location=no, menubar=no, toolbar=no, scrollbars");
	}
function opengrade()
	{
		var w = window.open("../grades/grades.aspx", "", "width=380, height=400, status=no, resizable=no, location=no, menubar=no, toolbar=no");
	}
function openarea()
	{
		var w = window.open("../areas/areas.aspx", "", "width=520, height=420, status=no, resizable=no, location=no, menubar=no, toolbar=no");
	}
function redirectContact()
	{
		window.location.href = "http://www.aalocums.co.uk/contact_us.asp";
	}
function noLogon()
	{
		alert("You must login to access this service");
	}
function openPayRates()
	{
		var w = window.open("../rates/","","width=630,height=550,status=no, resizable=no, location=no, menubar=no, toolbar=no");
	}
function moveList(dir)
    {
			var p = document.getElementById('choiceList');
			if (dir == "up")
			{
				if(p.style.top != "0px") {
						p.style.top = parseInt(p.style.top) + 26 + "px";
				}
			}
			else
			{
                he = parseInt(p.style.height) - 330;
				if (-parseInt(p.style.top) < he)
				{
					p.style.top = parseInt(p.style.top) - 26 + "px";
				}
			}
    }
function hosMustLogin()
    {
        alert ("To view jobs by hospital you must first login");
    }
function changeTab(e)
    {
        var iFra = document.getElementById('dataI');

        if (e == 'j') {
            iFra.src = "views/allJobs.aspx";
            var s = document.getElementById('hos');
            s.className = "notCurrent";
            s = document.getElementById('nor');
            s.className = "current";
            s = document.getElementById('are');
            s.className = "notCurrent";
            s = document.getElementById('gra');
            s.className = "notCurrent";
            s = document.getElementById('sel');
            s.className = "notCurrent";
        } else if (e == 'h') {
            iFra.src = "views/hospitals.aspx";
            var s = document.getElementById('hos');
            s.className = "current";
            s = document.getElementById('nor');
            s.className = "notCurrent";
            s = document.getElementById('are');
            s.className = "notCurrent";
            s = document.getElementById('gra');
            s.className = "notCurrent";
            s = document.getElementById('sel');
            s.className = "notCurrent";
        } else if (e == 'a') {
            iFra.src = "views/areas.aspx";
            var s = document.getElementById('hos');
            s.className = "notCurrent";
            s = document.getElementById('nor');
            s.className = "notCurrent";
            s = document.getElementById('are');
            s.className = "current";
            s = document.getElementById('gra');
            s.className = "notCurrent";
            s = document.getElementById('sel');
            s.className = "notCurrent";
        } else if (e == 'g') {
            iFra.src = "views/grades.aspx";
            var s = document.getElementById('hos');
            s.className = "notCurrent";
            s = document.getElementById('nor');
            s.className = "notCurrent";
            s = document.getElementById('are');
            s.className = "notCurrent";
            s = document.getElementById('gra');
            s.className = "current";
            s = document.getElementById('sel');
            s.className = "notCurrent";
        } else {
            iFra.src = "views/selected.aspx";
            var s = document.getElementById('hos');
            s.className = "notCurrent";
            s = document.getElementById('nor');
            s.className = "notCurrent";
            s = document.getElementById('are');
            s.className = "notCurrent";
            s = document.getElementById('gra');
            s.className = "notCurrent";
            s = document.getElementById('sel');
            s.className = "current";
        }
    }
function openLIFrame()
    {
        //var s = document.getElementById('lFra');

        //s.src = "views/login.aspx?t=1";

        /*var isIE = navigator.appName.indexOf("Microsoft") != -1;
        if (isIE)
        {
            if (parseInt(document.documentElement.scrollTop) == 0)
            {
                s.style.marginTop = "-115px";
            }
            else
            {
                s.style.marginTop = parseInt(document.documentElement.scrollTop) - 115 + "px";
            }
        }
        else
        {
            if (window.pageYOffset == 0)
            {
                s.style.marginTop = "-115px";
            }
            else
            {
                s.style.marginTop = parseInt(window.pageYOffset) - 115 + "px";
            }
        }

        s.style.display = "block"; */

		var w = window.open("views/login.aspx", "", "width=410, height=270, status=no, resizable=no, location=no, menubar=no, toolbar=no");			var isIE = navigator.appName.indexOf("Microsoft") != -1;
        if (isIE)
		{
			w.moveTo(window.screenLeft,window.screenTop);
		}
    }

function showLLogin()
    {
        /*var s = document.getElementById('emailBox');

        var isIE = navigator.appName.indexOf("Microsoft") != -1;
        if (isIE)
        {
            if (parseInt(document.documentElement.scrollTop) == 0)
            {
                s.style.marginTop = "-115px";
            }
            else
            {
                s.style.marginTop = parseInt(document.documentElement.scrollTop) - 115 + "px";
            }
        }
        else
        {
            if (window.pageYOffset == 0)
            {
                s.style.marginTop = "-115px";
            }
            else
            {
                s.style.marginTop = parseInt(window.pageYOffset) - 115 + "px";
            }
        }

        s.style.display = "block";
        */
		var w = window.open("views/justEmail.aspx", "", "width=400, height=150, status=no, resizable=no, location=no, menubar=no, toolbar=no");			var isIE = navigator.appName.indexOf("Microsoft") != -1;
        if (isIE)
		{
			w.moveTo(window.screenLeft,window.screenTop);
		}
    }
function closeLLogin()
    {
        window.close();
    }
function hideLIFrame(e)
    {
        var s = document.getElementById('lFra');

        s.src = "";
        s.style.display = "none";
        if (e == 'l') {
            window.location.href = "../redirect.aspx";
        }
    }
function changeArrow(name, type)
    {
        if (type == '0') {
            var x = document.getElementById(name);
            if (name == 'prev') {
                x.src = "../images/previousY.jpg";
            } else if (name == 'first') {
                x.src = "../images/firstY.jpg";
            } else if (name == 'next') {
                x.src = "../images/nextY.jpg";
            } else if (name == 'last') {
                x.src = "../images/lastY.jpg";
            }
        } else {
            var x = document.getElementById(name);
            if (name == 'prev') {
                x.src = "../images/previous.jpg";
            } else if (name == 'first') {
                x.src = "../images/first.jpg";
            } else if (name == 'next') {
                x.src = "../images/next.jpg";
            } else if (name == 'last') {
                x.src = "../images/last.jpg";
            }
        }
    }
