// JavaScript Library ShopCard.JS

/*
'***************************************************************************
' Source Code Function Library (SFL)
' Various Functions used in General Search
' Copyright(c) 2001, es promotion, Basel - Switzerland
'
' Revision:
' 01-12-17 viral	Initiale Version
'***************************************************************************
*/
window.name = 'myWin';

	
	function OpenProduct(ProdId)
	{
window.open("ShowProduct.asp?ProductsId="+ProdId,'Product','width=500,height=500,resizable=yes,scrollbars=yes,top=5');
	}	

	function OpenInofrmation(InfoId)
	{
window.open("ShowInformation.asp?InfoId="+InfoId,'Information','width=500,height=500,resizable=yes,scrollbars=yes,top=5');
	}

	function OpenTxt(Id,tbl,fld)
	{
window.open("showtxtinfo.asp?Id="+Id+"&tbl="+tbl+"&fld="+fld,'TextWindow','width=500,height=500,resizable=yes,scrollbars=yes,top=5');
	}
	
	function OpenNews(InfoId)
	{
	window.open("showNews.asp?InfoId="+InfoId,'News','width=500,height=500,resizable=yes,scrollbars=yes,top=5');
	}

	function OpenImage(ImgId,strFlag)
	{
	window.open("showImage.asp?ImgId="+ImgId+"&strFlag="+strFlag,'ImagePopup','width=500,height=500,resizable=yes,scrollbars=yes,top=5');
	}
	
	function openComment(strFunc,strParam)
	{
window.open('showComment.asp?id='+strParam+'&Func='+strFunc,'MyComment','width=500,height=500,resizable=yes,scrollbars=yes,top=5');
	}

	function openCoursOverview(strFunc,strParam)
	{
window.open('showCoursOverview.asp?id='+strParam+'&Func='+strFunc,'MyOverview','width=500,height=500,resizable=yes,scrollbars=yes,top=5');
	}

	function openTheory(strFunc,strParam)
	{
window.open('showTheory.asp?id='+strParam+'&Func='+strFunc,'MyTheory','width=795,height=580,resizable=yes,scrollbars=yes,top=5');
	}

	function openPopup(strPage,strParam)
	{
	window.open(strPage+'?id='+strParam,'Popup','width=500,height=500,resizable=yes,scrollbars=yes,top=5');
	}

	function openExam(strParam)
	{
	window.open('course-exam-1.asp?id='+strParam,'MyExam','width=750,height=600,resizable=yes,scrollbars=yes,top=5');
	}

	function OpenPrint()
	{
	window.open('showPrint.asp','Printing','width=500,height=500,resizable=no,scrollbars=yes,top=5');
	}


