timeout =0; // Close window after __ number of seconds? 
// 0 = do not close, anything else = number of seconds 

function Start(URL, WIDTH, HEIGHT, HEIGHT2, TITLE) { 
windowprops = "left=50,top=50,width=" + (WIDTH) + ",height=" + (HEIGHT); 

text = "<html><head><title>" + TITLE + " &middot;:&middot; </title></head><body margin='0' topmargin='0' leftmargin='0' "; 

if (timeout != 0) text +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\""; 

text += "><center><embed name='WindowsMediaPlayer' alt='" + TITLE + "' lang='nl' id='WindowsMediaPlayer' src='" + URL + "' loop='true' width='" + (WIDTH) + "' height='" + (HEIGHT2) + "' onClick='parent.self.close();' onRightClick='parent.self.close();'>"; 

if (timeout != 0) text +="<br><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>"; 

text += "</center></body></html>"; 

preview = window.open("", "preview", windowprops); 
preview.document.open(); 
preview.document.write(text); 
preview.document.close(); 
} 
