function show_div($what_div) {
	new Effect.Appear($what_div);
}
function hide_div($what_div) {
	new Effect.Fade($what_div);
}
function addUser() {
	new Ajax.Updater ('notAddUser', base_url+'main/ajxAddUser',
    {method:'post', postBody:'iUsrNAME='+$F('iUsrNAME')+'&iUsrEMAIL='+$F('iUsrEMAIL')+'&iUsrPASS='+$F('iUsrPASS')});
	new Effect.Appear('notAddUser');
}

function rem_photo($iPhtID,$iUsrID,$iViewPage) {
    new Ajax.Updater ('fictive', base_url+'pregled/ajx_phtRem', {method:'post', postBody:'iPhtID='+$iPhtID});
    new Ajax.Updater ('photos', base_url+'pregled/ajx_phtView', {method:'post', postBody:'iUsrID='+$iUsrID+'&iViewPage='+$iViewPage});
}

function edit_photo_name($iPhtID) {
    new Ajax.Updater ('phtNAME', base_url+'pregled/ajx_phtNameEDIT', {method:'post', postBody:'iPhtID='+$iPhtID+'&iPhtNAME='+$F('iPhtNAME')});
    new Effect.Fade('editPhtNAME');
}

function edit_photo_desc($iPhtID) {
    new Ajax.Updater ('submitnote', base_url+'pregled/ajx_phtDescEDIT', {method:'post', postBody:'iPhtID='+$iPhtID+'&iPhtDESC='+$F('iPhtDESC')});
    new Effect.Fade('editPhtDESC');
}

function add_photo_fav($iFavPHT) {
	new Ajax.Updater ('notification', base_url+'pregled/ajx_favAdd', {method:'post', postBody:'iFavPHT='+$iFavPHT});
    new Effect.Appear('favNotification');
}

function add_friend($iFriendID) {
	new Ajax.Updater ('notification', base_url+'pregled/ajx_friendAdd', {method:'post', postBody:'iFriendID='+$iFriendID});
    new Effect.Appear('fndNotification');
}

function add_photo_comment() {
	new Ajax.Updater ('notification', base_url+'pregled/ajx_cmtAdd', {method:'post', postBody:'iCmtTEXT='+$F('iCmtTEXT')+'&iPhtID='+$F('iPhtID')});
new Effect.Fade('comentsInput');
}

function view_photo_comment() {
	new Ajax.Updater ('viewComments', base_url+'pregled/ajx_cmtView', {method:'post', postBody:'iPhtID='+$F('iPhtID')});
	//new Effect.Appear('viewComments');
    
}

function rem_gallery($iGalID) {
    new Ajax.Updater ('allgalleriescontainer', base_url+'pregled/ajx_galRem', {method:'post', postBody:'iGalID='+$iGalID});
}