function popRotate(fg_color, bg_color)
{
<!--//
	today=new Date();
	jran=today.getTime();
	var random_number="";

		
	// #### VARIABLES
	// FG_COLOR, BG_COLOR : Foreground color, background color
	// NAME Javascript addressable name
	// #### END USER VARIABLES #####

	if (window.RegExp) {

		ia=9301;
		ic=49297;
		im=233280;
		jran = (jran*ia+ic) % im;
		random_number = Math.ceil( (jran/(im*1.0)) * ar_text.length);
	
		document.open();
		//document.write (ar_text.length + '<BR>');
		//document.write (random_number + '<BR>');
		//document.write (fg_color + ' ' + bg_color);
		document.write ('<TABLE ALIGN="CENTER" WIDTH="100%">');
		
		if (ar_image[random_number])
		{
			document.write ('<TR><TD ALIGN="CENTER">');
			document.write ('<IMG SRC = "'+ ar_image[random_number] + '" ALT="An Image" NAME="popImage">');
			document.write ('<\/TD><\/TR>');
		}
		
		document.write ('<TR');
		if (bg_color) { document.write (' BGCOLOR="'+ bg_color + '"'); }
			document.write ('><TD>');
			//document.write ('<A HREF ="' + ar_URL[random_number] + '">');
		if (fg_color) { document.write ('<FONT COLOR="'+ fg_color + '">'); }
			document.write ('<SPAN CLASS="poptext">');
			document.write (ar_text[random_number]);
			//document.write ('<\/A>');
			document.write ('<\/SPAN>');
		if (fg_color) { document.write ('</FONT></SPAN>'); }
			document.write ('<\/TD><\/TR>');
			document.write ('<\/TABLE>');
	} else {
		// The user does not support regular expression
		document.open();
	}
// End -->
}


