
function popconf(){
	var h = 135;
	var w = 297;
	var win = window.open('', '', 'height=' + h + ', width=' + w);
	win.document.writeln("<style type=\"text/css\">body,table,td,tr{ font-family: verdana, sans-serif; font-size: 10px;} </style>");
	win.document.writeln("<img src=\"http://www.wizardx4.com/Images/thankyou.jpg\" width=\"105\" height=\"13\" alt=\"\" border=\"0\">");
	win.document.writeln("<table bgcolor=\"#E5EFF9\" width=\"277\" height=\"95\" align=\"center\" cellspacing=\"0\">");
	win.document.writeln("<tr><td align=\"left\">");
	win.document.writeln("The following email has been submitted: ");
	win.document.writeln("</td></tr><tr><td align=\"left\"><strong></strong>");
	win.document.writeln("</td></tr><tr><td align=\"left\">");
	win.document.writeln("<a href=\"javascript:void();\" OnClick=\"window.close();\" align=\"left\">");
	win.document.writeln("<img src=\"http://www.wizardx4.com/Images/close-window.jpg\" width=\"93\" height=\"19\" alt=\"\" border=\"0\">");
	win.document.writeln("</a></td></tr></table>");
	
	var x = (screen.availWidth/2)-(w/2);
	var y = (screen.availHeight/2)-(h/2);
	
	win.window.moveTo(x,y);
} 

function genConf(content,height,width){
	if(height < 1 || height == '') height = 135;
	if(width < 1 || height == '') width = 297;
	if(content == '' || content == ' ') content = "Thank You -- Your query has been submitted.";
	var win = window.open('','','location=0,status=0,menubar=0,toolbar=0,height=' + height + ', width=' + width);
	var theight = (height - 40);
	var twidth = (width - 20);
	win.document.writeln("<HTML><HEAD><style type=\"text/css\">body,table,td,tr{ font-family: verdana, sans-serif; font-size: 10px;} </style></HEAD>");
	win.document.writeln("<BODY><img src=\"http://www.wizardx4.com/Images/thankyou.jpg\" width=\"105\" height=\"13\" alt=\"\" border=\"0\">")
	win.document.writeln("<table bgcolor=\"#E5EFF9\" width=\""+twidth+"\" height=\""+theight+"\" align=\"center\" cellspacing=\"0\">");
	win.document.writeln("<tr><td align=\"left\">");
	win.document.writeln(content);
	win.document.writeln("</td></tr><tr><td align=\"left\">");
	win.document.writeln("<img src=\"http://www.wizardx4.com/Images/close-window.jpg\" OnClick=\"javascript:window.close();\" style=\"cursor:hand;\" width=\"93\" height=\"19\" alt=\"\" border=\"0\">");
	win.document.writeln("</td></tr></table></BODY></HTML>");
	
	var x = (screen.availWidth/2)-(width/2);
	var y = (screen.availHeight/2)-(height/2);
	
	win.window.moveTo(x,y);
}


function pop_flash(src){
	var width = screen.availWidth - 300;
	var height = width * .72; 

    var win = window.open('','','height=' + (screen.availHeight) + ', width=' + (screen.availWidth));
    win.moveTo(0,0);
    win.document.writeln("<html><head><title>iConsultant Demonstration</title><style type=\"text/css\">");
    win.document.writeln("body{background: #6e8db7 url(../Images/bg-grad-01.gif) left top repeat-x;}");
    win.document.writeln("</style></head><body>");
    win.document.writeln("<div align=\"center\">");
    win.document.writeln("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\"");
    win.document.writeln("WIDTH=\"");
    win.document.writeln(width);
    win.document.writeln("\" HEIGHT=\"");
    win.document.writeln(height);
    win.document.writeln("\" id=\"iConsultant Demo\"><PARAM NAME=\"movie\" VALUE=\"");
    win.document.writeln(src);
    win.document.writeln("\">");
    win.document.writeln("<PARAM NAME=\"quality\" VALUE=\"high\">");
    win.document.writeln("<PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\">");
    win.document.writeln("<EMBED src=\"");
    win.document.writeln(src);
    win.document.writeln("\" quality=high bgcolor=#FFFFFF WIDTH=\"");
    win.document.writeln(width);
    win.document.writeln("\" HEIGHT=\"");
    win.document.writeln(height);
    win.document.writeln("\" NAME=\"iConsultant Demo\" ALIGN=\"\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\">");
    win.document.writeln("</EMBED></OBJECT>");
    win.document.writeln("<br /><a href=\"#\" onclick=\"window.close();\">Close Window</a>");
    win.document.writeln("</div>");
    win.document.writeln("</body></html>");
}