var Search = function(){
var dialog,iframe;
	return {
		init : function(){
		},
		showDialog : function(id,searchid,count,width,sort,tab,a,b){
			if(!dialog){
				dialog = new YAHOO.ext.LayoutDialog("zzzsearch_dialog", { 
					modal:false,
					shadow:false,
					closable:true,
					constraintoviewport:true,
					width:600,
					height:500,
					draggable:true,
					autoScroll:true,
					center: {
						autoScroll:false
					}
				});
		var layout = dialog.getLayout();
			dialog.beginUpdate();
			iframe = YAHOO.ext.DomHelper.append(document.body, {tag: 'iframe', id:'zzzsearchIframe', frameBorder: 0, width:'600', height:'500', scrolling:"no", src: "rdummy.htm"});
			layout.add('center', new YAHOO.ext.ContentPanel(iframe, {title: 'Inner Tab', fitToFrame:true}));
			dialog.endUpdate();
		}
		width=70+(width*8);
		if(width<220) width=220
		height=520;
		if(count<36){ height=100+(14.2*count) }
		dialog.resizeTo(width-14,height-25);
		dialog.onResize();
		dialog.show();
		dialog.el.center();
		iframe.src="wcsSearch.csp?id="+id+"&searchid="+searchid+"&count="+count+"&sort="+sort+"&tab="+tab+"&a="+a+"&b="+b;
	},
	hideDialog : function(){
		dialog.hide();
	}
	};
}();