﻿   
function dotxtjobtypecheck(object)
    {
        if (object.value == "(Job title or keyword)")
            {
                object.value = "";
            }
        else if (object.value == "")
            {
                object.value = "(Job title or keyword)";
            }
    }

function dotxtjobwhere(object)
    {
        if (object.value == "(City, State, Country)")
            {
                object.value = "";
            }
        else if (object.value == "")
            {
                object.value = "(City, State, Country)";
            }
    }

function dofrntarrow(stat,objectid)
    {
        if (stat==1)
        {
            document.getElementById(objectid).src = 'images/fronpagearrow_sel.jpg'
        }
        if (stat==2)
        {
            document.getElementById(objectid).src = 'images/fronpagearrow.jpg'
        }
        
    }

function ToggleDisplay(id)
	{ 
		var elem = document.getElementById(id);
		if (elem) 
		    {
		        if (elem.style.display != 'block') 
		            {
			            elem.style.display = 'block';
			            elem.style.visibility = 'visible';
		            }
		        else
		            {
			            elem.style.display = 'none';
			            elem.style.visibility = 'hidden';
		            }
		    } 
		
	}
	
function OnClick()
    {
	    if( divCalendar.style.display == "none")
		    divCalendar.style.display = "";
		else
				divCalendar.style.display = "none";
	}

function OnClick2()
	{
    	if( divCalendar2.style.display == "none")
			divCalendar2.style.display = "";
		else
			divCalendar2.style.display = "none";
	}
	
function disableSelection(target)
    {
        if (typeof target.onselectstart!="undefined") 
	        target.onselectstart=function(){return false}
        else if (typeof target.style.MozUserSelect!="undefined") 
	        target.style.MozUserSelect="none"
        else 
	        target.onmousedown=function(){return false}
        target.style.cursor = "default"
    }

function rundisableSelection()
    {
        disableSelection(document.getElementById("UpdatePanel1"));
    }

function rundisableSelectionbyarea(thisarea)
    {   
        disableSelection(document.getElementById(thisarea));
    }