// JavaScript Document
function ExitPop()
{
	if (gE )
	{
		var feature = "height=300, width=400, title='Advertisement' ";
		var winname = 'blank';
		var intI = 0;
		var intValue = 0;
		// Loop over number of characters in string.
		for (intI = 0 ; intI < 10 ; intI++)
		{
			intValue = RandRange( 65, 90, intI );
			winname += String.fromCharCode( intValue );
		}
		window.open(gW, winname, feature)
	}
}


function RandRange( intFrom, intTo, intSeed ){
intFrom = Math.floor( intFrom );
intTo = Math.floor( intTo );
return(Math.floor(intFrom + ((intTo - intFrom + 1) *Math.random( (intSeed != null) ? intSeed : 0 ))));
}

function DelayedPop()
{
	setTimeout("ExitPop();",3000);
}
function Redirect()
{
	gE = false ;
	var FinalURL = "framed.php?s=" + SiteId + "&v=" + Vertical + "&c="+ section_code  + "&m="+ mode + "&t="+ Title + "&u=" + gURL ;

	top.location = FinalURL ;
	// vURL buster 
	// top.location = "headlinenews.php?u=" + encodeURIComponent(FinalURL);
}
function ShowAdd(url)
{
	gURL=url;
	Redirect();
	return false ;
}

function SA(url)
{
	gURL=url;
	Redirect();
	return false ;
}

function S(ob)
{
	gURL=encodeURIComponent(ob);
	Redirect();
	return false ;
}
