function BuyNow(elemId,url){

	var elem = document.getElementById(elemId);
	var qty = 1;
	if(elem)
		qty = elem.value;
	var nUrl = url+"&qty="+qty;
	
	window.location = nUrl;
	
}

function submitTopSearchResultForm()
{

    if(document.topSearchResultCount.onsubmit && 
    !document.topSearchResultCount.onsubmit())
    {
        return;
    }

    
    document.topSearchResultCount.submit();
    
    if(document.GetElementById("bottomRowCount"))
    {
    	document.getElementsById("bottomRowCount").Value = document.topRowCount.Value;
    }

}

function submitBottomSearchResultForm()
{

	if(document.bottomSearchResultCount.onsubmit && 
    	    !document.bottomSearchResultCount.onsubmit())
    	    {
    	        return;
    	    }
	 document.bottomSearchResultCount.submit();  
	
	 if(document.GetElementById("topRowCount"))
	    {
	    	document.getElementsById("topRowCount").Value = document.bottomRowCount.Value;
	    }
	  
}

