// JavaScript Document
function $(id) { return document.getElementById(id); }

/*function displaySubNav(index, flag){
	if(index != null)
	{
		var s = document.getElementById("subMenuGroup_"+index);
		s.style.display=(s.style.display=="none" || s.style.display=="") ? "block" : "none";
		var m = document.getElementById("menuGroup_"+index);
		m.className = (m.className=="navMainSelected") ? "navMainOut" : "navMainSelected";
		
		
		var a = document.getElementById("subMenuGroup_"+index).getElementsByTagName("a");
		for(i=0; i<a.length; i++){
			var bH = a[i].offsetHeight;
			if(bH<36 && bH > 0){
				var bPadd = (36-bH)/2;
				a[i].style.paddingTop=bPadd+"px";
				a[i].style.paddingBottom=bPadd+"px";
			}
		}
	}
	
	document.getElementById("bkmrkISI").style.display = (flag=="show") ? "block" : "none";
}*/

function LaunchPDF() {
	this.location="../common/pdf/Voltaren-PI-10-19.pdf";
}

function hover(obj, flag){
	var m = obj;
	if(m.className!="navMainSelected") m.className = (flag) ? "navMainOver" : "navMainOut";		
}

function OpenWinCenter(popUrl, popName, popWidth, popHeight, feat)
{
	pop_left = 0;
	pop_top = 0;
	scrCenter_x = screen.width/2;
	scrCenter_y = screen.height/2;
	if ((popWidth == "") || (popWidth == undefined)) {
		popWidth = 650;
		popHeight = 550;
		resize = "yes";
	} else {
		resize = "no";
//		alert(popWidth);
	}
	if (feat != '') feat = ','+feat;
	pop_left = scrCenter_x - (popWidth/2);
	pop_top = scrCenter_y - (popHeight/2) - 30;
	popupWin = window.open(popUrl, popName, 'width=' + popWidth + ',height=' + popHeight + ',left=' + pop_left + ',top=' + pop_top + ',resizable='+resize+feat);
	popupWin.focus();
}

function openwindow()
{
    //window.open('NewCardNoReg.aspx', 'CardWindow','menubar=0,resizable=1,width=500,height=500');
    window.open('NewCardNoReg.aspx', 'CardWindow','menubar=0,resizable=1,width=780,height=700,scrollbars=1');
}
