var intervalTime = 0;
function Submit(id, height)
{
	var path = "/vote/scriptlet.asp?voteId=" + id + "&color=" + window.parent.document.all.vote.bgColor.replace("#", "") + "&yourAnswer=" + document.all.yourAnswer.value ;
	// Omar@15-12-2002
	var html = "<IFRAME ID=votespt FRAMEBORDER=0 SCROLLING=NO WIDTH=140 HEIGHT=" + height +  " marginBottom=0 marginLeft=0 marginRight=0 marginTop=0 SRC=\"" + path + "\"></IFRAME> ";
	//var html = "<OBJECT  id=votespt TYPE=\"text/x-scriptlet\" WIDTH=140 HEIGHT=" + height + ">" ;
	  //  html    += "<PARAM NAME=\"url\" VALUE=\"" + path + "\">" ;
	//html    += "</OBJECT>"
	//vote.innerHTML = html ;
	window.top.document.all.vote.innerHTML = html ;
}

function Result(id, height)
{
	var path = "/vote/rs_scriptlet.asp?voteId=" + id + "&color=" + window.parent.document.all.vote.bgColor.replace("#", "") ;
	
	var html = "<IFRAME ID=votespt FRAMEBORDER=0 SCROLLING=NO WIDTH=140 HEIGHT=" + height +  " marginBottom=0 marginLeft=0 marginRight=0 marginTop=0 SRC=\"" + path + "\"></IFRAME>";
	//var html = "<OBJECT  id=votespt TYPE=\"text/x-scriptlet\" WIDTH=140 HEIGHT=" + height + ">" ;
	//    html    += "<PARAM NAME=\"url\" VALUE=\"" + path + "\">" ;
	//html    += "</OBJECT>"
	//vote.innerHTML = html ;
	if (window.top.document.all.vote)
		window.top.document.all.vote.innerHTML = html ;
}
// Omar@12-1-2002
function showMedia(item_No,VideoPath,oldMediaItURL)
{
	var url = "/showMedia.asp?item_No=" + item_No + "&videoPath=" + VideoPath + "&oldMediaItURL=" + oldMediaItURL;
	document.open(url,"","width=590; height=420; scrollbars=1");
}
// Omar@End

//Shereen@17-06-2002 : Function to show the summary of the news section titles
function showSummaryNewsSection(itemNo,on)
{
	var itemObj;
	itemObj = "abstract" + itemNo;
	if(on)
	{
		document.all.item(itemObj).style.display = "";
		/*if (intervalTime != 0)
			window.clearInterval(intervalTime);*/
	}
	else
	{
		document.all.item(itemObj).style.display = "none";
		if (intervalTime != 0)
			window.clearInterval(intervalTime);
	}	

}
//Shereen@End
//Shereen@18-06-2002 : Function to call showSummaryNewsSection() after 1000 milliseconds on mouse over.
function setIntervalDelay(itemNo,on)
{
	if (on)
		intervalTime = window.setInterval("showSummaryNewsSection(" + itemNo + "," + on +")",1000);
	else
		showSummaryNewsSection(itemNo,on);
}
//Shereen@End
