<!-- SEAMIST Website scripts - if you can use em, go!

<!-- Login Script

function Login(form) {
  var username = form.username.value;
  var password = form.password.value;
  var server = form.server.value;
  if (username && password && server) {
    var htsite = "http://" + username + ":" + password + "@" + server;
    window.location = htsite;
  }
  else {
    alert("Please enter your username and password.");
  }
}
<!--End of Login Script

function closebutton() {
		window.close();
		}
function showprayer() {
	today = new Date();
        window.open('http://www.seamist.org/cgi-bin/praytoday.cgi?today=' + today, 'Tip', 'scrollbars,left=5,top=5,height=400,width=400');
        }


<!-- Begin Cell Highlighter
function menumovein(which){
  which.style.background='#CCCCCC'
}

function menumoveout(which){
  which.style.background='#F1F1F1'
}
<!-- End of Cell Highlighter

<!-- Begin Image Selector

function randomNum(max) {
  var rNum=NaN
  while (isNaN(rNum)) {
    rNum=Math.floor(Math.random()*(max))
  }
  return rNum
}

var pic = new Array()
pic[0]="http://www.seamist.org/images/photo0.jpg"  
pic[1]="http://www.seamist.org/images/photo1.jpg"  
pic[2]="http://www.seamist.org/images/photo2.jpg"  
pic[3]="http://www.seamist.org/images/photo3.jpg"  
pic[4]="http://www.seamist.org/images/photo4.jpg"  
pic[5]="http://www.seamist.org/images/photo5.jpg"  
pic[6]="http://www.seamist.org/images/photo6.jpg"  
pic[7]="http://www.seamist.org/images/photo7.jpg"  
pic[8]="http://www.seamist.org/images/photo8.jpg"  
pic[9]="http://www.seamist.org/images/photo9.jpg"  
pic[10]="http://www.seamist.org/images/photo10.jpg"
pic[11]="http://www.seamist.org/images/photo11.jpg"
pic[12]="http://www.seamist.org/images/photo12.jpg"
pic[13]="http://www.seamist.org/images/photo13.jpg"
pic[14]="http://www.seamist.org/images/photo14.jpg"
pic[15]="http://www.seamist.org/images/photo15.jpg"
pic[16]="http://www.seamist.org/images/photo16.jpg"
pic[17]="http://www.seamist.org/images/photo17.jpg"
pic[18]="http://www.seamist.org/images/photo18.jpg"
pic[19]="http://www.seamist.org/images/photo19.jpg"
pic[20]="http://www.seamist.org/images/photo20.jpg"
pic[21]="http://www.seamist.org/images/photo21.jpg"
pic[22]="http://www.seamist.org/images/photo22.jpg"
<!-- End of Image Selector
<!-- Begin Photo Selector
// Beginning of amazon random photo link

var photo = new Array()
photo[0]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=00265" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/00265.gif" align="center">'
photo[1]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=01171" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/01171.gif" align="center">'
photo[2]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=01864" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/01864.gif" align="center">'
photo[3]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=020836x" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/020836x.gif" align="center">'
photo[4]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=022193" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/022193.gif" align="center">'
photo[5]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=03006" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/03006.gif" align="center">'
photo[6]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=0368111" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/0368111.gif" align="center">'
photo[7]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=05718" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/05718.gif" align="center">'
photo[8]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=0752591" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/0752591.gif" align="center">'
photo[9]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=0813667." target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/0813667.gif" align="center">'
photo[10]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=0815465" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/0815465.gif" align="center">'
photo[11]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=1020093" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/1020093.gif" align="center">'
photo[12]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=1056322" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/1056322.gif" align="center">'
photo[13]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=1056829" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/1056829.gif" align="center">'
photo[14]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=11690" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/11690.gif" align="center">'
photo[15]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=1188x" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/1188x.gif" align="center">'
photo[16]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=12954" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/12954.gif" align="center">'
photo[17]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=13421" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/13421.gif" align="center">'
photo[18]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=14434" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/14434.gif" align="center">'
photo[19]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=14491" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/14491.gif" align="center">'
photo[20]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=1514332" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/1514332.gif" align="center">'
photo[21]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=17883" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/17883.gif" align="center">'
photo[22]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=18847" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/18847.gif" align="center">'
photo[23]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=1899" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/1899.gif" align="center">'
photo[24]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=19369" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/19369.gif" align="center">'
photo[25]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=20869" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/20869.gif" align="center">'
photo[26]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=21327" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/21327.gif" align="center">'
photo[27]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=21516" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/21516.gif" align="center">'
photo[28]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=22399x" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/22399x.gif" align="center">'
photo[29]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=22916" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/22916.gif" align="center">'
photo[30]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=23093" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/23093.gif" align="center">'
photo[31]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=23358" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/23358.gif" align="center">'
photo[32]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=2434878" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/2434878.gif" align="center">'
photo[33]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=2461x" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/2461x.gif" align="center">'
photo[34]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=24810" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/24810.gif" align="center">'
photo[35]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=25869" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/25869.gif" align="center">'
photo[36]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=30074" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/29060.gif" align="center">'
photo[37]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=30074" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/30074.gif" align="center">'
photo[38]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=30360" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/30360.gif" align="center">'
photo[39]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=34263" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/34263.gif" align="center">'
photo[40]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=3447185" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/3447185.gif" align="center">'
photo[41]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=34660" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/34660.gif" align="center">'
photo[42]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=360434" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/360434.gif" align="center">'
photo[43]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=36987" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/36987.gif" align="center">'
photo[44]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=37802" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/37802.gif" align="center">'
photo[45]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=3857x" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/3857x.gif" align="center">'
photo[46]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=38596" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/38596.gif" align="center">'
photo[47]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=40876" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/40876.gif" align="center">'
photo[48]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=4115689" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/4115689.gif" align="center">'
photo[49]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=411649" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/411649.gif" align="center">'
photo[50]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=4192636" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/4192636.gif" align="center">'
photo[51]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=4194760" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/4194760.gif" align="center">'
photo[52]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=45502" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/45502.gif" align="center">'
photo[53]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=45802" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/45802.gif" align="center">'
photo[54]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=4586x" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/4586x.gif" align="center">'
photo[55]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=463751" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/463751.gif" align="center">'
photo[56]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=5096565" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/5096565.gif" align="center">'
photo[57]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=5523358" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/5523358.gif" align="center">'
photo[58]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=566015" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/566015.gif" align="center">'
photo[59]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=58252" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/58252.gif" align="center">'
photo[60]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=59882" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/59882.gif" align="center">'
photo[61]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=60589" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/60589.gif" align="center">'
photo[62]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=61855" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/61855.gif" align="center">'
photo[63]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=63103" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/63103.gif" align="center">'
photo[64]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=6376x" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/6376x.gif" align="center">'
photo[65]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=63811" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/63811.gif" align="center">'
photo[66]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=67997" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/67997.gif" align="center">'
photo[67]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=69333" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/69333.gif" align="center">'
photo[68]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=69443" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/69443.gif" align="center">'
photo[69]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=718982" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/718982.gif" align="center">'
photo[70]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=72125" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/72125.gif" align="center">'
photo[71]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=739767" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/739767.gif" align="center">'
photo[72]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=7545101" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/7545101.gif" align="center">'
photo[73]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=7545292" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/7545292.gif" align="center">'
photo[74]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=7545438" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/7545438.gif" align="center">'
photo[75]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=7545985" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/7545985.gif" align="center">'
photo[76]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=77758" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/77758.gif" align="center">'
photo[77]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=81470" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/81470.gif" align="center">'
photo[78]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=81489" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/81489.gif" align="center">'
photo[79]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=81535" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/81535.gif" align="center">'
photo[80]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=83578" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/83578.gif" align="center">'
photo[81]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=85620" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/85620.gif" align="center">'
photo[82]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=89772" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/89772.gif" align="center">'
photo[83]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=97727" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/97727.gif" align="center">'
photo[84]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=99894" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/99894.gif" align="center">'
photo[85]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=99932" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/99932.gif" align="center">'
photo[86]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=05719" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/05719.gif" align="center">'
photo[87]='<a href="http://www.christianbook.com/Christian/Books/product?event=AFF&p=1015485&item_no=17852" target="_blank"><img border="0" src="http://www.seamist.org/images/cbd/17852.gif" align="center">'

<!-- End of Photo Selector

// Beginning of Pop-Up Once
var expDays = 1; // number of HALF days the cookie should last
var closetime = 15;  // Close window after __ number of seconds?
var url = "http://www.seamist.org/popup-window.htm";
var width = 410;  // width of window in pixels
var height = 75; // height of window in pixels
var delay = 5;    // time in seconds before popup opens

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*12*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);
  timer = setTimeout("Start(url, width, height)", delay*1000);
  }
  else {
    count++;
    SetCookie('count', count, exp);
  }
}

function Start(URL, WIDTH, HEIGHT) {
  windowprops = "left=5,top=5,width=" + WIDTH + ",height=" + HEIGHT;
  preview = window.open(URL, "preview", windowprops);
  if (closetime) setTimeout("preview.close();", closetime*1000);
}

// End of Pop-Up Once

//  End of scripts -->
