function openPopUp(strPath)
{
	 var winWidth = 545;
	 var winHeight = 450;

	PopUp = window.open(strPath,'PopUp','width=515,height=470,scrollbars,resizable');
	PopUp.resizeTo(winWidth,winHeight);
	PopUp.focus();
}
function sendToFriend()
{
	var strPath = '/Klil07/send_to_friend/send_to_friend.asp';
	var sendToFriendWin = window.open(strPath,'PopUp','width=520,height=520,scrollbars,resizable');
	sendToFriendWin.focus();
}
function openVideo(lVideoID)
{
	//var winWidth = 550;
	//var winHeight = 450;
	strPath = "_video/video_popup.asp?lVideoID=" + lVideoID;
	PopUp = window.open(strPath,'PopUp','width=550,height=450,scrollbars,resizable');
	//PopUp.resizeTo(winWidth,winHeight);
	PopUp.focus();
}
function showImage(strPath,strTitle,imgWidth,imgHeight)
{
	var strHTML = '<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">';
		strHTML += '<html><head><title>'+strTitle+' </title>';
		strHTML += '</head><body style="margin:0">';
		strHTML += '<div style="text-align:center">';		
		strHTML += '<img src="'+strPath+'" width="'+imgWidth+'" height="'+imgHeight+'" border=0 alt="'+strTitle+'"></div>';
		strHTML += '</body></html>';

	var PopUpImg = window.open('','PopUpImg','scrollbars=no,resizable');
	PopUpImg.resizeTo(imgWidth+20,imgHeight+50);
	PopUpImg.document.open();
	PopUpImg.document.write(strHTML);
	PopUpImg.document.close();
	PopUpImg.focus();
}

function showAutodesk(strFileID,strTitle)
{
	if (navigator.appName.indexOf('Microsoft') != -1)
	{
		PopUp = window.open('/klil/site/products/show_autodesk.asp?FileID='+strFileID+'&Title='+strTitle,'PopUp','top=0,left=0,resizable');
		PopUp.resizeTo(screen.width-100,screen.height-50);
		PopUp.focus();
	}
	else
	{
		alert('Sorry, your browser does not support \"ActiveX\" technology needed for view this file online. Please use the \"Download\" button to download the same zipped (ZIP Format) Autodesk file.');
	}
}

function showImagesBrowser(fid, iid)
{
	PopUp = window.open('/klil/site/gallery/images_browser.asp?fid='+fid+'&iid='+iid,'PopUp','top=50,left=50');
	PopUp.resizeTo(500,552);
	PopUp.focus();
}

function showSeriesBrowser(fid, iid)
{
	PopUp = window.open('/klil/site/products/one_item_info.asp?fid='+fid+'&iid='+iid,'PopUp','top=50,left=50');
	PopUp.resizeTo(500,492);
	PopUp.focus();
}

function showMap(FileID)
{
	var mapWindow;
    var pathString  = "/klil/site/show_rooms/show_map.asp?id=" + FileID;

	PopUp = window.open(pathString,'PopUp','resizable');
	PopUp.resizeTo(570,490);
	PopUp.focus();
}
function showProductImage(lPG_ID)
{
	window.open('/klil/site/products/item_image.asp?pid='+lPG_ID,'ProductImage','scrollbars=no,resizable=no');
}
function bannerRightAction()
{
	PopUp = window.open('/klil/site/news/banner_popup.asp','PopUp','top=50,left=50');	
	PopUp.resizeTo(500,492);
	PopUp.focus();
}

function OpenFileBrowse(num)
{ 
	var strPath = '/klil07/Templates/browseFile/upload.asp?DBID=' + lDatabaseID + '&LNGID=' + lLanguageID + '&num=' + num;
	var OpenFileBrowseWin = window.open(strPath,'PopUp','width=320,height=200,scrollbars,resizable');
	OpenFileBrowseWin.focus();
}