	function display_details(useid, internal) {
		WindowObjectReference = window.open("display_details.php?internal="+internal+"&id=" + useid, "display_details", 'width=400,height=300,location=no,resizable=yes,menubar=no,status=yes,toolbar=no,scrollbars=yes')
		WindowObjectReference.focus()
	}
	function display_details_main(useid, internal) {
		WindowObjectReference = window.open("display_details.php?internal="+internal+"&mid=" + useid, "display_details", 'width=400,height=300,location=no,resizable=yes,menubar=no,status=yes,toolbar=no,scrollbars=yes')
		WindowObjectReference.focus()
	}
	function display_help(useid) {
		WindowObjectReference = window.open("display_help.php?cid="+useid, "display_help", 'width=650,height=500,location=no,resizable=yes,menubar=no,status=yes,toolbar=no,scrollbars=yes')
		WindowObjectReference.focus()
	}
	
		function shoh(id) { 
			
			if (document.getElementById) { // DOM3 = IE5, NS6
				if (document.getElementById(id).style.display == "none"){
					document.getElementById(id).style.display = 'block';
				} else {
					document.getElementById(id).style.display = 'none';			
				}	
			} else { 
				if (document.layers) {	
					if (document.id.display == "none"){
						document.id.display = 'block';
					} else {
						document.id.display = 'none';
					}
				} else {
					if (document.all.id.style.visibility == "none"){
						document.all.id.style.display = 'block';
					} else {
						document.all.id.style.display = 'none';
					}
				}
			}
		}
		
		function ishidden(id) {
			if (document.getElementById) { // DOM3 = IE5, NS6
				if (document.getElementById(id).style.display == "none"){
					hidden = 1;
				} else {
					hidden = 0;
				}	
			} else { 
				if (document.layers) {	
					if (document.id.display == "none"){
						hidden = 1;
					} else {
						hidden = 0;
					}
				} else {
					if (document.all.id.style.visibility == "none"){
						hidden = 1;
					} else {
						hidden = 0;
					}
				}
			}
			return hidden;
		}


	function ajax_load_product(pid, display_type, print_type_id, object_location) {

			$('.product_holder').hide();
			$('#'+object_location).show();
			
			$('#'+object_location).html("<p style='text-align:center'><img src='images/icons/loader.gif'></p>");
			
		 $.ajax({
		   type: "POST",
		   url: "ajax.php?cmd=load_product",
		   data: "pid="+pid+"&display_type="+display_type+"&print_type_id="+print_type_id,
		   timeout:20000,
		   dataType:"html",
		   success: function(data){
		   	//alert(data);
		     $('#'+object_location).html(data);
		   }
		 });
	}	

