Torna al Thread
function LoadHome(sender, eventArgs) {
var arg = eventArgs.get_argument();
if (arg == 1)
window.location.href("index.aspx");
return false;
}
function OnClientDropDownOpening(sender, eventArgs) {
if (sender.get_selectedItem()) {
sender.set_text("");
}
}
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
return oWindow;
}
function Close() {
GetRadWindow().close();
}
function CallNotification() {
var PwdAttuale = '<%=ViewState("PasswordAttuale")%>';
var notification = $find("<%= RadNotification1.ClientID %>");
var txtpwdnow = document.getElementById("<%= txtpwdnow.ClientID %>");
var txtpwdnew = document.getElementById("<%= txtpwdnew.ClientID %>");
var txtpwdnewconf = document.getElementById("<%= Txtpwdnewconf.ClientID %>");
if (txtpwdnow.value != PwdAttuale) {
var messaggio = "Password attuale errata.";
notification.set_text(messaggio);
notification.show();
return false;
} else if (txtpwdnew.value != txtpwdnewconf.value) {
var messaggio = "Password di conferma errata.";
notification.set_text(messaggio);
notification.show();
return false;
}
return true;
}
function openRadupimage() {
$find("<%= RadWindowLoadprofile.ClientID %>").show();
}
function openRadupcard() {
$find("<%= RadWindowLoadcard.ClientID %>").show();
}
function openRadprewimage() {
$find("<%= RadWindowAnteprimaProfile.ClientID %>").show();
}
function openRadprewcard() {
$find("<%= RadWindowAnteprimaCard.ClientID %>").show();
}
function openRaddelete() {
if (raddelete.style.display == 'none') {
confermadelete.style.display = 'none';
raddelete.style.display = 'block';
}
$find("<%= RadWindowProfiledelete.ClientID %>").show();
}
function closeRaddelete() {
$find("<%= RadWindowProfiledelete.ClientID %>").close();
}
function closeRaddelete_redirect() {
$find("<%= RadWindowProfiledelete.ClientID %>").close();
window.location.href("index.aspx");
}
function openRadconfirmdelete() {
raddelete.style.display = 'none';
confermadelete.style.display = 'block';
}
function openRadchangepwd() {
$find("<%= RadWindowChangepwd.ClientID %>").show();
}
function closeRadchangepwd() {
$find("<%= RadWindowChangepwd.ClientID %>").close();
}
function Loadimage(sender, argument) {
var strimage =argument._argument;
var divimage = $get("<%= imgprofile100.ClientID %>");
//var str;
//str = strimage.substr(1,2);
divimage.style.backgroundImage = 'url('+ strimage +')';
}
function closeRadprewimage() {
$find("<%= RadWindowAnteprimaProfile.ClientID %>").close();
}
function closeRadprewcard() {
$find("<%= RadWindowAnteprimaCard.ClientID %>").close();
}
function openRadinvito() {
$find("<%= RadWindowinvito.ClientID %>").show();
}
function closeRadinvito() {
$find("<%= RadWindowinvito.ClientID %>").close();
}
function openRadcategoria() {
$find("<%= RadWindowInsertCategory.ClientID %>").show();
}
function OnFocus1(sender, eventArgs) {
$get('PasswordMask1').style.display = 'none';
$get('Password1').style.display = 'inline';
$find('<%= Radpassword1.ClientID %>').focus();
}
function OnBlur1(sender, eventArgs) {
if (sender.isEmpty()) {
$get('PasswordMask1').style.display = 'inline';
$get('Password1').style.display = 'none';
}
}
function RadComboBox1_KeyPressing(sender, args) {
if (args.get_domEvent().keyCode == 13) {
}
if (args.get_domEvent().keyCode == 9) {
//do something
}
}
function visiblediv() {
spec.style.display = 'none';
clas.style.display = 'block';
}
function visiblediv1() {
spec.style.display = 'block';
clas.style.display = 'none';
}
function KeyPressing(sender, args) {
//If ENTER was pressed
if (args.get_domEvent().keyCode == 13) {
}
//If TAB was pressed
if (args.get_domEvent().keyCode == 9) {
if (sender.get_highlightedItem()) {
sender.get_highlightedItem().select();
}
}
}
function OnclientFocus(sender, args) {
var input = sender.get_inputDomElement();
sender.highlightAllMatches(input.defaultValue);
sender.showDropDown();
}