var theForm = document.forms['PhotoCallery'];
if (!theForm) {
    theForm = document.PhotoCallery;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}

function checkDate() {
	m = document.PhotoGallerySearch["Month"].value;
	y = document.PhotoGallerySearch["Year"].value;
	
}

function setCookie(c_name,value,expiredays) {
	var exdate=new Date()
	exdate.setDate(exdate.getDate()+expiredays)
	document.cookie=c_name+ "=" +escape(value)+
	((expiredays==null) ? "" : ";expires="+exdate)
}

function getCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=")
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1 
    c_end=document.cookie.indexOf(";",c_start)
    if (c_end==-1) c_end=document.cookie.length
    return unescape(document.cookie.substring(c_start,c_end))
    } 
  }
return null
}

function photoSubmit() {
	document.getElementById('PSLoading').style.display = 'inline';
    document.PhotoGallerySearch.action = document.PhotoGallerySearch.action + "&s=" + escape(document.PhotoGallerySearch['LongDescription'].value);
	WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("LinkButtonSubmit", "", true, "ValGroupDate", "", false, true))
}