var intNameID =0;
function openChild(url, width, height) 
{
	leftC = (screen.width - width) / 2;
	topC = (screen.height - height) / 2;
	/*	to open on Multi pop-up window	*/
	intNameID = intNameID + 1;
	var x1 = window.open(url, 'x_' + intNameID, "width=" + width + ", height=" + height + ",top=" + topC + ",left=" + leftC + ",location=no, menubar=no, status=no, toolbar=no, scrollbars=0,resizable=no");
}
function openChildScroll(url, width, height) 
{
	leftC = (screen.width - width) / 2;
	topC = (screen.height - height) / 2;
	window.open(url, null, "width=" + width + ", height=" + height + ",top=" + topC + ",left=" + leftC + ",location=no, menubar=no, status=no, toolbar=no, scrollbars=1,resizable=no");
}

function openNewWindow(url)
{
	leftC = (screen.width - 570) / 2;
	topC = (screen.height - 440) / 2;
	window.open(url, null, "width=570px, height=440px,top=" + topC + ",left=" + leftC + ", location=no, menubar=no, status=no, toolbar=no, scrollbars=1,resizable=no");

}
function openChildForPublishHTML(url, width, height) 
{
	leftC = (screen.width - width) / 2;
	topC = (screen.height - height) / 2;
	/*	to open on Multi pop-up window	*/
	intNameID = intNameID + 1;
	var x1 = window.open(url, 'x_' + intNameID, "width=" + width + ", height=" + height + ",top=" + topC + ",left=" + leftC + ",location=yes, menubar=yes, status=yes, toolbar=yes, scrollbars=1,resizable=yes");
}


/*Query String */
function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
  alert('Query Variable ' + variable + ' not found');
}
/*Popup 
Created By: ahmad Bader
Date		 :30 August
*/

/* 
Idea: Row Hover;
Coded by: Fouad Masoud (heart) 'heart_fm@hotmail.com';
date: 20 July, 2006;
Notes: Any one can use this code for free on his/her site, but please keep the above comments;
*/
var grdName='<%=grdData.ClientID%>';
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}

function highlightRows() {
	if(!document.getElementsByTagName) return false;
	if(!document.getElementById) return false;
	if(!document.getElementById(grdName)) return false;
	var rows = document.getElementById(grdName).getElementsByTagName("tr");
	for (var i=1; i<rows.length-1; i++) {
		rows[i].oldClassName = rows[i].className
		rows[i].onmouseover = function() {
			this.className = "highlight";
		}
		rows[i].onmouseout = function() {
			this.className = this.oldClassName;
		}	
	}
}

addLoadEvent(highlightRows);
//- end Fouad Code