function preview(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=620,left = 485,top = 60');");
}




/*    Window PopUp Once     */

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var expDays = 0; // number of days the cookie should last

var page = "poling_capreswapres.shtml";
var windowprops = "width=400,height=430,location=no,left = 312,top = 10, toolbar=no,menubar=no,scrollbars=yes,resizable=yes";

function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
var path = (argc > 3) ? argv[3] : null;  
var domain = (argc > 4) ? argv[4] : null;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
var exp = new Date();  
exp.setTime (exp.getTime() - 1);  
var cval = GetCookie (name);  
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
   }
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function checkCount() {
var count = GetCookie('count');
if (count == null) {
count=1;
SetCookie('count', count, exp);

window.open(page, "", windowprops);

}
else {
count++;
SetCookie('count', count, exp);
   }
}
//  End -->




// etiscroll -->

/*
Dynamic Fader Script (updated: 00/08/05)
Created and submitted by Nicholas Poh (hwinmain@yahoo.com) to Dynamicdrive.com
Key modifications by Dynamic Drive for stability/ efficiency in NS
For full source code, usage terms, and 100s more scripts, visit http://dynamicdrive.com
*/

//1) Configure messages:
		var TS_message = new Array();
             TS_message[0] = '<a title="Web Design &amp; Hosting" target="_blank" href="http://www.esero.com"><img border="0" src="../../timenu/logo/esero.gif" width="120" height="72"></a>';
	       TS_message[1] = 'DATABASE TOKOH INDONESIA';
		TS_message[2] = 'THE EXCELLENT BIOGRAPHY';

//2) Configure fader width and colors:
             var TS_scrollwidth=120      //configure fader width
 		var TS_colorFG = 0xFFFFFF;	// Text color
		var TS_colorBG = 0xCC9900;  //bgColor

             // uncomment any value you wanted to change
		var TS_ymax    = 200;			// How many pixel to move
		var TS_ystep   = 3;			// 1 or -1 only (Scroll direction)
		// var TS_speed   = 50;			// The smaller the value the faster
		// var TS_pause   = 20;			// Pause time(milisecond) between messages
		// var TS_fadestep= 100;			// Steps to fade in and out

             if (document.all)
             document.write('<style>#containerarea{width:'+TS_scrollwidth+'}</style>')

