function openWindow(str,name,l,t,w,h,resize,scroll,func)
{
	try
		{
			var winFeatures = " left="+l+",top="+t+",width="+w+",height="+h+",resizable="+resize+",scrollbars="+scroll+",menubar=no,status=no,toolbar=yes,directories=no" ;
			var win2 = window.open(str,name, winFeatures);
			win2.window.location.replace(str);
			win2.focus();
			return false;
		}
		catch (e)
		{
			window.alert("JobsNet Window is blocked by the Popup Blocker - Make sure that your Popup Blocker is disabled to have this feature " + e.number);
		}

}

function openFreeWindow(str,name,l,t,w,h,resize,scroll,func)
{
	try
		{
			//toolbar=yes,scrollbars=yes,resizable=yes,status=no,
			var winFeatures = " left="+l+",top="+t+",width="+w+",height="+h+",resizable="+resize+",scrollbars="+scroll+",menubar=no,status=no,toolbar=yes,directories=no" ;
			
			var win2 = window.open(str,name, winFeatures);
			win2.focus();
			return false;
		}
		catch (e)
		{
			window.alert("JobsNet Window is blocked by the Popup Blocker - Make sure that your Popup Blocker is disabled to have this feature " + e.number);
		}

}

function openModalWin(str, iWidth, iHeight, iTop, iLeft, bResize, bScroll)
{
	sRtn=window.showModalDialog(str,window,'dialogHeight:'+iHeight+'px;dialogWidth:'+iWidth+'px;dialogTop:'+iTop+'px;dialogLeft:'+iLeft+'px;resizable:'+bResize+';maximize:'+bResize+';minimize:'+bResize+';edge:Raised;center:No;help:No;status:No;Scroll:'+bScroll+';');
}

function confirmation(str)
{
	if (confirm("Are you sure you want to "+str+" this item?"))
		return true;
	else
		return false;
}

function confirmTest(str)
{
	if (confirm(str))
		return true;
	else
		return false;
}

function GetSystemWin(str, pageURL, iWidth, iHeight, iTop, iLeft, bResize, bScroll) 
{
	sRtn=window.showModalDialog(str,null,'dialogHeight:'+iHeight+'px;dialogWidth:'+iWidth+'px;dialogTop:'+iTop+'px;dialogLeft:'+iLeft+'px;resizable:'+bResize+';maximize:'+bResize+';minimize:'+bResize+';edge:Raised;center:Yes;help:No;status:No;Scroll:'+bScroll+';');
	return false;
}

function openerFunc(session)
{
	if(!window.opener.closed)
	{
		opener.window.location.href("databank.aspx?a=" + session);
	}
}

function openerFuncReload()
{
	if(!window.opener.closed)
	{
		opener.window.location.reload();
	}
}

function openSellerHome(SellerId)
{
 var URLAddress = "../Sellers/MyJobsF1.aspx?SellerId=" + SellerId;
 openWindow(URLAddress,'WinPopUp','24','24','800','680','yes','yes','yes');
 return;
}



