function jumplink(jumpform, cururl) 
 {
	var newIndex = jumpform.category.selectedIndex; 
	if ( newIndex == 0 ) { 
	
	} else { 
		var mylink = cururl + jumpform.category.options[ newIndex ].value; 
		
		document.location.href( mylink ); 
	}

 }

function print_popup(mylink, autoprint)
 {
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, 'print_window', 'width=760,height=400,scrollbars=yes,toolbar=yes');
if(autoprint) {
	window.print();
	window.close();
}
return false;

 } 
function graph_popup(mylink, mygraph)
 {
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, mygraph, 'width=740,height=444,scrollbars=no,toolbar=no');
return false;

 } 

function product_sku_search_popup(mylink, textbox_id, extra_vars)
 {
	if (! window.focus)return true;
	
	var href;
	
	if (typeof(mylink) == 'string')
	   href= mylink + "&textbox_id=" + textbox_id;
	   if(typeof(extra_vars) == 'string') {
			href = href + extra_vars;
	   }
	else
	   href= mylink.href;
	
	window.open(href, 'sku_search_window', 'width=660,height=400,scrollbars=yes,toolbar=yes');
	return false;
 
}

function product_sku_return_value(textbox_id, product_sku)
 {
	window.opener.document.getElementById(textbox_id).value = product_sku;
	window.close();
	return true;
}


function deleteRecord(url){
	if (confirm('Are you sure you want to delete this record(s)?\nThis operation cannot be undone.'))
		document.location.href=url;
}

