function openOrderPrintVer(id)
{
	window.showModalDialog('popups/orderPrintVer.asp?id='+id,'window','status:no;scroll:yes;resizable:no;help:no;dialogHeight:500px;dialogWidth:630px');
}

function openCheckOrderPrintVer(id)
{
	window.showModalDialog('popups/checkOrderPrintVer.asp?id='+id,'window','status:no;scroll:yes;resizable:no;help:no;dialogHeight:500px;dialogWidth:630px');
}

function openSecurity()
{
	//window.showModalDialog('popups/security.htm','window','status:no;scroll:no;resizable:no;help:no;dialogHeight:312px;dialogWidth:399px');
	window.showModalDialog('popups/security.asp?wname=resling_main','window','status:no;scroll:yes;resizable:no;help:no;dialogHeight:449px;dialogWidth:596px');
}

function openContact()
{
	window.showModalDialog('popups/contact.asp','window','status:no;scroll:no;resizable:no;help:no;dialogHeight:400px;dialogWidth:357px');
}

function openMembersProgram(hide_button)
{
	window.name="resling_main";
	window.showModalDialog('popups/membersProgram.asp?wname=resling_main&hide_button='+hide_button,'window','status:no;scroll:yes;resizable:no;help:no;dialogHeight:374px;dialogWidth:630px');
}

function openPaymentAndDelivery()
{
	document.location="paymentAndDelivery.asp";
}

function openBookPrintVer(id)
{
	window.showModalDialog('popups/bookPrintVer.asp?book_id='+id,'window','status:no;scroll:yes;resizable:no;help:no;dialogHeight:500px;dialogWidth:500px');
}

function openCatalogPrintVer(sort)
{
	window.showModalDialog('popups/catalogPrintVer.asp?sort_id='+sort,'window','status:no;scroll:yes;resizable:no;help:no;dialogHeight:500px;dialogWidth:630px');
}
function openMembersProgramPrintVer()
{
	window.showModalDialog('popups/membersProgramPrintVer.asp','window','status:no;scroll:yes;resizable:no;help:no;dialogHeight:500px;dialogWidth:630px');
}

function openEditCart(id)
{
	window.name="resling_main";
	window.showModalDialog('editCart.asp?action=add&id='+id+'&returnto=popups/addToCart.asp&wname=resling_main','window','status:no;scroll:no;resizable:no;help:no;dialogHeight:185px;dialogWidth:355px');
	document.frames("prod_num_frm").document.location.reload();
}
function openAddDelMailingList(email,action)
{
	window.showModalDialog('popups/addDelMailingList.asp?email='+email+'&action='+action,'window','status:no;scroll:no;resizable:no;help:no;dialogHeight:185px;dialogWidth:355px');
	//window.open('popups/addDelMailingList.asp?email='+email+'&action='+action,'window','');
	document.location.reload();
}
function openEditCart2(id)
{
	window.name="resling_main";
	window.showModalDialog('editCart.asp?action=addShovar&id='+id+'&returnto=popups/addToCart.asp&wname=resling_main','window','status:no;scroll:no;resizable:no;help:no;dialogHeight:185px;dialogWidth:355px');
	document.frames("prod_num_frm").document.location.reload();
}

function openOtherShovar(id)
{
	window.name="resling_main";
	window.showModalDialog('popups/otherShovar.asp?id='+id+'&wname=resling_main','window','status:no;scroll:no;resizable:no;help:no;dialogHeight:185px;dialogWidth:355px');
	//window.open('popups/otherShovar.asp?id='+id+'&wname=resling_main','','Height=185, Width=355');
	document.frames("prod_num_frm").document.location.reload();
}

// old
//function openBrowsePrintVer(book_id,browse_id)
//{
//	path="popups/browsePrintVer.asp?book_id="+book_id+"&browse_id="+browse_id;
//	window.showModalDialog(path,'window','status:no;scroll:yes;resizable:no;help:no;dialogHeight:500px;dialogWidth:500px');
//}

function openBrowsePrintVer(browse_id)
{
	path="popups/browsePrintVer.asp?browse_id="+browse_id;
	window.showModalDialog(path,'window','status:no;scroll:yes;resizable:no;help:no;dialogHeight:500px;dialogWidth:500px');
}

function openEventDetails(id)
{
	window.showModalDialog('popups/eventDetails.asp?event_id='+id,'window','status:no;scroll:no;resizable:no;help:no;dialogWidth:404px');
}