
function open_help_window()
{
	//this function opens the help window, from all over the site
window.open("help.asp","KerenZurHelp","width=320,height=320,top=0,left=0,scrollbars=yes")
}

function open_pot_window(pot_id)
{
	//this function opens the help window, from all over the site
window.open("potInfo.asp?potId=" + pot_id , "PotDescription","width=500,height=400,top=100,left=100,scrollbars=auto")
}

function openSendingMethodWindow()
{
	window.open("sendingMethods.asp","vradim","width=300,height=300,top=0,left=0,scrollbars=yes")
}

function openModalDialog(url , arguments , top , left , width , scrollbars , resizeable , statusBar)
{
	var features = "" ;
	
	if(top != "")
		features += "dialogTop:" + top + "px;" ;
	if(left != "")
		features += "dialogLeft:" + left + "px;" ;
	if(width != "")
		features += "dialogWidth:" + width + "px;" ;			
	if(scrollbars != "")
		features += "scroll:" + scrollbars + "px;" ;
	if(statusBar != "")
		features += "status:" + statusBar + "px;" ;	
	if(resizeable != "")
		features += "resize:" + resizeable + "px;" ;		
				
	return window.showModalDialog(url , arguments , features) ;
	
}

function addToCart(rose_id)
{
	var potId , shoppingCartUrl ;
	potId = openModalDialog("potSelection.asp?roseId=" + rose_id , "" , 100 , 100 , 550 , "0" , "0" , "0") ;
	if(potId != 0)
	{
		shoppingCartUrl = "shopping_cart.asp?status=add&id=" + rose_id + "&pot_id=" + potId ;
		document.location = shoppingCartUrl ;
	}
}
