// PUGON.COM 2005-09-10
// COPYRIGHT PUGON.COM
// THIS CODE MAY NOT BE USED OUTSIDE THIS DOMAIN [License to Towerprogramme.com 2005-10-01 - 2006-10-01]
// THESE FUNCTIONS MAY NOT BE USED OR CALLED FROM CODE NOT WRITTEN BY PUGON.COM
// VIOLATION OF THE RULES STATED ABOVE WILL BE PROSECUTED
//
// NONCOMERCIAL USE IS NOT REGULATED BY THE THIS COPYRIGHT STATEMENT
//
count=15;countk=25;
function nothing(){return(0);}
function cFi(obj,wh){if(obj.value==wh){obj.otxt=wh;obj.value='';}}
function fFi(obj){if(obj.value==""){obj.value=obj.otxt;}}
function prev(){stn=document.fo.stn.value-count;if(stn<0){stn=0;}document.fo.stn.value=stn;document.fo.submit();}
function next(){stn=parseFloat(document.fo.stn.value)+count;document.fo.stn.value=stn;document.fo.submit();}
function prevk(){stn=document.fo.stn.value-countk;if(stn<0){stn=0;}document.fo.stn.value=stn;document.fo.submit();}
function nextk(){stn=parseFloat(document.fo.stn.value)+countk;document.fo.stn.value=stn;document.fo.submit();}
function isien(){if(navigator.appName.indexOf("xplorer")>0){return(1);}return(0);}
function getCheckedValue(radioObj){if(!radioObj){return "-1";}var radioLength=radioObj.length;if(radioLength==undefined){if(radioObj.checked){return radioObj.value;}else{return "-2";}}for(var i=0;i<radioLength;i++){if(radioObj[i].checked){return radioObj[i].value;}}return "-3";}
function goBack(){history.back();}
function setTxtSize(sz){if(sz==1){document.fo.txtsize.value=2;}else{document.fo.txtsize.value=1;}submForm();}//1 small, 2 large
function submForm(){document.fo.submit();}
function infoWin(tp){nw=window.open("_win_info.php?tp="+tp+"&txtsize="+document.fo.txtsize.value,"infoWin","width=400,height=300,scrollbars=no,resizable=no");}

function printPage(){
	nw=window.open("_win_article_print.php?mid="+document.fo.mid.value+"&uid="+document.fo.uid.value+"&aid="+document.fo.aid.value+"&typ="+document.fo.typ.value+"&noprint=1&subn="+STR_subname+"&headn="+STR_headname,"printWin","width=420,height=460,scrollbars=no,resizable=no");
}

function addNewsMail(){
	var epos=document.getElementById("eposnews").value;
	if(epos=="your@email.com"){alert("Please enter your e-mail!");return(0);}
	nw=window.open("_win_info.php?tp=addNewsMail&txtsize="+document.fo.txtsize.value+"&epos="+epos,"infoWin","width=400,height=300,scrollbars=no,resizable=no");
}
function showAllNews(){
	//alert("showAllNews");
}
function showAllEvents(){
	document.fo.aid.value=0;
	document.fo.typ.value=0;
	document.fo.mid.value=0;
	document.fo.uid.value=0;
	document.fo.san.value=1;
	document.fo.submit();
	//alert("showAllEvents");
}
