function setPointer(theRow, thePointerColor)
{
if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
return false;
}
var row_cells_cnt = theRow.cells.length;
for (var c = 0; c < row_cells_cnt; c++) {
theRow.cells[c].bgColor = thePointerColor;
}
return true;
}
PositionX = (screen.width/2) - 250;
PositionY = (screen.height/2) - 150;
defaultWidth = 500;
defaultHeight = 500;
var AutoClose = true;
if (parseInt(navigator.appVersion.charAt(0))>=4)
{
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle)
{
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('
Nalagam...');writeln('');
writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
writeln('width=100-(document.body.clientWidth-document.images[0].width);');
writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');
writeln('window.innerWidth=document.images["George"].width;');writeln('window.innerHeight=document.images["George"].height;}}');
writeln('function doTitle(){document.title="Slika";}');writeln('');
if (!AutoClose) writeln('')
else writeln('');
writeln('
');
close();
}
}
var bikky = document.cookie;
function getCookie(name)
{
var index = bikky.indexOf(name + "=");
if (index == -1) return null;
index = bikky.indexOf("=", index) + 1;
var endstr = bikky.indexOf(";", index);
if (endstr == -1) endstr = bikky.length;
return unescape(bikky.substring(index, endstr));
}
function setCookie(name, value)
{
if (value != null && value != "")
document.cookie=name + "=" + escape(value) + ";";
bikky= document.cookie;
}
var bikkys = document.cookie;
function getexpirydate(nodays)
{
var UTCstring;
Today = new Date();
nomilli=Date.parse(Today);
Today.setTime(nomilli+nodays*24*60*60*1000);
UTCstring = Today.toUTCString();
return UTCstring;
}
function getcookietime(cookiename)
{
var cookiestring=""+document.cookie;
var index1=cookiestring.indexOf(cookiename);
if (index1==-1 || cookiename=="") return "";
var index2=cookiestring.indexOf(';',index1);
if (index2==-1) index2=cookiestring.length;
return unescape(cookiestring.substring(index1+cookiename.length+1,index2));
}
function setcookietime(name,value,duration)
{
cookiestring=name+"="+escape(value)+";EXPIRES="+getexpirydate(duration);
document.cookie=cookiestring;
bikkys= document.cookie;
if(!getcookietime(name)){
return false;
}
else{
return true;
}
}
function focusLogin()
{
document.forms[0].username.focus();
}
// pop up
function popUp(wdth, hght, alertmsg, url, scroll)
{
var screenwidth = 0;
var screenheight = 0;
var lft,tp;
scroll = (scroll == 1) ? 'yes' : 'no';
if( (window.screen) && (screen.width) && (screen.height) ){screenwidth = screen.width; screenheight = screen.height;}
if(screenwidth != 0) lft = (screenwidth - wdth)/2;
if(screenheight != 0) tp = (screenheight - hght)/2;
var popupwindow = window.open(url , 'prnwnd', 'width=' + wdth + ',height=' + hght + ',left=' + lft + ',top=' + tp + ',screenX=' + lft + ',screenY=' + tp + ',dependent=yes,menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=' + scroll);
if (!popupwindow)
{
alert(alertmsg);
}
else if (popupwindow.blur)
{
popupwindow.focus();
}
}
var submitted = false;
function submitLogin(alertmsg)
{
if (submitted)
{
alert(alertmsg);
return (false);
}
else
{
submitted = true;
return (true);
}
}
var submitted = false;
function submitRetrievPassword(username, email, submitform)
{
if (document.forgetform.username.value == '')
{
alert(username);
document.forgetform.username.select();
return (false);
}
if (document.forgetform.email.value == '')
{
alert(email);
document.forgetform.email.select();
return (false);
}
if (submitted)
{
alert(submitform);
return (false);
}
else
{
submitted = true;
return (true);
}
}