﻿/* $(document).ready(function(){
    $("a[rel^='prettyPhoto']").prettyPhoto({theme:'dark_rounded'});
}); */

function PasswordChange(change) {
    var id = $("[id$=_divPasswordChange]").attr("id");
    $("#" + id + " input").val("");
    if (change) {
        $("#" + id).show();
        $("#" + id + " input:first").focus();
    } else {
        $("#" + id).hide();
    }
}

function PasswordRecover(uniqueID){ 
    var email = $("[id$=_txtEmailAddress]").attr("id");
    var value = $("#" + id).val();
    
    if (value.length == 0) { 
        return false; 
    } else { 
        __doPostBack(uniqueID, '');
    }
}

function Login(uniqueID){ 
    var email = $("[id$=_txtLogin]").val();
    var password = $("[id$=_txtPassword]").val();
    
    if (valEmail.length == 0 && valPassWord.length == 0) { 
        return false; 
    } else { 
        __doPostBack(uniqueID, '');
    }
}

function LoginSideBar(uniqueID){ 
    var email = $("[id$=_txtEmail]").val();
    var password = $("[id$=_txtPassword]").val();
 
    if (email.length == 0 && password.length == 0) { 
        return false; 
    } else { 
        __doPostBack(uniqueID, '');
    }
}

function AutoFill(selector, text) {
    $(selector).attr({ value: text }).focus(function() { 
		if($(this).val()==text){ $(this).val(""); }}).blur(function(){
		if($(this).val()==""){ $(this).val(text); }
	});
}
