
/* informacija o svojstvima */
/* popUpProperties(document.getElementById('id_elementa').style); */
/* popUpProperties(document.getElementById('id_elementa')); */

function popUpProperties(inobj) {
	op = window.open();
	op.document.open('text/plain');
	for (objprop in inobj) {
	op.document.write(objprop + ' => ' + inobj[objprop] + '\n');
	}
	op.document.close();
}

/* promjena sirine objekta */
/* sirina('id_elementa', '600', 'px'); */

function sirina(id_elementa, sirina, mjera){
	document.getElementById(id_elementa).style.width= sirina + mjera; 
}

function podesi_sirinu_stranice(){
	var Cwidth= parseInt(top.document.body.clientWidth);
	if (Cwidth < 900) {
		/* 1024 * 768 */
		Cwidth = 900;
	} else if (Cwidth > 1500) {
		/* 1600 * 1200 */
		Cwidth = 1500;
	} 
	sirina('stranica', Cwidth, 'px');
}




/* razno */

function kazi(){
	alert(navigator.userAgent);
}

function IsBrowser(strBrowserName) {
	var booBrowserFound = false;
	if (navigator.userAgent.indexOf(strBrowserName) != -1) {
		booBrowserFound = true;
	}
	return booBrowserFound;
}

function resizeframeset() {
	if (!IsBrowser("Opera")) {
		var Cwidth = parseInt(top.document.body.clientWidth);
		if (top.frames['refresh']) { 
			return false; 
		} 
		if (parseInt(Cwidth) < 973) {
			document.getElementById('Tportal').cols="123,*,88"; 
		} 
		else { 
			 document.getElementById('Tportal').cols="*,762,*"; 
		} 
	}
} 
